var screenY=screen.availHeight;
var imagepopup;
window.name='main';
function popimage(url)
{
if (screenY >= 1130)
imagepopup=window.open(url,'name','height=1130,width=1500,left=50,resizable=yes,scrollbars=yes');
else if (screenY >= 950)
imagepopup=window.open(url,'name','height=950,width=1150,left=50,resizable=yes,scrollbars=yes');
else if (screenY >= 700)
imagepopup=window.open(url,'name','height=700,width=950,left=50,resizable=yes,scrollbars=yes');
else
imagepopup=window.open(url,'name','height=530,width=790,resizable=yes,scrollbars=yes');
if (window.focus) {imagepopup.focus();}
}
