var WinVar = null;
function OpenWin(w_url,w_name,w_features,w_width,w_height,w_centered,w_top_aux) {
if(window.screen)if(w_centered)if(w_centered=="true"){
	var w_left=(screen.width-w_width)/2;
	var w_top=(screen.height-w_height)/2;
	if(w_top_aux) {
		w_top=w_top_aux; 
	}
	w_features+=(w_features!='')?',':'';
	w_features+=',left='+w_left+',top='+w_top;
	}
	WinVar = window.open(w_url,w_name,w_features+((w_features!='')?',':'')+'width='+w_width+',height='+w_height);
	WinVar.focus();	
}
/*
var WinVar = null;
function OpenWin(w_url,w_name,w_features,w_width,w_height,w_centered) {
if(window.screen)if(w_centered)if(w_centered=="true"){
	var w_left=(screen.width-w_width)/2;
	var w_top=(screen.height-w_height)/2;
	w_features+=(w_features!='')?',':'';
	w_features+=',left='+w_left+',top='+w_top;
	}
	WinVar = window.open(w_url,w_name,w_features+((w_features!='')?',':'')+'width='+w_width+',height='+w_height);
	WinVar.focus();	
}
*/
