if((document.all || document.layers) && !document.getElementById)
{
	document.getElementById = function(id)
	{
		if (document.all) return document.all[id]
		else return document.layers[id];
	}
}

function showValues(myVal)
{
	switch(parseInt(myVal))
	{
		case 1:
		
		$("option[@value^='-2']").remove();
		$("option[@value^='-3']").remove();
		
		break;
		
		case 2:
		
		$("option[@value^='-1']").remove();
		$("option[@value^='-3']").remove();
		
		break;
		default:
	}
}

	
		
	
var vacTypes = new Array('teaching', 'support');


function showOnly(toshow, all)
{
	var divstoshow = (typeof toshow != "object") ? [toshow] : toshow;
	
	for (var i = 0; i < all.length; i++)
	{
		if($("#" + all[i])) $("#" + all[i]).hide();
	}
	for (var j = 0; j < divstoshow.length; j++)
	{
		if($("#" + divstoshow[j])) $("#" + divstoshow[j]).show();
	}
	
	if($('#showsingle'))
	{
		if($('#showsingle').attr('checked') == true)
		{
			$('#startDate legend').empty().append("Date");
			$('#endDate').hide();
		}
		else
		{
			$('#startDate legend').empty().append("Start Date");
			$('#endDate').show();
		}
	}
	
}




