
<!--
function doSiteSearch()
{		
	var searchVal = document.getElementById("SiteSearch").value;
	var redir = '/search/default.aspx?Search=' + searchVal;
	location.href = redir;
	return false;	
	
}

function switchImages( name1, source1 ){
		if ( document.images ){
			document[name1].src=source1;

        }
}

function switch3Images( name1, source1, name2, source2, name3, source3 ){
		if ( document.images ){
			document[name1].src=source1;
			document[name2].src=source2;
			document[name3].src=source3;

        }
}

// Function to trap enter key clicks.
function fnTrapKD(btn, event){

	if (document.all){		
		if (event.keyCode == 13){ 
			event.returnValue=false; 
			event.cancel = true; 			
			//btn.click(); 
			doSiteSearch();
		}
	}
	
	else if(document.layers){		
		if(event.which == 13){
			event.returnValue=false;
			event.cancel = true;
			//btn.click(); 
			doSiteSearch();
		}
	}
		
	else if (document.getElementById){		
		if (event.which == 13){
			event.returnValue=false;
			event.cancel = true;
			//btn.click(); 
			doSiteSearch();
		}
	}
}

function openPopCenter(url,height,width,features){

	// Get left and top coordinates so window can be opened centered on the screen
	var screenx = ((screen.availWidth / 2) - (width / 2))
	var screeny = ((screen.availHeight / 2) - (height / 2))

	var featureList = 'height=' + height + ',width=' + width + ',left=' + screenx + ',top=' + screeny;
	if (features != '')
		featureList += ',' + features
		
	var newWin = window.open(url,"window",featureList);
}

function openEmailWindow(url,height,width,features){

	// Get left and top coordinates so window can be opened centered on the screen
	var screenx = ((screen.availWidth / 2) - (width / 2))
	var screeny = ((screen.availHeight / 2) - (height / 2))

	var featureList = 'height=' + height + ',width=' + width + ',left=' + screenx + ',top=' + screeny;
	if (features != '')
		featureList += ',' + features

	url = url + "?CallingPage=" + window.location

	var newWin = window.open(url,"window",featureList);
}

var DOM = false 
var IE = false 
var NS = false 
 
if (document.getElementById) { DOM = true} 
if (navigator.appName.indexOf("Microsoft Internet Explorer") > -1) IE = true 
if (DOM && !IE) NS = true

function showHide(sTblId)
{

	var tblId
	var moveTable

	tblId = document.getElementById(sTblId)

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		if(isNaN(parseInt(tblId.style.left)))
			tblId.oldLeft = 0
		else
			tblId.oldLeft = parseInt(tblId.style.left)

		moveTable = tblId.oldLeft + 10
		tblId.style.left = eval(String.fromCharCode(34) + moveTable + "px" + String.fromCharCode(34))
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft
	}
}

function showHideIcon(sTblId, ico)
{

	var icoObj
	var tblId
	var moveTable

	tblId = document.getElementById(sTblId)
	

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		if(isNaN(parseInt(tblId.style.left)))
			tblId.oldLeft = 0
		else
			tblId.oldLeft = parseInt(tblId.style.left)

		moveTable = tblId.oldLeft + 10
		tblId.style.left = eval(String.fromCharCode(34) + moveTable + "px" + String.fromCharCode(34))

		icoObj = document.getElementById(ico)
		icoObj.src = "/images/minus_icon.gif"
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"

		if(!isNaN(tblId.oldLeft))
			tblId.style.left = tblId.oldLeft

		icoObj = document.getElementById(ico)
		icoObj.src = "/images/plus_icon.gif"
	}
}

function doNothing(){}

function showHide2(tblId)
{

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		tblId.oldLeft = tblId.style.left
		tblId.style.left = tblId.style.left + 10
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft
	}
}

function showHideIcon2(tblId, ico)
{

	var icoObj

	if(tblId.style.display=="none")
	{
		tblId.style.display = "block"
		tblId.style.position = "relative"

		tblId.oldLeft = tblId.style.left
		tblId.style.left = tblId.style.left + 10

		icoObj = document.all(ico)
		icoObj.src = "/images/minus_icon.gif"
	}
	else
	{
		tblId.style.display = "none"
		tblId.style.position = "relative"
		tblId.style.left = tblId.oldLeft

		icoObj = document.all(ico)
		icoObj.src = "/images/plus_icon.gif"
	}
}

// End --> 


