function genPopUp(url,name,popWidth,popHeight){
	var win = window.open("",name, "toobar=no,location=no,direction=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+popWidth+", height="+popHeight+",top=100,left=100");
	win.location = url;
	//win.moveTo(100,100);
	win.focus();
	return win;
 }
 
 function genPopUp_with_scrollbars(url,name,popWidth,popHeight){
	var win = window.open(url,name, "toobar=no,location=no,direction=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width="+popWidth+", height="+popHeight+"");
	win.moveTo(100,100);
	win.focus();
	return win;
 } 
 
 function genPopUp_resizable(url,name,popWidth,popHeight){
	var win = window.open(url,name, "toobar=no,location=no,direction=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width="+popWidth+", height="+popHeight+"");
	win.moveTo(100,100);
	win.focus();
	return win;
 }
 
// without win.move to avoid js security warnings when the target 
// url is on external domain  
function genPopUpExternal(url,name,popWidth,popHeight){
    var win = window.open(url,name, "toobar=no,location=no,direction=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width="+popWidth+", height="+popHeight+"");
    win.focus();
    return win;
 }