<!--
// JavaScript Document

var resWin = "";
var dlWin = "";

function clearForm()
{
	document.frmswitch.reset();
}

function switchTo(sLoc)
{
	clearForm();
	document.frmswitch.switchloc.value = sLoc;
	document.frmswitch.submit();		
}

function switchToXML(sLoc, sXML)
{
	clearForm();
	document.frmswitch.switchloc.value = sLoc;
	document.frmswitch.xmlfile.value = sXML;
	document.frmswitch.submit();		
}

function dlDoc(docFil)
{
	if (docFil.length != 0)
	{	
		clearForm();
		document.frmswitch.dlfile.value = docFil;
		document.frmswitch.submit();		
	}
	else
	{
		alert('Download Error');
	}
}

function dlPdf(pdfFil)
{
	if (pdfFil.length != 0)
	{
		clearForm();
		document.frmswitch.pdfile.value = pdfFil;
		document.frmswitch.submit();		
	}
	else
	{
		alert('Download Error');
	}
}

function centerWin(W, H)
{
	var cL, cT, ret;
	cL = (screen.width - W)/2;
	cT = (screen.height - H)/2;
	ret = 'height='+H+',width='+W+',left='+cL+',top='+cT;
	return(ret);
}

function showStatus(sMsg) {	
	window.status = sMsg;
	return true;
}

function showDiv(divID) {
	var t1;
	var t2;
	var str1;
	var str2;
	for(x=1;x<7;x++){
		//str1 = "mdv"+x;
		if(x != divID){
			str2 = "dv_"+x;
			//t1 = document.getElementById(str1);
			t2 = document.getElementById(str2);
			//t1.style.display = 'none';
			t2.style.display = 'none';
		}
	}
	
	//str1 = "mdv"+divID;
	str2 = "dv_"+divID;
	//t1 = document.getElementById(str1);
	t2 = document.getElementById(str2);
	//t1.style.display = 'block';

	if(t2.style.display == 'none') {
		t2.style.display = 'block';
	}
	else
	{
		t2.style.display = 'none';
	}
}

function focusWin() {
	w = window.open("", "apcwin");
	if(w != undefined) {
		w.focus();
	}
	else
	{
		alert('This is an off-site, "Pop-up", link.\nPlease disable any "Pop-up" blocking software to follow this link.');
	}
}

//-->