// popup a window wide x high and load url
// if the scroll argument is passed, add sroll bars
function popup(url, wide, high, scroll){
	var popwin;
	var params;
    if (wide)
		params = "width="+wide ;
	else
		params = "width=780" ;
	if(high)
		params = params+",height="+high ;
	else
		params = params+",height=580" ;
	if (scroll || !wide)
		//params = params+",scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes";
		params = params+",scrollbars=yes,menubar=no,toolbar=no,location=no,status=yes,resizable=yes";
	//alert(params);
	popwin = window.open(url,"popup",params);
}
