<!--
var expDays = 90;  
var guid = genguid();    

/**********Begin popratio***************/
//if (!window.popratio)
//{
	var popratio = 0; //pop-up ratio for the script (A value of 1 will pop-up at %100)
//} 
/**********end popratio*************/  

/**********Cookie domain declaration*************/ 
function Right(str, n)
{
	if (n > String(str).length)   // Invalid bound, return
		   return str;                     // entire string
		else { // Valid bound, return appropriate substring
		   var iLen = String(str).length;
		   return String(str).substring(n, iLen);
		}
}
var strHost = new String(window.location.host);
var rightStart = strHost.indexOf("hp");
var hp_ebus_domain = Right(strHost, rightStart);
/**********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()
var lp8=hp_ebus_lang;
if(!window.countrycode) var countrycode="";
if(!window.site) var site="";

var l = lang;

var culture = "";
if (lang == "17") culture= "ja-JP";
if (lang == "1042") culture= "ko-KR";
if (lang == "2052") culture= "zh-CN";
if (lang == "1028") culture= "zh-TW";
/************************************************/

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 expires = new Date();
    expires.setTime(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 url = "http://g1w2399g.austin.hp.com/Community/se.ashx?s=3BC1E4C119940DF9&c="+culture+"&support="+site+"&country="+escape(countrycode)+"&reference="+escape(ref)+"&title="+escape(pg_title)+"&htmllang="+escape(hp_ebus_lang)+"&domain="+hp_ebus_domain+"&guid="+escape(guid);
/**************Enter URL above this line**************************/

    document.cookie = "HP_EBUS=true;path=/;Expires="+expires.toGMTString()+";domain="+hp_ebus_domain;
    var rdmNumber = Math.random();   
	//showOverlay()  
	launchSurvey(2)
}

