// JavaScript Document

<!--
var lang;
var pagetitle;

// this function is used by the fading javascript menus in conjunction with the menu.css file

// this is the all-in-once pop-up window creator which allows all properties to be set from the call via arguements

function popup(strURL,strWindowName,strWindowFeatures){
	window.open(strURL,strWindowName,strWindowFeatures);
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height, scrollflag)
{
  if (scrollflag == null) {
	  scrollflag = 'no';
  }
  
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars='+scrollflag+',resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


function closeandrefresh() {
	
	window.opener.top.location.reload();
	window.close();
}

function closeandrefreshall() {
	window.opener.top.location.reload();
	window.close();

}

var win = null;

function centrePop(mypage,myname,w,h,scroll) {
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	win = window.open(mypage,myname,settings);
}

function insertJPEG(object) 				// inserts standard web gfx such as .gif & .jpg
{				
	document.write("<img src="+object+" width=780 height=225 >");
}


// a simple function to output a message to the user in an alert box
function givemsg(msg) 
{
	alert(msg);
} 

function showobj(object) {
if (document.layers && document.layers[object] != null)
		document.layers[object].visibility = 'visible';
	else if (document.all) {
		document.all[object].style.visibility = 'visible';
	}
	else
		document.getElementById(object).style.visibility = 'visible';
}

function hideobj(object) {
	if (document.layers && document.layers[object] != null)
		document.layers[object].visibility = 'hidden';
	else if (document.all)
		 document.all[object].style.visibility = 'hidden';
	else
		document.getElementById(object).style.visibility = 'hidden';
}








//-->