    var thisWebURL = "http://gemsweb.ntu.edu.sg/IGEMS/";
    var win = "" ;


function openext_nobanner(externalURL,replacewindow)
	{	

//	externalURL=escape(externalURL);
	var url = escape(externalURL);
	var replace;

	if (replacewindow=='undefined')
	   replace='win';
	else
	   replace=replacewindow;

	scrWidth = window.screen.availWidth - 50;
	scrHeight = window.screen.availHeight - 100;
	scrLeft = 0;
	scrTop=0;
	var strFeatures = "scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,left=" + scrLeft + ",top=" + scrTop + ",height=" +  scrHeight + ",width=" + scrWidth
	//url = url.toLowerCase() ;

	window.open(externalURL, replace, strFeatures, 0);
	return;
	}

function openext(externalURL,replacewindow)
	{	
	externalURL=escape(externalURL);
	var url = thisWebURL + 'Include/ExternalPage.asp?URL=' + externalURL ;
	var replace;

	if (replacewindow=='undefined')
	   replace='win';
	else
	   replace=replacewindow;

	scrWidth = window.screen.availWidth - 50;
	scrHeight = window.screen.availHeight - 100;
	scrLeft = 0;
	scrTop=0;
	var strFeatures = "scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,left=" + scrLeft + ",top=" + scrTop + ",height=" +  scrHeight + ",width=" + scrWidth
	//url = url.toLowerCase() ;

	window.open(url, replace, strFeatures, 0);
	return;
	}
	
	function openext_new(externalURL,replacewindow)
		{	
			
		externalURL=escape(externalURL);
		var url = thisWebURL + 'Include/ExternalPage.asp?URL=' + externalURL ;
		var replace;
	
		if (replacewindow=='undefined')
		   replace='win';
		else
		   replace=replacewindow;
	
		scrWidth = window.screen.availWidth - 50;
		scrHeight = window.screen.availHeight - 100;
		scrLeft = 0;
		scrTop=0;
		var strFeatures = "scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,left=" + scrLeft + ",top=" + scrTop + ",height=" +  scrHeight + ",width=" + scrWidth
		//url = url.toLowerCase() ;
	
		window.open(url, replace, strFeatures, 0);
		return;
	}
	
function openext_nobanner_new(externalURL,replacewindow)
	{	
	var url = externalURL;
	var replace;

	if (replacewindow=='undefined')
	   replace='win';
	else
	   replace=replacewindow;

	scrWidth = window.screen.availWidth - 50;
	scrHeight = window.screen.availHeight - 100;
	scrLeft = 0;
	scrTop=0;
	var strFeatures = "scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,left=" + scrLeft + ",top=" + scrTop + ",height=" +  scrHeight + ",width=" + scrWidth
	//url = url.toLowerCase() ;

	window.open(url, replace, strFeatures, 0);
	return;
	}

 function openext1(externalURL,replacewindow)
{
	//debugger;


    var url = thisWebURL + 'ExternalPage1.asp?URL="' + externalURL + '"';
	var replace;

	if (replacewindow=='undefined')
	   replace='win';
	else
	   replace=replacewindow;

	//For fullscreen
	scrWidth = window.screen.availWidth - 50;
	scrHeight = window.screen.availHeight - 100;

	//scrLeft = (window.screen.availWidth - scrWidth) / 2 ;
	//scrTop = (window.screen.availHeight - scrHeight) / 2 ;
	scrLeft = 0;
	scrTop=0;

	var strFeatures = "scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=no,resizable=yes,left=" + scrLeft + ",top=" + scrTop + ",height=" +  scrHeight + ",width=" + scrWidth

	//alert(strFeatures);
	//return;

	//url = url.toLowerCase() ;

	window.open(url, replace, strFeatures, 0);
	return;

}
