<!-- 

var expDays = 180;  
var guid = genguid();    

/**********Begin popratio***********/
var popratio = 0.1;
/**********end popratio*************/

/**********Cookie domain declaration*************/ 
var hp_ebus_domain = ".hp.com";
/**********End cookie domain declaration*********/

//this if statement allows the cookie to be set when testing from webmetrics1
if (location.host.indexOf("webmetrics1")!=-1){
	hp_ebus_domain = ".hpqcorp.net";
}
//End if statement
  

var ie4 = document.all;
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var hp_ebus_country="";
var hp_ebus_segment="";
var hp_ebus_design_version=""; 
var hp_ebus_keywords="";
var hp_ebus_generator="";
var hp_ebus_page_content=""; 
var hp_ebus_lifecycle="";
var hp_ebus_product_service_name="";
var hp_ebus_web_section_id="";
if(!s_prop1)var s_prop1="";
if(!s_prop2)var s_prop2="";
if(!s_prop3)var s_prop3="";
if(!s_prop4)var s_prop4="";
prop1 = s_prop1.replace(/(\s|\/)/g,"_").toLowerCase(); 
prop2 = s_prop2.replace(/(\s|\/)/g,"_").toLowerCase();
prop4 = s_prop4.replace(/(\s|\/)/g,"_").toLowerCase();
var reg = new RegExp("(google.com)", "i");
var hp_ebus_date = new Date(); 
var hp_ebus_yr = hp_ebus_date.getFullYear();
hp_ebus_scrapeMeta()

if ((document.cookie.indexOf("HP_EBUS=true")==-1) && (Math.random()<popratio) && (reg.test(document.referrer) == false) || (location.search.indexOf("hp_ebus_launch_survey")>-1))
{
    var hp_ebus_expires = new Date();
    hp_ebus_expires.setTime(hp_ebus_expires.getTime()+(expDays*24*60*60*1000));
    var ref = self.location.href
    var title = document.title
    var pg_title = document.title
  
/**************Enter URL below this line**************************/    
//copy var url2 from existing javascript.
var url2="http://survey.confirmit.com/wix/p270142885.aspx?l=10&reference="+escape(ref)+"&title="+escape(title)+"&code=28&country=11"+"&prop7="+escape(hp_ebus_country.toLowerCase())+"&prop8="+escape(hp_ebus_lang.toLowerCase())+"&prop9="+escape(hp_ebus_segment.toLowerCase())+"&prop1="+escape(prop1)+"&prop2="+escape(prop2)+"&prop3="+escape(s_prop3.toLowerCase())+"&prop4="+escape(prop4)+"&hp_design_version="+escape(hp_ebus_design_version.toLowerCase())+"&keywords="+escape(hp_ebus_keywords.toLowerCase())+"&generator="+escape(hp_ebus_generator.toLowerCase())+"&page_content="+escape(hp_ebus_page_content.toLowerCase())+"&lifecycle="+escape(hp_ebus_lifecycle.toLowerCase())+"&guid="+escape(guid)+"&product_service_name="+escape(hp_ebus_product_service_name.toLowerCase())+"&web_section_id="+escape(hp_ebus_web_section_id.toLowerCase());//"&opentext="+escape('_qs');

/**************Enter URL above this line**************************/


     document.cookie = "HP_EBUS=true;path=/;Expires="+hp_ebus_expires.toGMTString()+";domain="+hp_ebus_domain;
     showOverlay()
}

/******************************FUNCTIONS******************************/

function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}

function showHideLayers()
{ 
  var i, visStr, obj, args = showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
  {
    if ((obj = findObj(args[i])) != null)
    {
      visStr = args[i+2];
      if (obj.style)
      {
        obj = obj.style;
        if(visStr == 'show') visStr = 'visible';
        else if(visStr == 'hide') visStr = 'hidden';
      }
      obj.visibility = visStr;
    }
  }
}

function genguid()
{
	//generate global unique identifier
	TempDate = new Date();
	var guid = (TempDate.getMonth()+1) + "-" + TempDate.getDate() + "-" + TempDate.getYear() + "_" + TempDate.getHours() + "-" + TempDate.getMinutes() + "-" + TempDate.getSeconds() + "-" + TempDate.getMilliseconds() + "_" + TempDate.getTimezoneOffset() + "_";
	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 += "-";
	}
	return guid;
}

