
var widthWindow=333;var heightWindow=250;var topWindow=20;var leftWindow=20;var surveyWidth=screen.width/2;var surveyHeight=screen.height/2;function closePopupHI(){document.getElementById("pop_upHI").style.visibility="hidden";document.getElementById("iframeHI").style.visibility="hidden";var xhReq=createXMLHttpRequest();xhReq.open("GET","/redirect/survey.url?surveyAccepted=false",false);xhReq.send(null);}
function launchSurvey(){document.getElementById("pop_upHI").style.visibility="hidden";document.getElementById("iframeHI").style.visibility="hidden";document.target="blank";window.open("/redirect/survey.url?surveyAccepted=true","HarrisInteractive","width="+surveyWidth+",height="+surveyHeight+",top=0,left=0,scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes");}
function popupHI(){if(document.getElementById){document.write('<style type="text/css">');document.write('table.popupHI {');document.write('margin: 0px;');document.write('padding: 0px;}');document.write('.image {');document.write('border: 0px;}');document.write('#tablecorpsHI {');document.write('background-image:url("/static/images/fond.gif");');document.write('margin:0px;}');document.write('#logo {');document.write('margin-top:7px;}');document.write('</style>');document.write('<iframe id="iframeHI" width="'+widthWindow+'" height="'+heightWindow+'" style="position:absolute; top:'+topWindow+'%; left:'+leftWindow+'%; visibility:visible; z-index:987; opacity:0.0; filter:Alpha(Opacity=0); -ms-filter: alpha(opacity=0);" >"></iframe>');document.write('<div id="pop_upHI" style="position:absolute; top:'+topWindow+'%; left:'+leftWindow+'%;visibility:visible; z-index:988;">');document.write('<table width="'+widthWindow+'" height="'+heightWindow+'" cellspacing=0" cellpadding="0" class="popupHI" align="center" id="tablecorpsHI">');document.write('<tr valign="top">');document.write('<td align="right" style="padding:10px"><img src="/static/images/croix.gif" title="Close" onClick="closePopupHI();"></td>');document.write('</tr>');document.write('<tr valign="bottom">');document.write('<td class="corps" height="100px" style="padding-left:15px;padding-right:15px;padding-top:0px;padding-bottom:7px;" align="center"><a href="javascript:launchSurvey();"><img src="/static/images/btn_start.gif" class="image" title="Start Survey!"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:closePopupHI();"><img src="/static/images/btn_no.gif" title="Close" class="image"></a></td>');document.write('</tr>');document.write('</table>');document.write('</div>');}}
function randomize(freq){x=Math.ceil(Math.random()*100);if(x<=freq){popupHI();}}
function createXMLHttpRequest(){try{return new XMLHttpRequest();}catch(e){}
try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}
try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}
alert("XMLHttpRequest not supported");return null;}