function setCountryLanguageCookies(languageCode,countryCode){document.cookie="cc="+countryCode+";domain=.hp.com;path=/;";document.cookie="lang="+languageCode+";domain=.hp.com;path=/;";return true;}
function gatewayChangeCountryLang(countryLangCurrent,countryLangSelect,myPage){var countryLangRequest=countryLangSelect.options[countryLangSelect.selectedIndex].value;var needSlash=myPage.charAt(0)=='/'?'':'/';if(countryLangCurrent!=countryLangRequest){document.location.href="http://welcome.hp.com/country/"+countryLangRequest+needSlash+myPage;}
return true;}
function openWin(url,width,height,win_name){bName=navigator.appName;var new_url="";if(bName=="Microsoft Internet Explorer"){for(var i=0;i<url.length;i++){var c=url.charAt(i);if(c=='%'){i+=1;var d=url.charAt(i);new_url+="%25"+d;}else{new_url+=c;}}}else{new_url=url;}
if(win_name==null)
{win_name="newPopupWindow";}
varn=open(new_url,win_name,"resizable=yes,toolbar=0,scrollbars=yes,directories=0,status=0,menubar=0,width="+width+",height="+height);}
function strtrim(str){if(str!=null){return str.replace(/^\s+/,'').replace(/\s+$/,'');}}
function isEmptyString(s){return(s==null||/^ *$/.test(s));}
function decodeHtml(str)
{str=str+"";str=str.replace(/&quot;/g,'"');return str;}
function New(page,pageName){window.open(page,pageName,"toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=yes,height=450,width=800");}
function popup(url,w,h){newPopup=window.open(url,'lbcpop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width='+w+',height='+h);newPopup.focus();}
function getParams(){var idx=document.URL.indexOf('|');var mcc='XJS';if(idx!=-1){var mcc=document.URL.substring(idx+1,document.URL.length);}
mcc='&MCC='+mcc;return mcc;}
function passMCC(url){var mcc=getParams();url=url+mcc;document.location=url;}
function open_popup(page,x,y,s,r){eval("page"+" = window.open(page, '"+"', 'toolbars=0,scrollbars=' + s + ',location=0,statusbars=0,menubars=0,resizable=' + r + ',width=' + x + ',height=' + y);");return false;}
function partner_link(url)
{if(confirm("You are leaving HP.com to visit a web site that is not maintained by HP and where the HP privacy policy does not apply.\n\nThis link is provided to you for convenience and does not serve as an endorsement by HP of any information or contacts that you may find on this non-HP site. Remember, when you need information about HP products or services, come back to our Web site. Thank you for visiting HP.com.\n\nClick OK to continue, or Cancel to stay on the HP.com site.")){window.open(url);}}
if(typeof countrySelect_URLs=='undefined'){window.onload=function(){document.countryForm.style.display='none';document.getElementById('ctryInd').innerHTML='United States-English';}}
function jumpToURL(){url=countrySelect_URLs[document.countryForm.countrySelect.selectedIndex];if(url!=""){location.href=url;}}
function printit(){if(window.print){window.print();}else{var WebBrowser='<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" />';document.body.insertAdjacentHTML('beforeEnd',WebBrowser);WebBrowser1.ExecWB(6,1);WebBrowser1.outerHTML="";}}
function STFpopup()
{url=location.href;url=url.replace(/(http:\/\/)(.)+(\.com)/gi,'');if(url.match(/^[a-zA-Z0-9_#\-\.\/]*$/))
{newPopup=window.open('/cgi-bin/sbso/email-to-friend.cgi?referrer='+url+'','stfpop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=375,height=370');newPopup.focus();}else{alert('Security Violation');}}
if(document.images&&(location.pathname=='/sbso/index_evo.html'))
{var img_width=64;var img_height=64;ipgmultion=new Image(img_width,img_height);ipgmultion.src="/sbso/evo/images/ipg2.jpg";ipgfaxon=new Image(img_width,img_height);ipgfaxon.src="/sbso/evo/images/ipg3.jpg";ipgdigitalon=new Image(img_width,img_height);ipgdigitalon.src="/sbso/evo/images/laserjet-1022-64x64.jpg";ipgsupplieson=new Image(img_width,img_height);ipgsupplieson.src="/sbso/evo/images/ipg6.jpg";pcworkon=new Image(img_width,img_height);pcworkon.src="/sbso/evo/images/pc2.jpg";pcnoteon=new Image(img_width,img_height);pcnoteon.src="/sbso/evo/images/pc3.jpg";pchandon=new Image(img_width,img_height);pchandon.src="/sbso/evo/images/pc4.jpg";pcmonitoron=new Image(img_width,img_height);pcmonitoron.src="/sbso/evo/images/pc5.jpg";serveron=new Image(img_width,img_height);serveron.src="/sbso/evo/images/server2.jpg";serverstoron=new Image(img_width,img_height);serverstoron.src="/sbso/evo/images/server3.jpg";serverneton=new Image(img_width,img_height);serverneton.src="/sbso/evo/images/server4.jpg";serverbladeon=new Image(img_width,img_height);serverbladeon.src="/sbso/evo/images/prod-blade-servers-64x64.jpg";ipgoff=new Image(img_width,img_height);ipgoff.src="/sbso/evo/images/ipg2.jpg";pcoff=new Image(img_width,img_height);pcoff.src="/sbso/evo/images/pc3.jpg";serveroff=new Image(img_width,img_height);serveroff.src="/sbso/evo/images/server2.jpg";}
function changeImage(imgName,picobj)
{if(document.images)
{document.images[imgName].src=picobj.src;}}
function removeInstructionalText(){if(document.emailForm.EMAIL.value=="Enter e-mail address"){document.emailForm.EMAIL.value="";}}
function validateEmail(){if(document.emailForm.EMAIL.value!=""&&document.emailForm.EMAIL.value!=document.emailForm.EMAIL.defaultValue){if(!checkEmail(document.emailForm.EMAIL.value)){alert("Invalid email address");return false;}}
return true;}
function drawGMNButton()
{if(is_win&&(is_ie5||is_ie6||is_ie7)&&(!is_opera))
{document.write('<div class="contentBlock centerAligned" style="border-top:1px solid #ccc;margin-top:15px;padding:15px 0 10px 0;">');document.write('<h3 class="bold">Or Automatically detect product names/numbers:</h3>');document.write('<div style="padding:10px 0;">');document.write('<form action="http://h20270.www2.hp.com/ediags/gmn/index.aspx" method="get" name="productDetect" id="productDetect" style="margin-bottom: 0;">');document.write('<input type="submit" name="detectProducts" class="primButton" value="Start Detection&nbsp;&raquo;">');document.write('</form>');document.write('</div>');document.write('<span class="small">&raquo;&nbsp;<a href="http://h20270.www2.hp.com/ediags/gmn/index.aspx?about=yes">About automatic product detection</a></span>');document.write('</div>');}}
function getVars()
{var varString=window.location.search.substring(1);var varArray=varString.split('&');var expression;var tempArray;for(i=0;i<varArray.length;i++)
{if(varArray[i].indexOf("=")>=1)
{tempArray=varArray[i].split('=');expression=tempArray[0]+"='"+tempArray[1]+"'";eval(expression);}}}
var selectedValue="";function setRadio()
{var myRadio=document.productQuery.h_pagetype;for(var i=0;i<myRadio.length;i++)
{if(myRadio[i].value==selectedValue)
{myRadio[i].checked=true;return;}}}
var queryString=new Array();var parameters=window.location.search.substring(1).split('&');for(var i=0;i<parameters.length;i++){var pos=parameters[i].indexOf('=');if(pos>0){var paramname=parameters[i].substring(0,pos);var paramval=parameters[i].substring(pos+1);queryString[paramname]=unescape(paramval.replace(/\+/g,' '));}else{queryString[parameters[i]]=""}}
var printVersion=(queryString["printVersion"]=='true')?true:false;
<!-- Code compressed using online JavaScript Compressor http://www.webutils.pl/JScompress -->

function checkNum(strVar)
{var numOK=true;if(strVar!="")
{var strNum="0123456789";for(i=0;i<strVar.length;i++)
{if(strNum.indexOf(strVar.charAt(i))<0)
{numOK=false;break;}}}
return numOK;}
function checkRating(strVar)
{var numOK=true;if(strVar!="")
{var strNum="12345";for(i=0;i<strVar.length;i++)
{if(strNum.indexOf(strVar.charAt(i))<0)
{numOK=false;break;}}}
return numOK;}
function checkRatingSequence(arrValues)
{var numOK=true;var rating="";var strNum="12345";for(i=0;i<arrValues.length;i++)
{rating=arrValues[i];if(strNum.indexOf(rating.charAt(0))<0)
{numOK=false;break;}
else
{strNum=strNum.replace(rating,"");}}
return numOK;}
function checkZip(strVar)
{var zipOK=true;if(strVar!=""){var regex=/(^\d{5}$)|(^\d{5}[ -]?\d{4}$)/;if(!regex.test(strVar)){zipOK=false;}}
return zipOK;}
function checkPOBox(strVar)
{var addressOK=0;var i=0;var poIndex;strVar=strVar.toUpperCase();arrayPOBox=new Array(/P\.O\./,"PO BOX","POSTOFFICE BOX","POST OFFICE BOX","POSTAL BOX");for(i=0;i<arrayPOBox.length;i++){poIndex=strVar.search(arrayPOBox[i]);if(poIndex>-1){return false;break;}}
return true;}
function checkPercent(strVar)
{var zipOK=true;if(strVar!="")
{var strNum="0123456789%";for(i=0;i<strVar.length;i++)
{if(strNum.indexOf(strVar.charAt(i))<0)
{zipOK=false;break;}}}
return zipOK;}
function checkPostal(strVar)
{var postalOK=true;var regex=/^[a-z]{1}\d{1}[a-z]{1}\s{1}\d{1}[a-z]{1}\d{1}/i;if(!regex.test(strVar)){postalOK=false;}
return postalOK;}
function checkEmail(strVar)
{var emailReg=/^(\w){1}[^\*\$\^\&\!\#\%\(\)\+\`\~\,\/\?\:\;\\\"\|\[\]\{\}\@]+\@(\w){1}(\w|-|\.)+\.[a-z]{2,4}$/i;var emOK=true;var email_addys=strVar.split(';');for(i=0;i>email_addys.length;i++){if(strVar!=""){if(!emailReg.test(strVar)){emOK=false;}}}
return emOK;}
function checkCharacter(strStringToCheck)
{var strNewString=strStringToCheck;for(i=0;i<strStringToCheck.length;i++){if(strStringToCheck.charAt(i)=="'"){strNewString=strStringToCheck.replace("'","\'");}}
return strNewString;}
function setContactedDate(){var today=new Date();var month=today.getMonth()+1;var date=today.getDate();if(month<10){month='0'+month;}
if(date<10){date='0'+date;}
var contactedDate=month+"/"+date+"/"+today.getFullYear();return contactedDate;}
function stripPhoneString(strPhone)
{var strNewPhone=strPhone;if(strPhone.search("-")!=-1){strNewPhone=strPhone.replace("-","");}else if(strPhone.search(" ")!=-1){strNewPhone=strPhone.replace(" ","");}else if(strPhone.search(".")!=-1){strNewPhone=strPhone.replace(".","");}
return strNewPhone;}
function assignRSC(strProduct,strQuantity)
{var rscCodes=new Array(24);var rscString="";rscCodes["BUSINESS_PC"]="A9W";rscCodes["SERVER"]="A9S";rscCodes["NOTEBOOK_PC"]="A9R";rscCodes["HANDHELD_PC"]="A9X";rscCodes["STORAGE"]="A9V";rscCodes["NETWORK"]="A9K";rscCodes["BW_LASERJET"]="A9M";rscCodes["BW_PRINTER"]="A9M";rscCodes["BW_PRINTERS"]="A9M";rscCodes["COLOR_PRINTER"]="A9H";rscCodes["COLOR_PRINTERS"]="A9H";rscCodes["IMAGING"]="A9U";rscCodes["SCANNERS"]="A9U";rscCodes["DESKJET"]="A9H";rscCodes["INKJET"]="A9L";rscCodes["DESIGNJET"]="A9G";rscCodes["OFFICEJET"]="A9Q";rscCodes["PHOTOSMART"]="A9T";rscCodes["DEPT_MULTI_PRINTER_COPIER"]="A9P";rscCodes["WORK_MULTI_PRINTER_COPIER"]="A9P";rscCodes["PERS_MULTI_PRINTER"]="A9P";rscCodes["LARGE_FORMAT_COLOR_PRINTER"]="A9G";rscCodes["DIGITAL_PROJ"]="A9J";rscCodes["LASERJET"]="A9N";rscCodes["PROJECTOR_MOBILE"]="GH3";rscCodes["PROJECTOR_ONSITE"]="GH4";rscCodes["PROJECTOR_AUDITORIUM"]="GH5";if(strQuantity!="0")
{rscString=rscCodes[strProduct]+":"+strQuantity;}
else
{rscString=strQuantity;}
return rscString;}
function loopCheckboxes(strForm){var no="NO";var oForm=document.forms[strForm];var bIsChecked=false;var type;var value;for(var i=0;i<oForm.elements.length;i++){type=oForm.elements[i].type;if(type=='checkbox'){if(oForm.elements[i].checked&&oForm.elements[i].value!="NO"){oForm.elements[i].value="YES";}else{oForm.elements[i].checked=true;oForm.elements[i].value="NO";}}}}