function showOverlay(){
if ((ns6) || (ie4)) {

/****************************Enter overlay text here****************************************/ 
var invitationtext = "Ay&#250;denos a mejorar el sitio Web de HP respondiendo a unas preguntas acerca de su experiencia de hoy. <br><br> Esta breve encuesta no dura m&#225;s de cinco minutos y sus respuestas ser&#225;n confidenciales. Las respuestas se utilizar&#225;n exclusivamente para mejorar la calidad y el contenido del sitio. <br> Si requiere asistencia t&#233;cnica, p&#243;ngase en contacto directamente con <a href=\"http://thenew.hp.com/country/es/spa/contact_us.html\" onClick=\"window.open('http://thenew.hp.com/country/es/spa/contact_us.html');return false\">HP</a>.";
var hp_ebus_answertext_yes = "Realizar la encuesta";
var hp_ebus_answertext_no = "No, no deseo realizar la encuesta en este momento";
var hp_ebus_buttontext = "Siguiente";
/****************************Enter overlay text above this line******************************/

/*****************************Begin overlay HTML code****************************************/
var hp_ebus_surveydivtext = "<div ID='hp_ebus_surveydiv' style='font-family:arial,helvetica,sans-serif;font-weight:bold;font-size:14px;color:#000033; background-color:#ffffff; layer-background-color:#ffffff; position:absolute; top:20px; left:30px; width:550px; z-index:200;  visibility:hidden; border-color:#3300CC; border-width:thick; border-style:solid;'>";
hp_ebus_surveydivtext += "<table cellpadding=0 cellspacing=0>";
hp_ebus_surveydivtext += "<tr><td valign=top align=right bgcolor='#3300CC'><a href=\"javascript:toggleBox('hp_ebus_surveydiv',0)\"><font color=white>X</font></a></td></tr><tr>";
hp_ebus_surveydivtext += "<td valign=top align=left>";
hp_ebus_surveydivtext += "<table width=100";
hp_ebus_surveydivtext += "<tr>";
hp_ebus_surveydivtext += "<td width='170' align='left' valign='middle'><img src='https://www.hp.com/hpcentral/survey/source/s.gif' width='10' alt=''><img src='https://survey.confirmit.com/isa/GVNRJRMYNIEHGYMFEOOPOBPIHHEQGKJI/images/hpc60_topnav_hp_logo.gif' width='63' height='53' border='0' alt='Hewlett-Packard - Invent'></td>";
hp_ebus_surveydivtext += "<td><img src='https://www.hp.com/hpcentral/survey/source/s.gif' width='9' height='93' alt=''></td>";
hp_ebus_surveydivtext += "</tr>";
hp_ebus_surveydivtext += "</table>";
hp_ebus_surveydivtext += "<center>  ";
hp_ebus_surveydivtext += "<table cellpadding=10 cellspacing=10>";
hp_ebus_surveydivtext += "<tr><td valign=top align=left>";
hp_ebus_surveydivtext += invitationtext + "<p>";
hp_ebus_surveydivtext += "<form name='hp_ebus_form'><input type='radio' name='hp_ebus_invitation' value='yes'>"+hp_ebus_answertext_yes+"<br><input type='radio' name='hp_ebus_invitation' value='no'>"+ hp_ebus_answertext_no + "<p>";
hp_ebus_surveydivtext += "<input type='button' onClick='hp_ebus_verify();' value='"+hp_ebus_buttontext+"'></form>";
hp_ebus_surveydivtext += "</td>";
hp_ebus_surveydivtext += "</tr>";
hp_ebus_surveydivtext += "</table>";
hp_ebus_surveydivtext += "<table width=100% border=0 cellspacing=0 cellpadding=0>";
hp_ebus_surveydivtext += "<tr>";
hp_ebus_surveydivtext += "   <td bgcolor=black><img src='https://www.hp.com/hpcentral/survey/source/s.gif' height=4 alt=''></td>";
hp_ebus_surveydivtext += "</tr>";
hp_ebus_surveydivtext += "<tr>";
hp_ebus_surveydivtext += "  <td align=right>";
hp_ebus_surveydivtext += "  </td>";
hp_ebus_surveydivtext += "</tr>";
hp_ebus_surveydivtext += "</table>";
hp_ebus_surveydivtext += "</center>";
hp_ebus_surveydivtext += "<table border='0' cellpadding='0' cellspacing='0' width='545' summary=\"This table contains information on Hewlett-Packard's privacy statement\">";
hp_ebus_surveydivtext += "<tr>";
hp_ebus_surveydivtext += "<td colspan='2'></td>";
hp_ebus_surveydivtext += "</tr>";
hp_ebus_surveydivtext += "<tr>";
hp_ebus_surveydivtext += "<td align='left' valign='middle' class='footer'><font size='-1'>";
hp_ebus_surveydivtext += "</td>";
hp_ebus_surveydivtext += "</tr>";
hp_ebus_surveydivtext += "<tr>";
hp_ebus_surveydivtext += "<td align='right' valign='middle' class='footer'><font face=arial size='-1'>&copy; "+hp_ebus_yr+" Hewlett-Packard Development Company, L.P.</td>";
hp_ebus_surveydivtext += "</tr>";
hp_ebus_surveydivtext += "</table>";
hp_ebus_surveydivtext += "</td></tr>";
hp_ebus_surveydivtext += "</table>";
hp_ebus_surveydivtext += "</div>";
/*********************************End overlay HTML code******************************************/

document.write(hp_ebus_surveydivtext);
    toggleBox('hp_ebus_surveydiv',1)
}} 

