//ADT - SUPER FORM //Author(s): Elias Amador //Post Author(s): Joe Cork, Kanika Binzani //Version: 2.0 //Published: 12/26/2010 //Last Revised: 12/09/2011 by Elias Amador var superFormDefault=false; var superFormSet=false; var clickCount=false; var target,settitle,setdescription,settype,setcolumns,setlabel,setdisclaimer,setccdisplay,setbutton,setlanguage,setformname,setformsubject,setformtype,setformdnis,setformtyurl,settmplstylesheet,setstylesheet,activeDnis,activeDivision,activeLanguage,activeDataType,activeType,bodyResi,bodySmb,bodyComm,govForm,tempSubject,tempDnis,tempType,tempTY; function ccClick() { if (clickCount) { document.getElementById("Request_Email_Subject").value=tempSubject; document.getElementById("Promotion_Code").value=tempDnis; document.getElementById("Request_Message_Type").value=tempType; document.getElementById("thank_you_url").value=tempTY; clickCount=false; } else { tempSubject = document.getElementById("Request_Email_Subject").value; tempDnis = document.getElementById("Promotion_Code").value; tempType = document.getElementById("Request_Message_Type").value; tempTY = document.getElementById("thank_you_url").value; document.getElementById("Request_Email_Subject").value="Customer Service - DNIS 000-000-0371"; document.getElementById("Promotion_Code").value="0000000371"; document.getElementById("Request_Message_Type").value="L"; document.getElementById("thank_you_url").value=getCCURL(); clickCount=true; } } function formatField(fieldVal) { var fieldVal1 = fieldVal.substring(0,3); var fieldVal2 = fieldVal.substring(3,6); var fieldVal3 = fieldVal.substring(6,10); fieldVal = fieldVal1 +"-"+ fieldVal2 +"-"+ fieldVal3; return fieldVal; } function fireOmniture() { s.prop7=activeDnis; if (s.prop7!='') {s.eVar7=s.prop7;} s.prop9=activeDivision; s.eVar9=s.prop9; if ($('#Request_Message_Type').val()=="L") { s.prop10='Lead Form'; s.prop13='Lead'; } else { s.prop10='Contact Form'; s.prop13='Contact'; } s.eVar10=s.prop10; s.eVar13=s.prop13; var stringEvents=String(s.events); if (stringEvents.indexOf("event2")==-1) { s.events=s.events+', event2'; } } function getCCURL() { var tempDomain = document.domain; var tempMatrix = tempDomain.split('.'); if (tempMatrix[0] == 'perf' || tempMatrix[0] == 'dev' || tempMatrix[0] == 'authoring') { tempDomain = 'http://perf.www.adt.com'; } else { tempDomain = 'http://www.adt.com'; } return (tempDomain + '/about-adt/thank-you?ty=0000000371#page=' + s.pageName); } function getCSSURL() { var tempDomain = document.domain; var tempMatrix = tempDomain.split('.'); if (tempMatrix[0] == 'dev') { tempDomain = 'dev.www.adt.com'; } else if (tempMatrix[0] == 'perf' || tempMatrix[0] == 'authoring') { tempDomain = 'perf.www.adt.com'; } else { tempDomain = 'www.adt.com'; } return tempDomain; } function getStoreURL() { var tempDomain = document.domain; var tempMatrix = tempDomain.split('.'); if (tempMatrix[0] == 'perf' || tempMatrix[0] == 'dev' || tempMatrix[0] == 'authoring') { tempDomain = 'perf.www.adt.com'; } else { tempDomain = 'www.adt.com'; } return (tempDomain + '/wps/portal/adt/for_your_home/products_services/security_systems/store'); } function getTYURL() { var tempDomain = document.domain; var tempMatrix = tempDomain.split('.'); var tempDivision; var currPageURL = String(window.location); if (tempMatrix[0] == 'perf' || tempMatrix[0] == 'dev' || tempMatrix[0] == 'authoring') { tempDomain = 'http://perf.www.adt.com'; } else { tempDomain = 'http://www.adt.com'; } if (activeDivision == 'Resi') { if (currPageURL.indexOf("/customer-service")!=-1) { tempDivision = '/about-adt'; } else { tempDivision = '/home-security'; } } else if (activeDivision == 'Smbiz') { tempDivision = '/small-business-security'; } else if (activeDivision == 'Comm') { if (govForm != 1) { tempDivision = '/commercial-security'; } else { tempDivision = '/government-security'; } } else { tempDivision = '/about-adt'; } return (tempDomain + tempDivision + '/thank-you?ty='); } function usesFormOmniture(x) { var s=s_gi(s_account); s.linkTrackVars='prop7,prop9,prop10,prop13,eVar7,eVar9,eVar10,eVar13,events'; s.linkTrackEvents='event2'; s.prop7=activeDnis; s.eVar7=s.prop7; s.prop9=activeDivision; s.eVar9=s.prop9; s.prop10='Lead Form'; s.eVar10=s.prop10; s.prop13='Lead'; s.eVar13=s.prop13; s.events='event2'; s.tl(this,"o",x); //RESET OMNITURE VARIABLES s.linkTrackVars='pev2'; s.linkTrackEvents=null; s.prop7=null; s.eVar7=s.prop7; s.prop9=null; s.eVar9=s.prop9; s.prop10=null; s.eVar10=s.prop10; s.prop13=null; s.eVar13=s.prop13; s.events=null; } function usesForm(x,y) { if (y==1) { if (bodySmb!=0 && bodyComm!=0) { $('#smbFormContainer,#commFormContainer').html(''); } else if (bodySmb==0) { $('#commFormContainer').html(''); } else if (bodyComm==0) { $('#smbFormContainer').html(''); } $('#resiFormContainer').html('
'); setSuperForm("#resiForm",x); usesFormOmniture("HP:TabbedContent:HomeSecurity"); } else if (y==2) { if (bodyResi!=0 && bodyComm!=0) { $('#resiFormContainer,#commFormContainer').html(''); } else if (bodyResi==0) { $('#commFormContainer').html(''); } else if (bodyComm==0) { $('#resiFormContainer').html(''); } $('#smbFormContainer').html('
'); setSuperForm("#smbForm",x); usesFormOmniture("HP:TabbedContent:SMB"); } else if (y==3) { if (bodySmb!=0 && bodyResi!=0) { $('#smbFormContainer,#resiFormContainer').html(''); } else if (bodySmb==0) { $('#resiFormContainer').html(''); } else if (bodyResi==0) { $('#smbFormContainer').html(''); } $('#commFormContainer').html('
'); setSuperForm("#commForm",x); usesFormOmniture("HP:TabbedContent:Commercial"); } } function setContentForms(x,y,z) { if (x!=null) {$('#tabs h1.first a').click(function() {usesForm(x,1);});bodyResi=1;} else {bodyResi=0;} if (y!=null) {$('#tabs h1.second a').click(function() {usesForm(y,2);});bodySmb=1;} else {bodySmb=0;} if (z!=null) {$('#tabs h1.third a').click(function() {usesForm(z,3);});bodyComm=1;} else { bodyComm=0;} } function superForm(title,description,type,columns,label,disclaimer,ccdisplay,button,language,formname,formsubject,formtype,formdnis,formtyurl,tmplstylesheet,stylesheet,name) { this.title=title; this.description=description; this.type=type; this.columns=columns; this.label=label; this.disclaimer=disclaimer; this.ccdisplay=ccdisplay; this.button=button; this.language=language; this.formname=formname; this.formsubject=formsubject; this.formtype=formtype; this.formdnis=formdnis; this.formtyurl=formtyurl; this.tmplstylesheet=tmplstylesheet; this.stylesheet=stylesheet; this.name=name; } // BRING FORM ASSETS FROM NAVIGATOR superForm1=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0022','L','0000000022','#','None','/wps/wcm/connect/c0a915804524b69d99679f03dd566e8c/download.css?MOD=AJPERES','superForm1');superForm2=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Pulse - DNIS 000-000-0027','L','0000000027','#','None','/wps/wcm/connect/1df1680045526a9ebfb1bf03dd566e8c/download.css?MOD=AJPERES','superForm2');superForm3=new superForm('Free Security Review','','comm','two','top','','false','CONTACT ME','english','default','Commercial Security Review - DNIS 000-000-0130','L','0000000130','/commercial-security/thank-you/?ty=comm0001','None','/wps/wcm/connect/c1208b00457dbdca8309ab912df0422b/heroFormSMBTemplate.css?MOD=AJPERES','superForm3');superForm4=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','Small Business Security Review - DNIS 000-000-0128','L','0000000128','/small-business-security/thank-you/?ty=smb0001','None','/wps/wcm/connect/dba942004589fe5f990eb9912df0422b/heroFormSMBTemplate.css?MOD=AJPERES','superForm4');superForm5=new superForm('Request More Info','','resi','two','top','','true','CONTACT ME','english','default','Home Health - DNIS 000-000-0188','L','0000000188','/home-security/thank-you/?ty=compan0002','None','/wps/wcm/connect/d2fcc280458a03af9997b9912df0422b/heroFormTemplate.css?MOD=AJPERES','superForm5');superForm6=new superForm('Free Security Review','','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0022','L','0000000022','/home-security/thank-you/?ty=resi0001','None','/wps/wcm/connect/2e030500458c6816ab1eab912df0422b/download.css?MOD=AJPERES','superForm6');superForm7=new superForm('Free Security Review','','smb','two','top','','false','CALL ME','english','default','Small Business Security Review - DNIS 000-000-0128','L','0000000128','/small-business-security/thank-you?ty=smb0001','None','/wps/wcm/connect/46f80980458d1355b04eb9912df0422b/download+%281%29.css?MOD=AJPERES','superForm7');superForm8=new superForm('Free Security Review','','comm','two','top','','false','CONTACT ME','english','default','Commercial Security Review - DNIS 000-000-0130','L','0000000130','/commercial-security/thank-you?ty=comm0001','None','/wps/wcm/connect/3212ee80458d180bb089b9912df0422b/download+%282%29.css?MOD=AJPERES','superForm8');superForm9=new superForm('Request More Info','','resi','two','top','','true','CONTACT ME','english','default','Home Health - DNIS 000-000-0037','L','0000000037','/home-security/thank-you/?ty=compan0001','None','/wps/wcm/connect/bb338800458f4a18bfb3bf912df0422b/download+%283%29.css?MOD=AJPERES','superForm9');superForm10=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 444-222-2222','L','4442222222','/home-security/thank-you/?ty=resi0003','None','/wps/wcm/connect/e580750045a81ffc9e81bf912df0422b/heroFormTemplate.css?MOD=AJPERES','superForm10');superForm11=new superForm('WE WILL CONTACT YOU','Fill out the form below and we will call you in minutes.','comm','two','top','','false','SUBMIT','english','default','Commercial Security Review - DNIS 000-000-0202','L','0000000202','#','None','/wps/wcm/connect/29bfba0045faba1a9f30bf912df0422b/custom-css.css?MOD=AJPERES','superForm11');superForm12=new superForm('WE WILL CONTACT YOU','Fill out the form below and we will call you in minutes.','gov','two','top','','false','SUBMIT','english','default','Government Security Review - DNIS 000-000-0203','L','0000000203','#','None','/wps/wcm/connect/bbb81b8045fb8fc8a61daf912df0422b/custom-css.css?MOD=AJPERES','superForm12');superForm13=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','Small Business Security Review - DNIS 000-000-0128','L','0000000128','/small-business-security/thank-you?ty=smb0001','None','/wps/wcm/connect/830577004601874ea1f0f37ce7989c6c/download+%281%29.css?MOD=AJPERES','superForm13');superForm14=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Pulse - DNIS 000-000-0197','L','0000000197','#','Resi Two Column Hero','/wps/wcm/connect/f43883804610cac5911bd37ce7989c6c/download.css?MOD=AJPERES','superForm14');superForm15=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0194','L','0000000194','#','Resi Two Column Hero','/wps/wcm/connect/3e3070804610cb7d9133d37ce7989c6c/heroFormTemplate.css?MOD=AJPERES','superForm15');superForm16=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0196','L','0000000196','/home-security/thank-you/?ty=resi0007','None','/wps/wcm/connect/21d11a004610cbf79148d37ce7989c6c/heroFormTemplate.css?MOD=AJPERES','superForm16');superForm17=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','Small Business Security Review - DNIS 000-000-0190','L','0000000190','#','Smb Two Column Hero','/wps/wcm/connect/961dce004610e234920cd27ce7989c6c/newcss.css?MOD=AJPERES','superForm17');superForm18=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','Small Business Security Review - DNIS 000-000-0191','L','0000000191','/small-business-security/thank-you?ty=smb0002','None','/wps/wcm/connect/ddd442004610e2949225d27ce7989c6c/heroFormSMBTemplate.css?MOD=AJPERES','superForm18');superForm19=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','Small Business Security Review - DNIS 000-000-0198','L','0000000198','/small-business-security/thank-you?ty=smb0003','None','/wps/wcm/connect/d824ec004610ea4c92a8d27ce7989c6c/heroFormSMBTemplate.css?MOD=AJPERES','superForm19');superForm20=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','Small Business Security Review - DNIS 000-000-0199','L','0000000199','/small-business-security/thank-you?ty=smb0004','None','/wps/wcm/connect/658e2d804610ea9992c1d27ce7989c6c/heroFormSMBTemplate.css?MOD=AJPERES','superForm20');superForm21=new superForm('Get a FREE No-Obligation Home Security Review','','resi','two','top','or call
us at
800-303-8238','true','SUBMIT','english','default','ADT HomeSecurity DNIS: 111-555-8888','L','1115558888','www.adtsecuritysolutions.com/thank-you?ty=home','None','/wps/wcm/connect/85a330804622e3518d44df7ce7989c6c/download.css?MOD=AJPERES','superForm21');superForm22=new superForm('Get a FREE No-Obligation Home Security Review','','resi','two','top','or call
us at
800-303-8238','true','SUBMIT','english','default','ADT HomeSecurity DNIS: 111-555-8888','L','1115558888','www.adtsecuritysolutions.com/thank-you?ty=why-adt','None','/wps/wcm/connect/df34f3804628d5f0b827fa7ce7989c6c/download.css?MOD=AJPERES','superForm22');superForm23=new superForm('Get a FREE No-Obligation Home Security Review','','resi','two','top','or call
us at
800-303-8238','true','SUBMIT','english','default','ADT HomeSecurity DNIS: 111-555-8888','L','1115558888','www.adtsecuritysolutions.com/thank-you?ty=about-adt','None','/wps/wcm/connect/a1a08c804628d629b844fa7ce7989c6c/download.css?MOD=AJPERES','superForm23');superForm24=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0043','L','0000000043','/home-security/thank-you/?ty=resi0009','None','/wps/wcm/connect/1716a080464dcdae981af9005177ca72/download.css?MOD=AJPERES','superForm24');superForm25=new superForm('CALL 800-201-4347 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 101-333-3333','L','1013333333','/home-security/thank-you/?ty=resi0010','None','/wps/wcm/connect/8ba917804654a137bfc4ff63ef63a141/download.css?MOD=AJPERES','superForm25');superForm26=new superForm('CALL 888-298-9302 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0129','L','0000000129','/home-security/thank-you/?ty=resi0011','None','/wps/wcm/connect/e43ddc004654a15abfd8ff63ef63a141/download.css?MOD=AJPERES','superForm26');superForm27=new superForm('CALL 877-678-6952 or We\'ll Contact You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Health - DNIS 000-000-0037','L','0000000037','#','None','/wps/wcm/connect/4d0373804654a1b08022e863ef63a141/style.css?MOD=AJPERES','superForm27');superForm28=new superForm('CALL 877-678-6952 or We\'ll Contact You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Health - DNIS 111-000-1111','L','1110001111','#','None','/wps/wcm/connect/b3e654004654a1d38036e863ef63a141/newcss.css?MOD=AJPERES','superForm28');superForm29=new superForm('CALL 888-281-1758 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0035','L','0000000035','/home-security/thank-you/?ty=resi0012','None','/wps/wcm/connect/890df7004654a1f7804ae863ef63a141/download.css?MOD=AJPERES','superForm29');superForm30=new superForm('CALL 888-281-1758 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Video Surveillance - DNIS 111-666-2222','L','1116662222','#','None','/wps/wcm/connect/51af42804654a217805ee863ef63a141/download.css?MOD=AJPERES','superForm30');superForm31=new superForm('CALL 800-201-4802 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Pulse $250 - DNIS 000-000-0217','L','0000000217','/home-security/thank-you/?ty=resi0015','None','/wps/wcm/connect/816d43004654a2358072e863ef63a141/download.css?MOD=AJPERES','superForm31');superForm32=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0044','L','0000000044','/home-security/thank-you/?ty=resi0013','None','/wps/wcm/connect/ec8c58004676243d884de863ef63a141/download.css?MOD=AJPERES','superForm32');superForm33=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0189','L','0000000189','/home-security/thank-you/?ty=resi0004','None','/wps/wcm/connect/e048b1804654a2618086e863ef63a141/heroFormTemplate.css?MOD=AJPERES','superForm33');superForm34=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0216','L','0000000216','/home-security/thank-you/?ty=resi0016','None','/wps/wcm/connect/b1b1c3004678cd5fba0dfb005177ca72/download.css?MOD=AJPERES','superForm34');superForm35=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Pulse $250 - DNIS 000-000-0218','L','0000000218','/home-security/thank-you/?ty=resi0017','None','/wps/wcm/connect/ffe30f804678d12dba3efb005177ca72/download.css?MOD=AJPERES','superForm35');superForm36=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0219','L','0000000219','/home-security/thank-you/?ty=resi0018','None','/wps/wcm/connect/e3aedd804678d461ba6efb005177ca72/download.css?MOD=AJPERES','superForm36');superForm37=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0220','L','0000000220','/home-security/thank-you/?ty=resi0019','None','/wps/wcm/connect/ce879b004678d596ba8efb005177ca72/download.css?MOD=AJPERES','superForm37');superForm38=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0221','L','0000000221','/home-security/thank-you/?ty=resi0020','None','/wps/wcm/connect/eae90d804678d652baabfb005177ca72/download.css?MOD=AJPERES','superForm38');superForm39=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0195','L','0000000195','/home-security/thank-you/?ty=resi0008','None','/wps/wcm/connect/b0ca0100467b6ad38a6eeb005177ca72/heroFormTemplate.css?MOD=AJPERES','superForm39');superForm40=new superForm('','','resi','three','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0257','L','0000000257','#','None','/wps/wcm/connect/fd2e330046a094068422b6a711c9ea0d/new-css.css?MOD=AJPERES','superForm40');superForm41=new superForm('','','resi','one','top','','true','CALL ME NOW','english','default','Home Security Review - DNIS 000-000-0250','L','0000000250','#','None','/wps/wcm/connect/f0110f8046ac882484ceb6a711c9ea0d/download.css?MOD=AJPERES','superForm41');superForm42=new superForm('','','resi','three','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0253','L','0000000253','/home-security/thank-you/?ty=resi0024','None','/wps/wcm/connect/352e3f8046b99a46879fb7a711c9ea0d/download.css?MOD=AJPERES','superForm42');superForm43=new superForm('','','resi','three','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0251','L','0000000251','/home-security/thank-you/?ty=resi0021','None','/wps/wcm/connect/eb50818046b9bbcd8a49da56db74f7f8/download.css?MOD=AJPERES','superForm43');superForm44=new superForm('','','resi','three','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0252','L','0000000252','/home-security/thank-you/?ty=resi0023','None','/wps/wcm/connect/2a7fef0046b9bd028a6dda56db74f7f8/download.css?MOD=AJPERES','superForm44');superForm45=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS 102-222-2222','L','1022222222','#','None','/wps/wcm/connect/4c5d388046bf7b20be0afe56db74f7f8/download.css?MOD=AJPERES','superForm45');superForm46=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS BV4-444-4444','L','BV44444444','/home-security/thank-you/?ty=resi0027','None','/wps/wcm/connect/df729e8046cb333e8b2ebfa711c9ea0d/heroFormTemplate.css?MOD=AJPERES','superForm46');superForm47=new superForm('','','resi','three','top','','true','SUBMIT','english','default','Home Security Review - DNIS BV4-444-4444','L','BV44444444','/home-security/thank-you/?ty=resi0027','None','/wps/wcm/connect/1513ce8046cb4b1b8b48bfa711c9ea0d/download.css?MOD=AJPERES','superForm47');superForm48=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0038','L','0000000038','/home-security/thank-you/?ty=resi0028','None','/wps/wcm/connect/6a3bf80046d21e659005b6a711c9ea0d/download.css?MOD=AJPERES','superForm48');superForm49=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0270','L','0000000270','/home-security/thank-you/?ty=resi0029','None','/wps/wcm/connect/6e96640046d222f0902bb6a711c9ea0d/download.css?MOD=AJPERES','superForm49');superForm50=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','CALL ME','english','default','Sm Biz Security Review - DNIS 102-777-0000','L','1027770000','/small-business-security/thank-you/?ty=smb0005','None','/wps/wcm/connect/213ac08046d22c279047b6a711c9ea0d/download.css?MOD=AJPERES','superForm50');superForm51=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','CALL ME','english','default','Sm Biz Security Review - DNIS 000-000-0045','L','0000000045','/small-business-security/thank-you/?ty=smb0006','None','/wps/wcm/connect/efda148046d22e21905fb6a711c9ea0d/download.css?MOD=AJPERES','superForm51');superForm52=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','CALL ME','english','default','Sm Biz Security Review - DNIS 000-000-0039','L','0000000039','#','None','/wps/wcm/connect/76de868046d23685907db6a711c9ea0d/download.css?MOD=AJPERES','superForm52');superForm53=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','CALL ME','english','default','Sm Biz Security Review - DNIS 000-000-0024','L','0000000024','/small-business-security/thank-you/?ty=smb0008','None','/wps/wcm/connect/8fbc870046d238939095b6a711c9ea0d/download.css?MOD=AJPERES','superForm53');superForm54=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','CALL ME','english','default','Sm Biz Security Review - DNIS 000-000-0036','L','0000000036','/small-business-security/thank-you/?ty=smb0009','None','/wps/wcm/connect/97d7fd8046d2394b90aab6a711c9ea0d/download.css?MOD=AJPERES','superForm54');superForm55=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','CALL ME','english','default','Sm Biz Security Review - DNIS 000-000-0047','L','0000000047','/small-business-security/thank-you/?ty=smb0010','None','/wps/wcm/connect/5893d48046d23a5190c0b6a711c9ea0d/download.css?MOD=AJPERES','superForm55');superForm56=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0042','L','0000000042','/home-security/thank-you/?ty=resi0030','None','/wps/wcm/connect/7e212c0046d4aa68927bb6a711c9ea0d/download.css?MOD=AJPERES','superForm56');superForm57=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Home Security Review - DNIS 000-000-0271','L','0000000271','/home-security/thank-you/?ty=resi0031','None','/wps/wcm/connect/a6679e0046d4ad7a929bb6a711c9ea0d/download.css?MOD=AJPERES','superForm57');superForm58=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','CALL ME','english','default','Sm Biz Security Review - DNIS 000-000-0046','L','0000000046','/small-business-security/thank-you/?ty=smb0011','None','/wps/wcm/connect/701ee28046fd089381fa9370e27dc029/column-css.css?MOD=AJPERES','superForm58');superForm59=new superForm('','','smb','one','top','','false','CALL ME NOW','english','default','Sm Biz Security Review - DNIS 000-000-0023','L','0000000023','/small-business-security/thank-you?ty=smb0012','None','/wps/wcm/connect/633c2d8046fd0c9d82be9370e27dc029/download.css?MOD=AJPERES','superForm59');superForm60=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0310','L','0000000310','/commercial-security/thank-you/?ty=comm0001','None','/wps/wcm/connect/cd5641804700116b85e09770e27dc029/download.css?MOD=AJPERES','superForm60');superForm61=new superForm('WE WILL CONTACT YOU','Fill out the form below and we will call you in minutes.','gov','one','top','','false','SUBMIT','english','default','Gov - Federal Systems GSA Info','C','GOV-2','/government-security/thank-you/?ty=gov0002','None','/wps/wcm/connect/0b147b0047187b5c9ccbdc6e05a8bba7/maincss.css?MOD=AJPERES','superForm61');superForm62=new superForm('','','gov','one','top','','false','SUBMIT FORM','english','default','Gov - Federal Systems GSA Info','C','GOV-3','/government-security/thank-you/?ty=gov0003','None','/wps/wcm/connect/23a7a680471887949ecdde6e05a8bba7/download.css?MOD=AJPERES','superForm62');superForm63=new superForm('WE WILL CONTACT YOU','Fill out the form below and we will call you in minutes.','gov','one','top','','false','SUBMIT','english','default','Homeland and Government Security - ADT - FIPS_201','C','GOV-5','/government-security/thank-you/?ty=gov0005','None','/wps/wcm/connect/d6a1558047188c159fb2df6e05a8bba7/maincss.css?MOD=AJPERES','superForm63');superForm64=new superForm('','','gov','one','top','','false','SUBMIT FORM','english','default','Gov - Federal Systems GSA Info','C','GOV-4','/government-security/thank-you/?ty=gov0004','None','/wps/wcm/connect/270dbf804721eb9aa64fee6e05a8bba7/download.css?MOD=AJPERES','superForm64');superForm65=new superForm('CALL 888-298-9274 or We\'ll Call You!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','false','CALL ME','english','default','About ADT - DNIS 111-555-1111','L','1115551111','/about-adt/thank-you/?ty=about0001','None','/wps/wcm/connect/257ec880473998949d30ffb309ae829f/download.css?MOD=AJPERES','superForm65');superForm66=new superForm('Home Security Specials','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Security Review - DNIS NYSERDAWEB','L','NYSERDAWEB','/home-security/thank-you?ty=resi0033','None','/wps/wcm/connect/a62530004753234588758a240313da09/newcsss.css?MOD=AJPERES','superForm66');superForm67=new superForm('','','resi','three','top','','true','SUBMIT','english','default','Home Security Review - DNIS NYSERDAWEB','L','NYSERDAWEB','/home-security/thank-you/?ty=resi0033','None','/wps/wcm/connect/19b76e004756449c98f7fe792668e4cb/download.css?MOD=AJPERES','superForm67');superForm68=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','PULSE Small Business - DNIS 000-000-0324','L','0000000324','#','None','/wps/wcm/connect/bb4c7980476acfc6bb24fbd0c1d7a9b3/customcss.css?MOD=AJPERES','superForm68');superForm69=new superForm('WE WILL CONTACT YOU','Fill out the form below and we will call you in minutes.','gov','one','top','','false','SUBMIT','english','default','Government Free Security Review','C','GOV-11','#','None','/wps/wcm/connect/4094aa004790310db97dbf91814578ca/maincss.css?MOD=AJPERES','superForm69');superForm70=new superForm('WE WILL CONTACT YOU','Fill out the form below and we will call you in minutes.','gov','one','top','','false','SUBMIT','english','default','Government Free Security Review','C','GOV-12','/government-security/thank-you/?ty=gov0007','None','/wps/wcm/connect/0d69580047903438ba24bf91814578ca/maincss.css?MOD=AJPERES','superForm70');superForm71=new superForm('WE WILL CONTACT YOU','Fill out the form below and we will call you in minutes.','gov','one','top','','false','SUBMIT','english','default','Government Free Security Review','C','GOV-13','/government-security/thank-you/?ty=gov0008','None','/wps/wcm/connect/9b1b8380479035afba88bf91814578ca/maincss.css?MOD=AJPERES','superForm71');superForm72=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0300','L','0000000300','/commercial-security/thank-you/?ty=comm0002','None','/wps/wcm/connect/6cce5d8047bb4868a115a5067ffc39a9/download.css?MOD=AJPERES','superForm72');superForm73=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','healthcare_security','Comm Security Review - DNIS 000-000-0124','L','0000000124','#','None','/wps/wcm/connect/e6826e8047bb552ba376a7067ffc39a9/download.css?MOD=AJPERES','superForm73');superForm74=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0051','L','0000000051','/commercial-security/thank-you/?ty=comm0004','None','/wps/wcm/connect/54d7460047bb567ea3d5a7067ffc39a9/download.css?MOD=AJPERES','superForm74');superForm75=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0065','L','0000000065','/commercial-security/thank-you/?ty=comm0005','None','/wps/wcm/connect/379a988047bb57a0a433a5067ffc39a9/download.css?MOD=AJPERES','superForm75');superForm76=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0052','L','0000000052','/commercial-security/thank-you/?ty=comm0006','None','/wps/wcm/connect/1e30610047bb59d9a4a1a5067ffc39a9/download.css?MOD=AJPERES','superForm76');superForm77=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0066','L','0000000066','/commercial-security/thank-you/?ty=comm0007','None','/wps/wcm/connect/0fb2970047bb5bdda501a5067ffc39a9/download.css?MOD=AJPERES','superForm77');superForm78=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0900','L','0000000900','/commercial-security/thank-you/?ty=comm0008','None','/wps/wcm/connect/9fd1fa0047bb5c38a515a5067ffc39a9/download.css?MOD=AJPERES','superForm78');superForm79=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0800','L','0000000800','/commercial-security/thank-you/?ty=comm0009','None','/wps/wcm/connect/932bc10047bb5c8da529a5067ffc39a9/download.css?MOD=AJPERES','superForm79');superForm80=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0072','L','0000000072','/commercial-security/thank-you/?ty=comm0010','None','/wps/wcm/connect/0a02a18047bb5d02a583a5067ffc39a9/download.css?MOD=AJPERES','superForm80');superForm81=new superForm('WE\'LL CONTACT YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','two','top','','true','CALL ME','english','default','Home Health - DNIS 000-000-0037','L','0000000037','#','None','/wps/wcm/connect/6320228047d04a9ea9c1ed1926f1b2d7/cssform.css?MOD=AJPERES','superForm81');superForm82=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','Banking Lead','Comm Security Review - DNIS 000-000-0058','L','0000000058','','None','/wps/wcm/connect/9f26b800484e738a981cb92a36f6c522/download.css?MOD=AJPERES','superForm82');superForm83=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','PULSE Small Business - DNIS 000-000-0324','L','0000000324','#','None','/wps/wcm/connect/8446978048706ada98c1fb71649926e8/customcss.css?MOD=AJPERES','superForm83');superForm84=new superForm('WE\'LL CONTACT YOU!','Fill out the form below and an ADT representative will call you in minutes.','resi','one','top','','true','CALL ME','english','default','Customer Service - DNIS 000-000-0371','L','0000000371','/home-security/thank-you/?ty=compan0001','None','/wps/wcm/connect/d6dc1d8048a727ebb3e6f33a0a67964d/customer-service.css?MOD=AJPERES','superForm84');superForm85=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 111-777-6666','L','1117776666','#','None','/wps/wcm/connect/c158850048fac9e39b82bfa2d11a62d5/download.css?MOD=AJPERES','superForm85');superForm86=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','comm','one','top','','false','CALL ME','english','default','Comm Security Review - DNIS 000-000-0079','L','0000000079','#','None','/wps/wcm/connect/6c058d8048faca4e9b97bfa2d11a62d5/download.css?MOD=AJPERES','superForm86');superForm87=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','one','top','','false','','english','default','SmBiz Mini Hero Microsite Intrusion Offer DNIS: 000-000-0011','L','0000000011','#','None','/wps/wcm/connect/6eca3f0049d42566809dd5133e2fd17b/smb-form.css?MOD=AJPERES','superForm87');superForm88=new superForm('WE\'LL CALL YOU!','Fill out the form below and an ADT representative will call you in minutes.','smb','two','top','','false','CALL ME','english','default','PULSE Small Business - DNIS 000-000-0324','L','0000000324','#','Smb Two Column Hero','/wps/wcm/connect/d4dec50049da5b7e9348d7133e2fd17b/newcss.css?MOD=AJPERES','superForm88'); function setSuperForm(x,y) { target = x; settitle=y.title; setdescription=y.description; settype=y.type; setcolumns=y.columns; setlabel=y.label; setdisclaimer=y.disclaimer; setccdisplay=y.ccdisplay; setbutton=y.button; setlanguage=y.language; setformname=y.formname; setformsubject=y.formsubject; setformtype=y.formtype; setformdnis=y.formdnis; setformtyurl=y.formtyurl; settmplstylesheet=y.tmplstylesheet; setstylesheet=y.stylesheet; $(target).adtForm({ title: settitle, description: setdescription, type: settype, columns: setcolumns, label: setlabel, disclaimer: setdisclaimer, ccDisplay: setccdisplay, ccHref: "/customer-service", button: setbutton, language: setlanguage, error: "msg", data: { name: setformname, subject: setformsubject, type: setformtype, dnis: setformdnis, url: setformtyurl }, tmplstylesheet: settmplstylesheet, stylesheet: setstylesheet }); masterValidationScript('#leadForm', activeLanguage); fireOmniture(); superFormSet=true; } (function($){ var defaults = { title: "", //top header for the form description: "", //description under the header of the form type: "", //resi smb comm gov columns: "", //one two three label: "", //top left none disclaimer: "", //legal disclaimer for form footer ccDisplay: "", //show or hide current customer link ccHref: "", //href for current customer link button: "", //value for submit button language: "", //english french spanish error: "msg", //msg data: { name: "", //form routing subject: "", //email subject line type: "", //lead or contact form dnis: "", //promotion code url: "" //thank you url }, tmplstylesheet: "", //template form stylesheet stylesheet: "" //form stylesheet },options,self; $.fn.adtForm = function(o) { self = target; options = $.extend({},defaults,o); $(self).html('').addClass('superForm'); if (options.tmplstylesheet == "None") { $(self).append(''); } else if (options.tmplstylesheet == "Long Form") { var cssURL = ''; $(self).append(''); } else if (options.tmplstylesheet == "Resi Two Column Hero") { var cssURL = '/wps/wcm/connect/abad6f8049b2dc8c80968c0c3e220b4e/resi-two-column-hero.css?MOD=AJPERES'; $(self).append(''); } else if (options.tmplstylesheet == "Smb Two Column Hero") { var cssURL = '/wps/wcm/connect/abad6f8049b2dc8c80978c0c3e220b4e/smb-two-column-hero.css?MOD=AJPERES'; $(self).append(''); } buildForm(); }; var buildForm = function() { var formCode; var sentPage = s.pageName; //SET GLOBAL VARIABLES if (options.type == "smb") {activeDivision = "Smbiz";} else if (options.type == "gov") {activeDivision = "Comm";govForm=1;} else {activeDivision = options.type.charAt(0).toUpperCase() + options.type.slice(1);} if (!/^\d{10}$/.test(options.data.dnis)) {activeDnis = options.data.dnis;} else {activeDnis = formatField(options.data.dnis);} activeLanguage = options.language; activeDataType = options.data.type; activeType = options.type; //RENDER SUPER Form formCode = '
'; formCode += ' '; formCode += ' '; formCode += ' '; formCode += ' '; formCode += ' '; if (superFormDefault!=true) { formCode += ' '; } else { formCode += ' '; } formCode += ' '; if (options.title != "") {formCode += '
'+options.title+'
';} if (options.description != "") {formCode += '

