function wsp_printCoupon(E){var F="iframe_"+E;
function D(){var G=document.getElementById(F);
if(G){G.parentNode.removeChild(G)
}}function C(L,G){var I,K,J;
if(navigator.appName=="Microsoft Internet Explorer"){I=window.frames[L];
K=I.window.document;
J=I.window
}else{I=document.getElementById(L);
K=I.contentDocument;
J=I.contentWindow
}var H=K.getElementsByTagName("head").item(0);
if(!H||!K.body||K.title!="coupon_html"){K.open("text/html");
K.write('');
K.writeln('
');
K.writeln("coupon_html");
K.writeln('');
K.writeln("");
K.writeln("");
K.writeln("");
K.writeln(G.innerHTML);
K.writeln("");
K.writeln("");
K.close();
window.setTimeout(function(){C(L)
},100);
return
}J.focus();
if(J.attachEvent){if(!J.attachEvent("onafterprint",D)){setTimeout(D,5000)
}window.print()
}else{J.print();
setTimeout(D,5000)
}}var A=document.getElementById(E);
var B=document.createElement("iframe");
B.setAttribute("id",F);
B.setAttribute("border","0");
B.setAttribute("frameBorder","0");
B.setAttribute("marginWidth","0");
B.setAttribute("marginHeight","0");
B.setAttribute("leftMargin","0");
B.setAttribute("topMargin","0");
B.setAttribute("scrolling","no");
B.setAttribute("width",100);
B.setAttribute("height",100);
document.body.appendChild(B);
B.setAttribute("src",wsp_htmlref_blank);
C(F,A)
}