function zapto(oSelect)
{	vURL=oSelect.options[oSelect.selectedIndex].value;
	if( vURL != '0' )	
		window.location.href=vURL;
    oSelect.selectedIndex=0;
    return;
}

function PrintThisPage() 
{ 
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       sOption+="scrollbars=yes,width=600,height=600,left=100,top=25"; 

   var sWinHTML = document.getElementById('contentstart').innerHTML; 
   
   var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><LINK href=/_style/nusstyles.css rel=Stylesheet><body>'); 
       winprint.document.write(sWinHTML);          
       winprint.document.write('</body></html>'); 
       winprint.document.close(); 
       winprint.focus(); 
}

		function popup(url) {
  			var w = 550, h = 450;
		  	var left = (screen.width) ? (screen.width-w)/2 : 0;
  			var top  = (screen.height) ? (screen.height-h)/2 : 0;
  			window.open(url, "_blank", "width="+w+",height="+h+",left="+left+",top="+top+",scrollbars=yes");
		}
function calcHeight()
{
  //find the height of the internal page
  var the_height=
    document.getElementById('the_iframe').contentWindow.
      document.body.scrollHeight;

  //change the height of the iframe
  document.getElementById('the_iframe').height=
      the_height;
}