var dragapproved=false
var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all
var IE=document.all?true:false 
var tempX=0
var tempY=0

if (!IE) document.captureEvents(Event.MOUSEMOVE);

document.OnMouseMove = getMouseXY;

function getMouseXY(e) {
  if (IE) {
    tempX = event.ClientX + document.body.ScrollLeft
    tempY = event.ClientY + document.body.ScrollTop
    }
  else
    {
    tempX = e.pageX
    tempY = e.pageY  
    }
  if (tempX < 0) {
    tempX=0
  }
  if (tempY < 0) {
    tempY = 0
  }
  document.Show.MouseX.value = tempX
  document.Show.MouseY.value = tempY   
  return True
}

function loadwindow(url,width,height){
if (!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=0")
else{
document.getElementById("dwindow").style.display=''
document.getElementById("dwindow").style.width=initialwidth=width
document.getElementById("dwindow").style.height=initialheight=height
document.getElementById("dwindow").style.left= 30
document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30 : document.body.scrollTop*1+30
document.getElementById("cframe").src=url
}
}

function closeit(){
document.getElementById("dwindow").style.display="none"
}