'+options.description+'

';} formCode += '

All fields required.

'; if (options.type == "smb" || options.type == "comm" || options.type == "gov") { if (options.columns != "three") { formCode += '
'; formCode += labelFor("Business_Name"); formCode += ' '; formCode += '
'; } } formCode += '
'; if (options.columns == "two") { formCode += '
'; } else if (options.columns == "three") { formCode += '
'; } formCode += labelFor("Customer_First_Name"); formCode += ' '; formCode += '
'; if (options.columns == "two") { formCode += '
'; } else if (options.columns == "three") { formCode += '
'; } else { formCode += '
'; } formCode += labelFor("Customer_Last_Name"); formCode += ' '; formCode += '
'; if (options.columns == "two") { formCode += '
'; } if (options.columns != "three") { formCode += '
'; } else { formCode += '
'; } if (options.columns == "two") { formCode += '
'; } formCode += labelFor("State_Code"); formCode += ' '; formCode += '
'; if (options.columns == "three") { formCode += '
'; } if (options.columns == "two") { formCode += '
'; } else { formCode += '
'; } if (options.columns == "three") { formCode += '
'; } formCode += labelFor("Postal_Code"); formCode += ' '; formCode += '
'; if (options.columns == "two") { formCode += '
'; } if (options.columns != "three") { formCode += '
'; } if (options.columns == "two" || options.columns == "three") { formCode += '
'; } formCode += labelFor("Phone_Number_Primary"); formCode += ' '; formCode += '
'; if (options.columns == "two" || options.columns == "three") { formCode += '
'; } else { formCode += '
'; } formCode += labelFor("E_Mail_Address"); formCode += ' '; formCode += '
'; if (options.columns == "two" || options.columns == "three") { formCode += '
'; } formCode += '
'; if (options.ccDisplay=="false") {formCode += '

