var popUpWin=0;
function popUpWindow(URLStr){

    var x,y,left, top, width, height;
    if (self.innerHeight) // all except Explorer
    {
        x = self.innerWidth;
        y = self.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight)
        // Explorer 6 Strict Mode
    {
        x = document.documentElement.clientWidth;
        y = document.documentElement.clientHeight;
    }
    else if (document.body) // other Explorers
    {
        x = document.body.clientWidth;
        y = document.body.clientHeight;
    }

        width = 0.85*x;
        // height = 0.9*y; // rem J.P.poski.com
        height = y-16; // add J.P.poski.com
        left=(x-width)/2;
        // top=(y-height)/2; // rem J.P.poski.com
        top=16; // add J.P.poski.com

  popUpWin = window.open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
    if (popUpWin) {
        return false;
        popUpWin.focus();
    } else return true;
  popUpWin++;
}