/******************************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(){
var invitationtext, hp_ebus_answertext_yes, hp_ebus_answertext_no, hp_ebus_buttontext;
var hp_ebus_align="left";
var hp_ebus_dir="LTR";
if ((ns6) || (ie4)) {

//Chinese(PRC)
if (l == "2052") {
	invitationtext = String.fromCharCode(24076,26395,24744,33021,24110,21161,25105,20204,25913,36827,32,72,80,32,25903,25345,32593,31449,65281,35831,22312,19979,38754,36755,20837,24744,30340,30005,23376,37038,20214,22320,22336,24182,21333,20987,8216,25552,20132,8217,65292,21363,21487,25910,21040,19968,20010,19982,32,72,80,32,25903,25345,35843,26597,30340,38142,25509,12290,32,24744,30340,30005,23376,37038,20214,22320,22336,21482,29992,20110,21457,36865,38142,25509,21040,26412,35843,26597,12290);
	hp_ebus_answertext_yes = String.fromCharCode(26159,65292,35831,23558,27492,35843,26597,21457,36865,33267,27492,30005,23376,37038,20214,22320,22336,65306);
	hp_ebus_answertext_no = String.fromCharCode(19981,65292,25105,19981,24819,21442,21152,36825,20010,35843,26597,12290);
	hp_ebus_buttontext = "&#19979;&#19968;&#27493;";
}
//Chinese(Taiwan)
else if (l == "1028") {
	invitationtext = String.fromCharCode(35531,24171,21161,25105,20497,25913,21892,32,72,80,32,25903,25588,26381,21209,32178,22336,65281,35531,22312,19979,38754,36664,20837,24744,30340,38651,37109,22320,22336,21450,25353,19968,19979,12300,20659,36865,12301,20197,36899,32080,32,72,80,32,25903,25588,26381,21209,35519,26597,12290,32,24744,30340,38651,37109,22320,22336,21482,29992,20316,30332,36865,27880,24847,20107,38917,35519,26597,36899,32080,12290,32);
	hp_ebus_answertext_yes = String.fromCharCode(26159,65292,35531,23559,21839,21367,23492,33267,27492,32,69,109,97,105,108,32,20449,31665,65306);
	hp_ebus_answertext_no = "&#21542;&#65292;&#25105;&#19981;&#24076;&#26395;&#21443;&#33287;&#27492;&#38917;&#35519;&#26597;&#12290;";
	hp_ebus_buttontext = "&#19979;&#19968;&#27493;";
}

//Japanese
else if (l == "17") {
	invitationtext = String.fromCharCode(72,80,12391,12399,12289,12469,12509,12540,12488,87,101,98,12469,12452,12488,12395,12388,12356,12390,12469,12540,12505,12452,12434,34892,12387,12390,12362,12426,12414,12377,12290,20197,19979,12395,12362,23458,27096,12398,69,45,109,97,105,108,12450,12489,12524,12473,12434,20837,21147,12375,12390,91,36865,20449,93,12508,12479,12531,12434,12463,12522,12483,12463,12375,12390,12367,12384,12373,12356,12290,72,80,12398,12469,12509,12540,12488,32,12469,12540,12505,12452,12408,12398,12522,12531,12463,12434,12362,36865,12426,12375,12414,12377,12290,12362,23458,27096,12398,69,45,109,97,105,108,12450,12489,12524,12473,12399,12289,12469,12540,12505,12452,12398,12522,12531,12463,12434,12362,36865,12426,12377,12427,12383,12417,12395,20351,12431,12373,12379,12390,12356,12383,12384,12367,12384,12369,12391,12377,12398,12391,12289,20182,12398,30446,30340,12395,12399,19968,20999,20351,29992,12356,12383,12375,12414,12379,12435,12290);
	hp_ebus_answertext_yes = String.fromCharCode(12399,12356,12290,28288,36275,24230,35519,26619,12398,26696,20869,12434,27425,12398,12513,12540,12523,12450,12489,12524,12473,12408,36865,12387,12390,12367,12384,12373,12356,12290);
	hp_ebus_answertext_no = "&#12356;&#12356;&#12360;&#12289;&#12469;&#12540;&#12505;&#12452;&#12395;&#12399;&#21442;&#21152;&#12375;&#12414;&#12379;&#12435;&#12290;";
	hp_ebus_buttontext = "&#27425;&#12408;";
}
//Korean (Korean)
else if (l == "1042") {
	invitationtext = String.fromCharCode(72,80,32,51648,50896,32,50937,32,49324,51060,53944,47484,32,44060,49440,54616,45716,45936,32,46020,50880,51012,32,51452,49901,49884,50724,33,32,44480,54616,51032,32,51204,51088,32,50864,54200,32,51452,49548,47484,32,50500,47000,50640,32,51077,47141,54620,32,54980,32,39,48372,45236,44592,39,47484,32,45572,47476,47732,32,72,80,32,51648,50896,32,49444,47928,32,51312,49324,32,54168,51060,51648,50640,32,45824,54620,32,47553,53356,44032,32,51228,44277,46112,32,44163,51077,45768,45796,46,32,44480,54616,44032,32,51228,44277,54616,49888,32,51204,51088,32,50864,54200,32,51452,49548,45716,32,48376,32,53945,51221,32,49444,47928,32,51312,49324,50640,32,45824,54620,32,47553,53356,47484,32,51204,49569,54616,45716,32,45936,50640,47564,32,49324,50857,46112,32,44163,51077,45768,45796,46);
	hp_ebus_answertext_yes = String.fromCharCode(50696,46,32,45796,51020,32,51204,51088,50864,54200,32,51452,49548,47196,32,51312,49324,47484,32,48372,45236,51452,49901,49884,50724,46,32);
	hp_ebus_answertext_no = String.fromCharCode(50500,45768,50724,44,32,49444,47928,32,51312,49324,32,52280,50668,47484,32,50896,52824,32,50506,49845,45768,45796,46);
	hp_ebus_buttontext = "&#48372;&#45236;&#44592;";
}

else{
//English -- default
invitationtext = "Please help us improve the HP support website! Enter your e-mail address below and click on 'Submit' to receive a link to the HP support survey. Your e-mail address will be used only to send a link to this specific survey."
hp_ebus_answertext_yes = "Yes, send me the survey at this email address:"; 
hp_ebus_answertext_no = "No, I do not want to participate in the survey.";
hp_ebus_buttontext = "Submit";
}


/*****************************Begin overlay HTML code****************************************/ 
var hp_ebus_surveydivtext = "<iframe ID=\"hp_ebus_survey_iframe\" style='visibility:visible;position:absolute; top:80px; left:30px; height:330px; width:556px; z-index:150;' src='javascript:false;'></iframe><div dir="+hp_ebus_dir+" 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:80px; 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 border=0 width=100%>";
hp_ebus_surveydivtext += "<tr><td valign=top align=right bgcolor='#3300CC'><a href=\"javascript:toggleBox('hp_ebus_surveydiv',0);toggleBox('hp_ebus_survey_iframe',0);\"><font color=white>X</font></a></td></tr>";
hp_ebus_surveydivtext += "<tr><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="+hp_ebus_align+">";
hp_ebus_surveydivtext += invitationtext + "<p>";
hp_ebus_surveydivtext += "<form name='hp_ebus_form'><input type='hidden' name='hp_ebus_survey' value='BSC'><input type='radio' name='hp_ebus_invitation' value='yes'>"+hp_ebus_answertext_yes;
hp_ebus_surveydivtext += " <input type='text' name='hp_ebus_email' onChange=\"document.hp_ebus_form.hp_ebus_invitation[0].checked\">";
hp_ebus_surveydivtext += "<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******************************************/
//alert (surveyName);
document.write(hp_ebus_surveydivtext);
    toggleBox('hp_ebus_surveydiv',1);
	toggleBox('hp_ebus_survey_iframe',1);
}} 

