/*function viewScript(url) {
	var h = 426;
	var w = 612;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width='+w+',height='+h+',top='+wint+',left='+winl+'';
	var viewScriptWin = open(url,"prof",winprops);
	viewScriptWin.focus();
}

function viewPopUpScreen(url,name,h,w) {
	//var h = 600;
	//var w = 600;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	
	winprops = 'toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=0';
	
	var viewScriptWin = open(url,name,winprops);
	
	viewScriptWin.focus();
}*/


function newWindow( mypage, myname, h, w, features ) {
	
	/*myname = 'reg_now';
	w = 612;
	h = 426;*/
	features = "";
	
	if ( screen.width ) {
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
	} else { 
		winl = 0;
		wint = 0;
	}
	if ( winl < 0 ) winl = 0;
	if ( wint < 0 ) wint = 0;
	
	var settings = 'toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=0';
	
	win = window.open( mypage, myname, settings );
	
	win.window.focus();
	
}
