function popupform(myform, windowname)
{
 if (! window.focus)return true;
 window.open('', windowname, 'height=450,width=700,toolbar=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes');
 myform.target=windowname;
 return true;
}
var popUpWin=0;
function popUpWindowCenter(URLStr, width, height)
{
var l=(screen.width-width)/2;
var t=(screen.height-height)/2;
if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+l+',top='+t+',screenX='+l+',screenY='+t+'');
}


//RESIZING SCROLLBAR FOR FAKE FRAME

function getWindowHeight() {
    var windowHeight=0;
        if (typeof(window.innerHeight)=='number') {
            windowHeight=window.innerHeight;    
        }
        else {
            if (document.documentElement&&document.documentElement.clientHeight) {
                windowHeight=document.documentElement.clientHeight;
             }
        else {
            if (document.body&&document.body.clientHeight) {
                windowHeight=document.body.clientHeight;
             }
        }
    }
return windowHeight;
}

function setFintoframepublicDBP() {
    if (document.getElementById) {
        var windowHeight=getWindowHeight();
            if (windowHeight>0) {
                var fintoFrameElementDBP=document.getElementById('content');
                fintoFrameElementDBP.style.overflow='auto';
                fintoFrameElementDBP.style.height=((windowHeight)-153)+'px';
                }
            }
        }

window.onload = function() {
  setFintoframepublicDBP();
}

window.onresize = function() {
  setFintoframepublicDBP();
}
 
function setHTMLstyle() {
document.getElementsByTagName("link")[1].disabled = true;
 }
