var expDays = 180;
if ((document.cookie.indexOf("HP_EBUS=true")==-1) && (Math.random()<0.00))
{
    var expires = new Date();
    expires.setTime(expires.getTime()+(expDays*24*60*60*1000));
    var ref = self.location.href;
    var pg_title = document.title;
    var url="https://survey.confirmit.com/wi/p137146329/i.asp?code=1&reference="+escape(ref)+"&pg_title="+escape(pg_title);	
     //generate global unique identifier
     var guid = "";
     for (var i = 1; i <= 32; i++)

     {
	var n = Math.floor(Math.random() *16.0).toString(16);
	guid += n;
	if ((i == 8) || (i == 12) || (i == 16) || (i == 20)) guid += "-";
     }

     url += "&guid=" + escape(guid);
     //document.cookie = "HP_EBUS=true;path=/;Expires="+expires.toGMTString();
     //window.open(url, "","height=550,width=750,scrollbars=yes,resizable=yes");
     width=750;
     height=550;
     delay = 1;    				
     timer = setTimeout("Start(url, width, height + 'resizable=yes, scrollbars=yes')", delay*15000);
}


function Start(URL, WIDTH, HEIGHT) 
{
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
document.cookie = "HP_EBUS=true;path=/;Expires="+expires.toGMTString();
}
