function showPasswordError(c,g,d){var a=document.getElementById(c);var f=document.getElementById(g);var b=document.getElementById(d);f.innerHTML="The password you have entered is incorrect, please check and re-enter.  Otherwise, if you have forgotten your password, please click here.";b.className="errspan";
}function showPasswordError1(f,i,g,a){var b=document.getElementById("securityForm").sName.value;var c=document.getElementById(f);var h=document.getElementById(i);var d=document.getElementById(g);h.style.display="block";if(b=="axp"){if(a<3){h.innerHTML="The Password entered is incorrect. Please try again.";
}}else{if(a<2){h.innerHTML='The password you have entered is incorrect, please check and re-enter. <br> Otherwise, if you have forgotten your password, please <a href="/page/views/validateUser.jsp">click here</a>.';}else{h.innerHTML='You have failed twice to enter the correct password. <br> If you fail to enter your password correctly once more  you will have to return later to try again.  <br> If you have forgotten your password, please <a href="/page/views/validateUser.jsp">click here</a>.';
}}d.className="errspan";}function clearPasswordError(c,g,d){var a=document.getElementById(c);var f=document.getElementById(g);var b=document.getElementById(d);f.innerHTML="";f.style.display="none";b.className="norm";}var isOpen=false;var xmlhttp=false;try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){xmlhttp=false;}}if(!xmlhttp&&typeof XMLHttpRequest!="undefined"){xmlhttp=new XMLHttpRequest();}function getPageScroll(){var b,a;if(self.pageYOffset){a=self.pageYOffset;b=self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop;
b=document.documentElement.scrollLeft;}else{if(document.body){a=document.body.scrollTop;b=document.body.scrollLeft;}}}arrayPageScroll=new Array(b,a);return arrayPageScroll;}function getPageSize(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=window.innerWidth+window.scrollMaxX;a=window.innerHeight+window.scrollMaxY;
}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight;}else{c=document.body.offsetWidth;a=document.body.offsetHeight;}}var b,d;if(self.innerHeight){if(document.documentElement.clientWidth){b=document.documentElement.clientWidth;}else{b=self.innerWidth;
}d=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight;}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight;}}}if(a<d){pageHeight=d;}else{pageHeight=a;}if(c<b){pageWidth=c;
}else{pageWidth=b;}arrayPageSize=new Array(pageWidth,pageHeight,b,d);return arrayPageSize;}function createWin(g,d){var j=getPageScroll();var b=getPageSize();var i=document.getElementById(d);var a=document.getElementById("dim");var h=g;if(i.style.display=="none"){xmlhttp.open("GET",h);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4&&xmlhttp.status==200){i.innerHTML=xmlhttp.responseText;
}};xmlhttp.send(null);if(i.innerHTML.indexOf("closeWin")>=0){}if(document.getElementById("blockieselect")){var f=document.getElementById("blockieselect");if(window.ActiveXObject){f.style.display="block";}else{f.style.display="none";}f.style.height=(b[1])+"px";f.style.width=(b[0])+"px";f.style.top="0px";
f.style.left="0px";f.style.position="absolute";}a.style.display="block";a.style.width="auto";a.style.height=(arrayPageSize[1])+"px";a.style.width=(arrayPageSize[0])+"px";if(document.getElementById("mid")){if(window.ActiveXObject){var k=((b[0]/2)-300)+j[0];}else{var k=((b[0]/2)-200)+j[0];}var c=(b[3]/3);
}else{var c=180;var k=((b[0]/2)-300)+j[0];}i.style.display="block";i.style.top=c+"px";i.style.left=k+"px";}else{i.style.display="none";i.innerHTML="";a.style.display="none";}}function resetDim(){var a=document.getElementById("dim");a.style.width="100%";a.style.height="100%";}window.onresize=function(){var b=document.getElementById("popwin");
var d=getPageScroll();var a=getPageSize();if(document.getElementById("mid")){if(window.ActiveXObject){var c=((a[0]/2)-300)+d[0];}else{var c=((a[0]/2)-200)+d[0];}var g=(a[3]/3);}else{var g=40;var c=((a[0]/2)-300)+d[0];}b.style.top=g+"px";b.style.left=c+"px";var f=document.getElementById("dim");f.style.width=(a[0])+"px";
f.style.height=(a[1])+"px";};window.onscroll=function(){var b=document.getElementById("popwin");var d=getPageScroll();var a=getPageSize();if(document.getElementById("mid")){if(window.ActiveXObject){var c=((a[0]/2)-300)+d[0];}else{var c=((a[0]/2)-200)+d[0];}var g=(a[3]/3);}else{var g=40;var c=((a[0]/2)-300)+d[0];
}b.style.top=g+"px";b.style.left=c+"px";var f=document.getElementById("dim");f.style.width=(a[0])+"px";f.style.height=(a[1])+"px";};function closewin(c){var a=document.getElementById(c);a.style.display="none";a.innerHTML="";var b=document.getElementById("dim");b.style.display="none";if(document.getElementById("blockieselect")){document.getElementById("blockieselect").style.display="none";
}}function hide(a){document.getElementById(a).style.display="none";}function show(b){var a=document.getElementById(b);a.style.display="block";}function gotoPage(a){var b=a;window.location.href=b;}function findPosX(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent;}}else{if(a.x){b+=a.x;
}}return b;}function findPosY(b){var a=0;if(b.offsetParent){while(b.offsetParent){a+=b.offsetTop;b=b.offsetParent;}}else{if(b.y){a+=b.y;}}return a;}function createToolTip(i,c,f){var b=c;var k=document.getElementById(b);var a=i;if(isOpen!=true){isOpen=true;var j=0;var h=0;j=(findPosX(document.getElementById("name_cErr"))-document.body.scrollLeft);
h=(findPosY(document.getElementById("name_cErr"))-document.documentElement.scrollTop);var d=k;d.style.position="absolute";d.style.display="block";d.style.width="300px";d.style.height="auto";d.style.top=h+"px";d.style.left=j+"px";var g=i;var c=k;xmlhttp.open("GET",g);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4&&xmlhttp.status==200){c.innerHTML=xmlhttp.responseText;
}};xmlhttp.send(null);}else{isOpen=false;var d=k;d.style.display="none";d.style.width="0";d.style.height="0";d.style.top="0";d.style.left="0";}}function getPageScroll(){var b,a;if(self.pageYOffset){a=self.pageYOffset;b=self.pageXOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){a=document.documentElement.scrollTop;
b=document.documentElement.scrollLeft;}else{if(document.body){a=document.body.scrollTop;b=document.body.scrollLeft;}}}arrayPageScroll=new Array(b,a);return arrayPageScroll;}function getPageSize(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=window.innerWidth+window.scrollMaxX;a=window.innerHeight+window.scrollMaxY;
}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight;}else{c=document.body.offsetWidth;a=document.body.offsetHeight;}}var b,d;if(self.innerHeight){if(document.documentElement.clientWidth){b=document.documentElement.clientWidth;}else{b=self.innerWidth;
}d=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight;}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight;}}}if(a<d){pageHeight=d;}else{pageHeight=a;}if(c<b){pageWidth=c;
}else{pageWidth=b;}arrayPageSize=new Array(pageWidth,pageHeight,b,d);return arrayPageSize;}function showToolTip(f,d,h){var b=getPageScroll();if(isOpen==false){isOpen=true;var c="";if(d==""||d=="undefined"){var k="#666666";}var k=d;var a=f;if(a=="perr"){if(c.length>1){c="";}c+="<p>Password can be 6-8 digits with a number</p>";
}else{if(a=="c_company"){if(c.length>1){c="";}c+="<p>There is a problem with the company field</p>";}else{if(a=="name_Err"){if(c.length>1){c="";}c+="<p>There is a problem with your Name</p>";}else{if(a=="c_city"){if(c.length>1){c="";}c+="<p>There is a problem with the city field</p>";}else{if(a=="c_state"){if(c.length>1){c="";
}c+="<p>There is a problem with the state field</p>";}else{if(a=="c_zip"){if(c.length>1){c="";}c+="<p>There is a problem with the zipcode field</p>";}else{if(a=="c_add1"){if(c.length>1){c="";}c+="<p>There is a problem with the first address field</p>";}else{if(a=="c_add2"){if(c.length>1){c="";}c+="<p>There is a problem with the second address field</p>";
}else{if(a=="c_country"){if(c.length>1){c="";}c+="<p>There is a problem with the country field</p>";}else{if(a=="c_phone"){if(c.length>1){c="";}c+="<p>There is a problem with the phone field</p>";}else{if(a=="c_email"){if(c.length>1){c="";}c+="<p>There is a problem with the email field</p>";}else{if(a=="card_typeErr"){if(c.length>1){c="";
}c+="<p>There is a problem with the credit card type</p>";}else{if(a=="card_numErr"){if(c.length>1){c="";}c+="<p>There is a problem with the credit card number</p>";}else{if(a=="year_monthErr"){if(c.length>1){c="";}c+="<p>There is a problem with the month or year</p>";}else{if(a=="sec_codeErr"){if(c.length>1){c="";
}c+="<p>There is a problem with the credit card security code</p>";}else{if(a=="secerr"){if(c.length>1){c="";}c+="<p>Security Question is a question only you will know the answer to</p>";}else{if(a=="name_cErr"){if(c.length>1){c="";}c+="<p>Error with name</p>";}else{if(c.length>1){c="";}c+="<p>Country is your country of permenant residence</p>";
}}}}}}}}}}}}}}}}}var l=document.getElementById(a);var j=0;var i=0;if(h){if(h.clientX||h.clientY){j=h.clientX+b[0];i=h.clientY+b[1];}else{if(h.pageX||h.pageY){j=h.pageX+b[0];i=h.pageY+b[1];}}}else{if(window.activeXObject){j=(findPosX(document.getElementById(a))-20);i=(findPosY(document.getElementById(a))-2);
}else{j=(findPosX(document.getElementById(a))+3);i=(findPosY(document.getElementById(a))-2);}}var g=document.getElementById("tooltip");g.style.position="absolute";g.style.display="block";g.style.width="auto";g.style.color=k;g.style.height="auto";g.style.top=i+"px";g.style.left=j+"px";g.innerHTML=c;}else{isOpen=false;
var g=document.getElementById("tooltip");g.innerHTML="";g.style.display="none";g.style.width="0px";g.style.height="0px";g.style.top="0px";g.style.left="0px";g.style.display="none";}}function closeWin(c){var b=c;var a=document.getElementById(b);if(a.style.display="block"){a.innerHTML="";a.style.width="0px";
a.style.height="0px";a.style.top="0";a.style.left="0";a.style.display="none";}}function getErrorType(){}function goPop(b){var a=document.getElementById("newwin");if(isOpen==false){isOpen=true;a.innerHTML="gopher";}else{isOpen=false;}}function toggle(){var a=document.getElementById("security_code").disabled;
if(a==true){a=false;}else{a=true;}}var openP=false;function showCC(d,c){var b=getPageScroll();var d=document.getElementById(d);var a=0;var f=0;if(openP==false){openP=true;d.style.display="block";if(c.clientX||c.clientY){a=c.clientX+b[0];f=c.clientY+b[1];}else{if(c.pageX||c.pageY){a=c.pageX+b[0];f=c.pageY+b[1];
}}d.style.top=f+"px";d.style.left=a+"px";}else{openP=false;d.style.display="none";}}function doAdd(c){var b=c;var a=document.getElementById("addField");if(b==6){a.innerHTML='<td class="right"><label for="security_other">Other: * </label></td><td class="left"><input type="text" class="sInput" value="" id="security_other"/></td><td class="noerr2">error with your custom security question</td>';
}else{if(b!=6){a.innerHTML="";}}}function getError(d){var a=d;var c=new Array("Problem with Card Type","Problem with Name on Card","Card Number not long enough","Need valid Month and Year","Need a Security Code");var f=new Array("Problem with Name","Problem with Company","Problem with Address 1","Problem with Address 2","Problem with City","Problem with State","Problem with Zipcode","Problem with Country","Problem with Email","Problem with Phone");
var g=new Array("Problem with Username","Problem with Password","Problem with Second Password","Problem with Security Question","Problem with Answer","Problem with Country","Problem with Zipcode","Problem with Email","Problem with Retype Email","Problem with Gender","Problem with Year Born");var b=new Array();
if(a==0){b=c;}else{if(a==1){b=f;}else{if(a==2){b=g;}}}return b;}function showToolTipA(n,m,g,l,r,s){var t=getPageScroll();var p=n;var h=getError(m);var f=document.getElementById("body");var k=document.createElement("div");k.id=p;k.className="errD";k.onclick=function(){closeWin(n);};var i=document.createTextNode(h[g]);
f.appendChild(k);var j=document.getElementById(p);j.appendChild(i);j.style.display="none";if(j.style.display!="block"){if(r==""||r=="undefined"){var a="#666666";}var a=r;var b=l;var c=document.getElementById(b);var q=0;var o=0;if(s){if(s.clientX||s.clientY){q=s.clientX+t[0];o=s.clientY+t[1];}else{if(s.pageX||s.pageY){q=s.pageX+t[0];
o=s.pageY+t[1];}}}else{if(window.activeXObject){q=(findPosX(document.getElementById(l))-20);o=(findPosY(document.getElementById(l))-2);}else{q=(findPosX(document.getElementById(l))+3);o=(findPosY(document.getElementById(l))-6);}}var d=document.getElementById(p);d.style.position="absolute";d.style.display="block";
d.style.width="auto";d.style.color=a;d.style.height="auto";d.style.top=o+"px";d.style.left=q+"px";}else{isOpen=false;var d=document.getElementById(p);d.innerHTML="";d.style.display="none";d.style.width="0px";d.style.height="0px";d.style.top="0px";d.style.left="0px";d.style.display="none";}}function popDim(g){var b=getPageScroll();
var c=getPageSize();var f=document.getElementById("dim");var h=b[1]+(c[1]/3);var d=((c[0]/2.5))+b[0];var a=document.getElementById(g);if(a.style.display=="none"){f.style.display="block";f.style.width="auto";f.style.height=c[1]+"px";f.style.width=c[0]+"px";a.style.display="block";a.style.top=h+"px";a.style.left=d+"px";
}else{a.style.display="none";a.style.top="0px";a.style.left="0px";f.style.display="none";}}function triggerPB(d){var b=d;var c=document.getElementById("bottomArea");var a=document.getElementById("row3");var g=document.getElementById("row4");var f=document.getElementById("pBtns");if(b=="Cancel Account"){c.className="show";
a.style.display="none";g.style.display="none";f.style.display="none";}else{c.className="hide";a.style.display="block";g.style.display="block";f.style.display="block";}}function checkEmpty(c,g,d){var a=document.getElementById(c);var f=document.getElementById(g);var b=document.getElementById(d);if(a.value.length==0){if(f.style.display!="block"){f.style.display="block";
}if(d=="row2"){f.innerHTML="Please provide a question.";}else{f.innerHTML="Please provide an answer.";}b.className="errspan";return false;}else{if(f.style.display=="block"){f.style.display="none";}b.className="norm";return true;}}function checkCbo(c,g,d){var a=document.getElementById(c);var f=document.getElementById(g);
var b=document.getElementById(d);if(a.selectedIndex==0){f.innerHTML="Please select a security question.";b.className="errspan";f.style.display="block";return false;}else{f.innerHTML="";b.className="norm";f.style.display="none";return true;}}function errMsg(b){var c=Array(7);if(b=="myprofile"&&req.responseXML.getElementsByTagName("validPassword").length==0){if(document.getElementById("passwordErr").innerHTML==""){showPasswordError1("password","passwordErr","row1",0);
}return false;}if(b=="myprofile"){var a=req.responseXML.getElementsByTagName("validPassword")[0].firstChild.nodeValue;}if(b=="myprofile"&&document.getElementById("password").value.length==0||a=="false"){return false;}if(b=="myprofile"){if(document.getElementById("password").value.length==0){document.getElementById("passwordErr").innerHTML="<font color='#ff0000'>Please enter password</font>";
return false;}}c[0]=checkCbo("secQuest1","secQuest1Err","row2");if(document.getElementById("secQuest1").value=="Enter your own security question"){c[1]=checkEmpty("theSelCust1","secQuestErrOth1","row2");}else{c[1]=true;}c[2]=checkEmpty("answer1","answer1Err","row3");c[3]=checkCbo("secQuest2","secQuest2Err","row4");
c[4]=checkEmpty("answer2","answer2Err","row5");c[5]=checkCbo("secQuest3","secQuest3Err","row6");c[6]=checkEmpty("answer3","answer3Err","row7");for(iCtr=0;iCtr<c.length;iCtr++){if(!c[iCtr]){return false;}}return true;}function submitPage(){document.forms[0].submit();return false;}function createPopWin(b,f,a,d){var c=window.open(b,f,"width="+a+", height="+d);
if(window.focus){c.focus();}return false;}