function popUp(URL) {
    var myWindow = window.open(URL, "myWindow", 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=250,height=250,left=10,top=10');
    sizePopUp(myWindow);
    myWindow.focus();
}

function sizePopUp(thisWindow) {
    newHeight=thisWindow.screen.height;
    newWidth=thisWindow.screen.width;


    if (thisWindow.document.width) {
          newWidth=eval(thisWindow.document.width);
          newHeight=eval(thisWindow.document.height);
          if (newHeight>600) {newWidth=newWidth+18;}
    }
    else if (thisWindow.document.documentElement && thisWindow.document.documentElement.clientWidth) {
          newWidth=eval(thisWindow.document.body.clientWidth);
          newHeight=eval(thisWindow.document.body.clientHeight);
          if (newHeight>600) {newWidth=newWidth+18;}
    }
    else if (thisWindow.document.body) {
          newWidth=eval(thisWindow.document.body.scrollWidth+30);
          newHeight=eval(thisWindow.document.body.scrollHeight);
    }

    if (newHeight>600) {newHeight=600;}
    if (newWidth>750) {newWidth=750;}

    thisWindow.window.resizeTo(newWidth,newHeight);

}