var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattest(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function loadwindow(url,width,height){
	if (!ie5&&!ns6)
	window.open(url,"","width=width,height=height,scrollbars=1")
	else{
	document.getElementById("dwindow").style.display=''
	document.getElementById("dwindow").style.width=initialwidth=width+"px"
	document.getElementById("dwindow").style.height=initialheight=height+"px"
	document.getElementById("dwindow").style.left="30px"
	document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30+"px" : iecompattest().scrollTop*1+30+"px"
	document.getElementById("cframe").src=url
	}
}

function closeit(){
document.getElementById("dwindow").style.display="none"
}