dispWin=null;
if(screen.width>1024) {
wwid=720;
hhig=560;


}
else {
if(screen.width>800) {
wwid=720;
hhig=560;

}
else {
wwid=680;
hhig=560;
}
}


offX=(screen.width-wwid)/2;
offY=(screen.height-hhig)/2-126;
if(offY<=0)
{offY=0}

function dispFile(ind)
{
 
features='width='+wwid+',height='+hhig+',left='+offX+',top='+offY+',location=yes,scrollbars=yes,status=no,resizable=yes'
if(dispWin) {
 dispWin.close();}
dispWin=window.open('','disp',features);
dispWin.document.open();
dispWin.document.writeln('<HEAD><LINK href="pageStyle.css" rel="stylesheet"></HEAD>'+
'<body bgcolor="#F1F8F7">'+
'<TABLE align=center valign=center dir=rtl><TR><TD><BR></TD></TR><TR>'+
 '<TD  align=center nowrap style="direction:rtl;padding-right:12px;text-align:center;border:2px dashed #25A784">'+
'<IMG src="logos/textLogoNew2.gif" align=absmiddle>&nbsp;&nbsp;&nbsp;<IMG src="logos/logoLeafSmall2.gif"  align=absmiddle>'+
'<BR><BR></font><font class="couponNamep">'+couponName+'</FONT><BR><BR><font class="bnrNamep">'+bannerName[ind]+
'<BR><font class="bnrDescrp">'+bannerDescr[ind]+'</font><BR><BR><BR>'+
'<font class="bnrCouponp"><BR>'+couponDescr+'</font></TD></TR>'+
'<TR><TD align=center><BR><BR><HR size=1 style="border:1px solid #25A784">'+
'<INPUT type="button" value="הדפס קופון" onClick="print()">&nbsp;&nbsp;&nbsp;'+
'<INPUT type="button" value="סגור חלון" onClick="opener.dispWin=null;window.close()">'+
'</TD></TR></TABLE></BODY>');
dispWin.document.close();
 dispWin.focus();

}
displWin=null;
if(screen.width>800) {
wide=720;
hig=560;
}
else {
wide=680;
hig=440;
}


offX=(screen.width-wide)/2;
offY=(screen.height-hig)/2;



function dispLink(url)

{ 
features='width='+wide+',height='+hig+',left='+offX+',top='+offY+',location=yes,scrollbars=yes,status=yes,resizable=yes';
if(displWin) {
 displWin.close();}
displWin=window.open(url,'disp',features);

 setTiemout('if(displWin){dispWin.focus()}',1200);


 }


