// Script file for commonly used functions
// By: Leng Keng

//Warn the user if browser if not MS Internet Explorer
function CheckBrowser()
{
	var	browser = window.navigator.userAgent.toLowerCase();
	if (browser.indexOf('msie') == -1)
		window.status = "This site is best viewed with Microsoft Internet Explorer 6.0 and above";
}

// Open a pop up window browser
function openWindow(url, winId)
{ 
	var win = window.open(url, winId, 
		"width=600,height=600,top=0,left=0,menubar=yes," +
		"resizable=yes,scrollbars=yes,toolbar=yes");
	win.focus();
}
