 
function popUpFlash(strTitle,pathFlash)
{
window.open(pathFlash,strTitle,'width=680,height=591,left=' + ((screen.width/2)-300) + ',top=' + ((screen.height/2)-255) + ',resizable=yes,status=no,scrollbars=no,toolbar=0');
}

function popUp(URL) {
//alert('popup');
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,statusbar=0,menubar=0,resizable=1,width=1200,height=800,left = 0,top = 0,location=1');");
}

 
function OnClose(url,width,height,left,top)
{

    window.onbeforeunload=function()
    {
        if((window.event.clientX<0) || (window.event.clientY<0))
        {
               //window.open('http://www.theory-test.co.uk/asp/exit_survey.asp','',"width=900,height=600,left=50,top=50,resizable=no,status=no,scrollbars=yes");
               window.open(url,'',"width=" + width + ",height=" + height +",left="+50+",top=" + top+",resizable=yes,status=no,scrollbars=yes");
        }
    }

}
 