ADT Customer
Click Here

';} else if (options.ccDisplay=="true") {formCode += '

I am an
ADT Customer

';} formCode += '
'; formCode += ' '; formCode += ' '; formCode += ' '; formCode += ' '; if (options.disclaimer != "") { formCode += '

'+options.disclaimer+'

'; } //OUTPUT SUPER FORM HTML $(self).append(formCode); //APPEND FINAL CSS var colcss = "";var lblcss = ""; if (options.columns == "one") {colcss="col-one";} else if (options.columns == "two") {colcss="col-two";} else {colcss="col-three";} if (options.label == "left") {lblcss="lbl-left";} else if (options.label == "top") {lblcss="lbl-top";} else {lblcss="lbl-none";} $('.superForm .row, .superForm label, .superForm input[type!="hidden"][type!="submit"], .superForm select').addClass(colcss + ' ' + lblcss); //FORM IS READY ENABLE IT $(function() {$('.superForm input.submitButton').removeAttr('disabled');}); } function labelFor(fieldName) { if (options.language == "french") { switch(fieldName) { case('Customer_First_Name'): return ""; break; case('Customer_Last_Name'): return ""; break; case('Business_Name'): return ""; break; case('Street'): return ""; break; case('City'): return ""; break; case('State_Code'): return ""; break; case('Postal_Code'): return ""; break; case('Phone_Number_Primary'): return ""; break; case('E_Mail_Address'): return ""; break; case('Comments'): return ""; break; } } else if (options.language == "spanish") { switch(fieldName) { case('Customer_First_Name'): return ""; break; case('Customer_Last_Name'): return ""; break; case('Business_Name'): return ""; break; case('Street'): return ""; break; case('City'): return ""; break; case('State_Code'): return ""; break; case('Postal_Code'): return ""; break; case('Phone_Number_Primary'): return ""; break; case('E_Mail_Address'): return ""; break; case('Comments'): return ""; break; } } else { switch(fieldName) { case('Customer_First_Name'): return ""; break; case('Customer_Last_Name'): return ""; break; case('Business_Name'): return ""; break; case('Street'): return ""; break; case('City'): return ""; break; case('State_Code'): return ""; break; case('Postal_Code'): return ""; break; case('Phone_Number_Primary'): return ""; break; case('E_Mail_Address'): return ""; break; case('Comments'): return ""; break; } } } })(jQuery);