// Popup
function fnPopUp(filePath,height,width,attributes){
	var sScreenX = screen.width
	var sScreenY = screen.height
	var x = sScreenX - width
	var y = sScreenY - height
	var winLeft = x/2
	var winTop =  y/2 
	window.open(filePath,"","width=" + width + ",height=" + height + "," + attributes + ",left=" + winLeft + ",top=" + winTop)
}

			
function showstate()
{
	if(document.getElementById) document.getElementById('state').style.display = "block";
	else document.all['state'].style.display = "block";	
}

function hidestate()
{
	if(document.getElementById) document.getElementById('state').style.display = "none";
	else document.all['state'].style.display = "none";	
}
// Aidan's Popup
	function openWindow(url,width,height) {
	x = (640 - width)/2, y = (480 - height)/2;
	if (screen) {
	y = (screen.availHeight - height)/2;
	x = (screen.availWidth - width)/2;
	}
	window.open (url,'newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+ '');
	}
	//-->
