/*
Language: CS Javascript
Name: popup
Description: Pops up a window.
*/
function popup(url, title, w, h, scrollbars, resizable, toolbar, menubar, location) {
	if (scrollbars == null)
		scrollbars = true;
	if (resizable == null)
		resizable = true;
	var bAgent = window.navigator.userAgent; 
	var bAppName = window.navigator.appName;
	w = w == null ? 300 : w;
	h = h == null ? 400 : h;
	
	var w = window.open(url, title, 'top=0,left=0,width='+w+',height='+h+',scrollbars='+(scrollbars?"yes":"no")+',resizable='+(resizable?"yes":"no")+',toolbar='+(toolbar?"yes":"no")+',menubar='+(menubar?"yes":"no")+',location='+(location?"yes":"no"));
	w.focus();
	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))
		return true; // do follow link
	else return false; // don't follow link
}