function hp_ebus_verify(){
	if (document.hp_ebus_form.hp_ebus_invitation[1].checked == true){
		var hp_ebus_expires = new Date();
		//var invitation = 2;
		launchSurvey(2)
    	hp_ebus_expires.setTime(hp_ebus_expires.getTime()+(expDays*24*60*60*1000));
		document.cookie = "HP_EBUS=true;path=/;Expires="+hp_ebus_expires.toGMTString()+";domain="+hp_ebus_domain;
		toggleBox('hp_ebus_surveydiv',0)
	}
	else {      
		//var invitation = 1;
		launchSurvey(1)
		toggleBox('hp_ebus_surveydiv',0)
	}
}
function launchSurvey(invitation){
    url2 += "&invitation="+invitation;
    window.open(url2, "","height=480,width=640,scrollbars=yes,resizable=yes"); 
}

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
}

function hp_ebus_scrapeMeta(){
	if (document.getElementsByTagName){
		hp_ebus_lang = window.document.documentElement.lang
		var hp_ebus_allMyStuff=document.getElementsByTagName("META");
		var hp_ebus_myMeta;var hp_ebus_myVariableNames;
		var myVariableMap = new Array();
		if(!(window.hp_ebus_country && hp_ebus_country.length>0)) myVariableMap["target_country"] = "hp_ebus_country"; 
		if(!(window.hp_ebus_segment && hp_ebus_segment.length>0)) myVariableMap["segment"] = "hp_ebus_segment";
		if(!(window.hp_ebus_design_version && hp_ebus_design_version.length>0)) myVariableMap["hp_design_version"] = "hp_ebus_design_version";
		if(!(window.hp_ebus_keywords && hp_ebus_keywords.length>0)) myVariableMap["keywords"] = "hp_ebus_keywords";
		if(!(window.hp_ebus_generator && hp_ebus_generator.length>0)) myVariableMap["generator"] = "hp_ebus_generator";
		if(!(window.hp_ebus_page_content && hp_ebus_page_content.length>0)) myVariableMap["page_content"] = "hp_ebus_page_content";
		if(!(window.hp_ebus_lifecycle && hp_ebus_lifecycle.length>0)) myVariableMap["lifecycle"] = "hp_ebus_lifecycle";
		if(!(window.hp_ebus_product_service_name && hp_ebus_product_service_name.length>0)) myVariableMap["product_service_name"] = "hp_ebus_product_service_name";
		if(!(window.hp_ebus_web_section_id && hp_ebus_web_section_id.length>0)) myVariableMap["web_section_id"] = "hp_ebus_web_section_id";
		for (var i=0; i<hp_ebus_allMyStuff.length; i++){
		if (hp_ebus_allMyStuff[i].tagName == "META"){
			hp_ebus_myMeta = hp_ebus_allMyStuff[i];
				if (myVariableMap[hp_ebus_myMeta.name] != null){
					eval(myVariableMap[hp_ebus_myMeta.name] + " ='"+ hp_ebus_myMeta.content.toLowerCase().split("'").join("") +"'");
					}
			
			}
		}
	}

}
//-->