var beIE = document.all?true:false;
// set the popup window width and height
var windowW=448 // wide 
var windowH=600 // high
// set the screen position where the popup should appear
//var windowX = 260 // from left
//var windowY = 100 // from top
var windowX = 400; //-(windowW/2);  //(screen.width/2)-(windowW/2);
var windowY = 25; //-(windowH/2);  //(screen.height/2)-(windowH/2);
// set the url of the page to show in the popup
//var urlPop = "yourpage.html"
// set the title of the page
var title =  "Works - Current"
var autoclose = true
// ============================
//var s = "width="+windowW+",height="+windowH+",titlebar=no, location=no, left="+windowX+", top="+windowY+""
//var s = "titlebar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width="+windowW+",height="+windowH+", left="+windowX+",top="+windowY+",screenX="+windowX+",screenY="+windowY+""
var s = "toolbar=No,location=No,scrollbars=no,status=No,resizable=No,fullscreen=No,directories=No,menubar=No,copyhistory=Yes,width="+windowW+",height="+windowH+", left="+windowX+",top="+windowY+",screenX="+windowX+",screenY="+windowY+""

function openFrameless(urlPop){
	   //alert("open n s "+s+"  windowX "+windowX+"  windowY "+windowY+"   ");   

	NFW = window.open(urlPop,"popupwork",""+s);     
	//NFW.blur()
	//window.focus() 
		NFW.resizeTo(windowW,windowH);
	//NFW.moveTo(windowX,windowY)
  //alert("focus");
	NFW.focus(); 
	NFW.onload = function(){NFW.focus()}
	
	if (autoclose){
		window.onunload = function(){NFW.close()}
	}
	
}