function hp_ebus_verify(){   
		
	if (document.hp_ebus_form.hp_ebus_invitation[1].checked == true){
		var expires = new Date();
		//var invitation = 2;
		launchSurvey(1)
    		expires.setTime(expires.getTime()+(expDays*24*60*60*1000));
		document.cookie = "HP_EBUS=true;path=/;Expires="+expires.toGMTString()+";domain="+hp_ebus_domain;
		toggleBox('hp_ebus_surveydiv',0);
		toggleBox('hp_ebus_survey_iframe',0);		
	}
	else {		
			var email = document.hp_ebus_form.hp_ebus_email.value;						
			if (email.length < 4){
				
				if (l == "1042"){
					alert(String.fromCharCode(51204,51088,50864,54200,32,51452,49548,47484,32,51077,47141,54616,49901,49884,50724,46,13,10));
					document.hp_ebus_form.hp_ebus_email.focus();
					return;
				}
				else if (l == "2052"){
					alert(String.fromCharCode(35831,36755,20837,30005,23376,37038,20214,22320,22336,13,10));
					document.hp_ebus_form.hp_ebus_email.focus();
					return;
				}
				else if (l == "1028"){
					alert(String.fromCharCode(35531,36664,20837,38651,37109,22320,22336,13,10));
					document.hp_ebus_form.hp_ebus_email.focus();
					return;
				}
				else if (l == "17"){
					alert(String.fromCharCode(38651,23376,12513,12540,12523,12450,12489,12524,12473,12434,20837,21147,12375,12390,12367,12384,12373,12356,12290,13,10));
					document.hp_ebus_form.hp_ebus_email.focus();
					return;
				}
				else{
					alert("Please enter an email address to continue");
					document.hp_ebus_form.hp_ebus_email.focus();
					return;
				}
			}
			launchSurvey(2,email);
			toggleBox('hp_ebus_surveydiv',0);
			toggleBox('hp_ebus_survey_iframe',0);
	}
		
}


function launchSurvey(invitation,email){ 

		url += "&l="+l+"&invitation="+invitation+"&email="+email;
		window.open(url, "","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("") +"'");
					}			
			}
		}
	}
}
//-->