var popped=null ;

function popEmail(url,addy) {
attribs='width=380,height=325,left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes' ;
if (popped)
	popped.close() ;
popped=window.open('emailto.php?url='+url+'&addy='+addy,'',attribs) ;
}
function popImage(p,i) {
attribs='width=380,height=285,left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes' ;
if (popped)
	popped.close() ;
popped=window.open('popimage.php?p='+p+'&i='+i,'',attribs) ;
}

function popPrint(pid) {
attribs='width=800,height=700,left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,copyhistory=no,resizable=yes' ;
if (popped)
	popped.close() ;
popped=window.open('print.php?pid='+pid,'',attribs) ;
}

function popDeal(id,isDev) {
if (isNaN(parseInt(isDev)))
	isDev=0 ;
attribs='width=380,height=285,left=0,top=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes' ;
if (popped)
	popped.close() ;
popped=window.open('popdeal.php?id='+id+'&dev='+isDev,'',attribs) ;
}