
var myWind = "" ;
var WindowClosed = true;
var hh = window.screen.height;
var ww = window.screen.width;

function NewWindowOpen()
{
window.opener.WindowClosed = false;
}

function NewWindowClose()
{
window.opener.WindowClosed = true;
}


function actionwindow(pad)
{
//alert(pad);

var Hoog=hh-250;
var WhatPage=pad;
var myLeft=ww-740;

myWind.close;
  if (myWind == "" || WindowClosed==true  || myWind.name == undefined)
  {
    myWind = window.open(WhatPage,'win','height='+Hoog+',width=700,toolbar=no,scrollbars=yes,location=no,resizable=no,menubar=no,status=no,left='+myLeft+', top=40');
  } else{
    myWind.close();
    myWind = window.open(WhatPage,'win','height='+Hoog+',width=700,toolbar=no,scrollbars=yes,location=no,resizable=no,menubar=no,status=no,left='+myLeft+', top=40');
  }

}


function newactionwindow(w,h,pad)
{
var WhatPage=pad;
var myLeft=ww-740;



  if (myWind == "" || WindowClosed==true  || myWind.name == undefined)
  {
    myWind = window.open(WhatPage,'win','height='+h+',width='+w+',toolbar=no,scrollbars=yes,location=no,resizable=no,menubar=no,status=no,left='+myLeft+', top=40');
  } else{
    myWind.close();
    myWind = window.open(WhatPage,'win','height='+h+',width='+w+',toolbar=no,scrollbars=yes,location=no,resizable=no,menubar=no,status=no,left='+myLeft+', top=40');
  }

}





