
var windowW=700 // wide
var windowH=430 // high

// set the screen position where the popup should appear

//var windowX = 218 // from left
//var windowY = 130 // from top
var windowX = (screen.width/2)-(windowW/2)-10;
var windowY = (screen.height/2)-(windowH/2)+4;

// set the url of the page to show in the popup
var urlPop = "ing_pad.htm"

// set the title of the page
var title =  "Teknisk_Tegning"

// set this to true if the popup should close
// upon leaving the launching page; else, false

var autoclose = true

// ============================
// do not edit below this line
// ============================

s = "width="+windowW+",height="+windowH;
var beIE = document.all?true:false
var NFW;

function openFrameless(PicPop){
	//alert(PicPop);

	if (beIE){

		if ( ( NFW != null )
		  && !NFW.closed )
		{
			//alert("open")
			NFW.close();
		}else{
			//alert("closed")
			}

		NFW = window.open("about:blank", title, "fullscreen, scrollbars=no, width="+windowW+",height="+windowH)
		NFW.blur()
		window.focus()       
		NFW.resizeTo(windowW,windowH)
		NFW.moveTo(windowX,windowY)
		var frameString=""+
		"<html>"+
		"<head>"+
		"<title>Large Pic</title>"+
		"</head>"+
		"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
		"<frame name='top' src='"+PicPop+"' scrolling='no'>"+
		"<frame name='bottom' src='about:blank' scrolling='no'>"+
		"</frameset>"+
		"</html>"

		NFW.document.open();
	    NFW.document.write(frameString)
	    NFW.document.close()
	} else {
		NFW=window.open(PicPop,title,"scrollbars=no,"+s)
		NFW.blur()
		window.focus() 
		NFW.resizeTo(windowW,windowH)
		NFW.moveTo(windowX,windowY)
	}   
	NFW.focus()   
	if (autoclose){
		window.onunload = function(){NFW.close()}
	}
}

