<!--

function popup1(htmlfile){
	popup(200,400,htmlfile)
}
function popup2(htmlfile){
	popup(500,200,htmlfile)
}
function popup3(htmlfile){
	popup(500,400,htmlfile)
}
function popup4(htmlfile){
	popup(200,100,htmlfile)
}
function popup5(htmlfile){
	popup(400,100,htmlfile)
}

function popup(width,height,htmlfile){
xposition=0;
yposition=0;
if (parseInt(navigator.appVersion) >= 4)
	{
	xposition = (screen.width - width) / 2;
	yposition = (screen.height - height) / 2;
	}
args = "width=" + width + ","
 + "height=" + height + "," + "location=0," + "menubar=0," + "resizable=1,"
 + "scrollbars=0," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0,"
 + "screenx=" + xposition + ","  //NN Only
 + "screeny=" + yposition + ","  //NN Only
 + "left=" + xposition + ","     //IE Only
 + "top=" + yposition;           //IE Only

newWindow = window.open(htmlfile,"POPUP",args);
newWindow.document.bgColor="#FFFFCC";
newWindow.document.close();
newWindow.focus();
}

//function to display or hide text blocks
function popin(nr) {
	 if (document.getElementById)     // for IE5 and NS5
	 {
	  current = (document.getElementById(nr).style.display == 'inline') ? 'none' : 'inline';
	  document.getElementById(nr).style.display = current;
	 }
	 else if (document.all)     // for IE4
	 {
	  current = (document.all[nr].style.display == 'inline') ? 'none' : 'inline'
	  document.all[nr].style.display = current;
	 }
	 else alert ('This does not work in your browser. You need IE4 or NS5 or later.');
}

//function to display or hide all text blocks on a page. Note: browser 5 or later only.
function popinall() {
	divs = document.getElementsByTagName("div");
	for (i = 0; i < divs.length; i++) {
	  current = (divs[i].style.display == 'inline') ? 'none' : 'inline';
	  divs[i].style.display = current;
	}
}

// -->
