var id;var orderId;var tab_selected="tab_selected";var tab_unselect="tab";function getRadioValue(c){var a=document.getElementsByTagName("hiddenBundleRadioButtonValue");document.getElementsByTagName("hiddenBundleRadioButtonValue").value=c}function GetRadioButtonValuesVobs(){var b="https://sso.verizon.net/ssowebapp/VOLPortalLogin?login_type=business&ActualTarget=https%3A%2F%2Fessentialsandextras%2Everizon%2Ecom%2Fapp%2Dstorefront%2Fbuy%2Edo%3Foid%3D";var a=document.getElementById("hiddenOfferRadioButtonValue").value;if(a==""){a=document.getElementById("hiddenOfferRadioButtonValue").value}var c=b+a;document.getElementById("Link").href=c}function GetRadioButtonValuesVobs1(){var b="https://sso.verizon.net/ssowebapp/VOLPortalLogin?login_type=business&ActualTarget=https%3A%2F%2Fessentialsandextras%2Everizon%2Ecom%2Fapp%2Dstorefront%2Fbuy%2Edo%3Foid%3D";var a=document.getElementById("hiddenBundleRadioButtonValue").value;if(a==""){a=document.getElementById("hiddenBundleRadioButtonValue").value}var c=b+a;document.getElementById("Link1").href=c}function validateAddress(f,c,d,b,e){var a=false;if(validateStreetNo(c)&&validateStreetNo(d)&&validateText(b)&&validateNo(e)){document.getElementById(f).submit()}}function validatePhoneNo(i,a,l,k,m){var c=false;var d="https://www22.verizon.com/ForyourSmallBiz/Broadband/Ordering/BB_Loopqualframe.aspx?txtnpa=";var b="&txtnxx=";var j="&txtline=";if(m=="FiOS"){var f="&appName=FIOS&Src=SMB"}else{var f="&appName=HSI&Src=SMB"}var h=document.getElementById(a).value;var g=document.getElementById(l).value;var e=document.getElementById(k).value;if(validateNo(a)&&validateNo(l)&&validateNo(k)){window.open(d+h+b+g+j+e+f)}}function validateText(a){var d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-. ";var c=document.getElementById(a).value;if(c==null||c==""){alert(document.getElementById(a).title+" field is empty");document.getElementById(a).style.background="yellow";return false}else{for(var b=0;b<c.length;b++){temp=""+c.substring(b,b+1);if(d.indexOf(temp)=="-1"){alert("Invalid characters in your "+document.getElementById(a).title+" field.Please try again.");document.getElementById(a).style.background="yellow";return false}}document.getElementById(a).style.background="none";return true}}function validateNo(b){var c="0123456789";var d=document.getElementById(b).value;if(d==null||d==""){if(b=="marketPlaceCommon.actionForm_zip"){alert("Zipcode field is empty.");document.getElementById(b).style.background="yellow"}else{alert("Business phone number field is empty.");document.getElementById(b).style.background="yellow"}return false}else{for(var a=0;a<d.length;a++){if(d.length<document.getElementById(b).maxLength){if(b=="marketPlaceCommon.actionForm_zip"){alert(document.getElementById(b).title+"code field should contains "+document.getElementById(b).maxLength+" numbers");document.getElementById(b).style.background="yellow"}else{alert("Invalid phone number.");document.getElementById(b).style.background="yellow"}return false}else{temp=""+d.substring(a,a+1);if(temp==null||temp==" "){if(b=="marketPlaceCommon.actionForm_zip"){alert(document.getElementById(b).title+"code field should not contains blank spaces.");document.getElementById(b).style.background="yellow"}else{alert("Phone number field should not contains blank spaces.");document.getElementById(b).style.background="yellow"}return false}else{if(c.indexOf(temp)=="-1"){if(b=="marketPlaceCommon.actionForm_zip"){alert("Invalid characters in your "+document.getElementById(b).title+" code field.Please try again.");document.getElementById(b).style.background="yellow"}else{alert("Invalid characters in your phone number.  Please try again.");document.getElementById(b).style.background="yellow"}return false}}}}document.getElementById(b).style.background="none";return true}}function unAuthClick(a,b){window.location=a+b+orderId}function evaluateOfferUnAuth(){var a=document.getElementById("marketPlaceCommon.extOffId");if(a.alt=="offerRadioOption"){alert("Please select a plan ");return false}else{return true}}function evaluateBundleUnAuth(){var a=document.getElementById("marketPlaceCommon.extBundleId");if(a.alt=="bundleRadioOption"){alert("Please select a plan ");return false}else{return true}}function evaluateOffer(){var a=false;a=evaluateOfferId();if(a){document.getElementById("marketPlaceCommon.offerOrderNowFormBean").submit()}}function evaluateOfferId(){var a=document.getElementById("marketPlaceCommon.extOffId");if(a.alt=="offerRadioOption"){alert("Please select a plan ");return false}return true}function offerClicked(c){orderId=c;var a=document.getElementById("marketPlaceCommon.extOffId");if(a.alt=="offerRadioOption"){a.alt="offerRadioButton"}}function evaluateBundle(){var a=false;a=evaluateBundleId();if(a){document.getElementById("marketPlaceCommon.bundleOrderNowFormBean").submit()}}function evaluateBundleId(){var a=document.getElementById("marketPlaceCommon.extBundleId");if(a.alt=="bundleRadioOption"){alert("Please select a plan ");return false}return true}function bundleClicked(c){orderId=c;var a=document.getElementById("marketPlaceCommon.extBundleId");if(a.alt=="bundleRadioOption"){a.alt="bundleRadioButton"}}function validateStreetNo(a){var d="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-. ";var c=document.getElementById(a).value;if(c==null||c==""){alert(document.getElementById(a).title+" field is empty");document.getElementById(a).style.background="yellow";return false}else{for(var b=0;b<c.length;b++){temp=""+c.substring(b,b+1);if(d.indexOf(temp)=="-1"){alert("Invalid characters in your "+document.getElementById(a).title+" field.Please try again.");document.getElementById(a).style.background="yellow";return false}}document.getElementById(a).style.background="none";return true}}function orderClick(a,b){window.location=a+"&orderurl="+b+orderId}function unAuthCheck(b,c,a){window.location=b+c+a}function getTabDesc(c,a){var e=a;var g=new Array();g=e.split(";");var b=new Date();b.setTime(b.getTime()+1000*60*30);for(var d=0;d<g.length;d++){var f=g[d];if(f==c){document.getElementById("tabDesc_"+f).style.display="";document.getElementById(f).className=tab_selected;document.cookie="lastTabClicked="+f+";expires="+b+"; path=/";document.getElementById("tabName_"+f).style.cursor=""}else{document.getElementById("tabDesc_"+f).style.display="none";document.getElementById(f).className=tab_unselect;document.getElementById("tabName_"+f).style.cursor="pointer"}}};