Newsletter Signup

<p>Want to stay up to date with the latest news from T-Rex Truck Products?</p> <!--<p>You can also choose to <a href="/newsletter.html?view=Unsubscribe&email=Email%20Address" title="unsubscribe">unsubscribe here</a></p>--> <!-- <SCRIPT language="Javascript"> //ENTER ALL THE REQURED FIELDS NAMES HERE var rfnames=new Array("CI_email","CI_firstname","CI_lastname"); var rfdesc=new Array("Email Address","First Name","Last Name"); var val_email_names=new Array("CI_email"); var val_email_desc=new Array("Email Address"); var val_phone_names=new Array(); var val_phone_desc=new Array(); var val_zipcode_names=new Array(); var val_zipcode_desc=new Array(); var val_numeric_names=new Array(); var val_numeric_desc=new Array(); // isEmail (STRING s [, BOOLEAN emptyOK]) // whitespace characters var whitespace_CI = " \t\n\r"; // // Email address must be of form a@b.c ... in other words: // * there must be at least one character before the @ // * there must be at least one character before and after the . // * the characters @ and . are both required function isValidEmail_CI(s) { if (isEmpty_CI(s)) return false; // is s whitespace? if (isWhitespace_CI(s)) return false; // there must be >= 1 character before @, so we // start looking at character position 1 // (i.e. second character) var i = 1; var sLength = s.length; // look for @ while ((i < sLength) && (s.charAt(i) != "@")) { i++ } if ((i >= sLength) || (s.charAt(i) != "@")) return false; else i += 2; // look for . while ((i < sLength) && (s.charAt(i) != ".")) { i++ } // there must be at least one character after the . if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false; else return true; } function isValidPhone_CI(s) { if (isEmpty_CI(s)) return false; // is s whitespace? if (isWhitespace_CI(s)) return false; // there must be at least one character after the . var regexObj = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/; if (regexObj.test(s)) { return true; //var formattedPhoneNumber = subjectString.replace(regexObj, "($1) $2-$3"); } else { return false; } } function isValidZipCode_CI(s) { if (isEmpty_CI(s)) return false; // is s whitespace? if (isWhitespace_CI(s)) return false; // there must be at least one character after the . var regexObj = /(^\d{5}$)|(^\d{5}-\d{4}$)/; if (regexObj.test(s)) { return true; //var formattedPhoneNumber = subjectString.replace(regexObj, "($1) $2-$3"); } else { return false; } } function isNumeric_CI(s) { if (isEmpty_CI(s)) return false; // is s whitespace? if (isWhitespace_CI(s)) return false; return !isNaN(parseFloat(s)) && isFinite(s); } // Check whether string s is empty. function isEmpty_CI(s) { return ((s == null) || (s.length == 0)) } // Returns true if string s is empty or // whitespace characters only. function isWhitespace_CI(s) { var i; // Is s empty? if (isEmpty_CI(s)) return true; // Search through string characters one by one // until we find a non-whitespace character. // When we do, return false; if we dont, return true. for (i = 0; i < s.length; i++) { // Check that current character isnt whitespace. var c = s.charAt(i); if (whitespace_CI.indexOf(c) == -1) return false; } // All characters are whitespace. return true; } function checkForm_CI() { var message = ""; //if (!isValidEmail_CI(document.CI_subscribeForm.elements[''EmailAddress''].value)) { // document.CI_subscribeForm.elements[''EmailAddress''].style.backgroundColor="yellow"; // //alert("Please enter a valid Email Address. (yourname@domain.com)"); // message = "Please enter a valid Email Address. (yourname@domain.com)\n\r" ; // document.CI_subscribeForm.elements[''EmailAddress''].focus(); // // } for(var i=0; i<rfnames.length; i++) { if (document.CI_subscribeForm.elements[rfnames[i]].value == "") { document.CI_subscribeForm.elements[rfnames[i]].style.backgroundColor="yellow"; message = message + rfdesc[i] + " is required \n\r"; } } for(var i=0; i<val_email_names.length; i++) { if (document.CI_subscribeForm.elements[val_email_names[i]].value != "" && !isValidEmail_CI(document.CI_subscribeForm.elements[val_email_names[i]].value)) { document.CI_subscribeForm.elements[val_email_names[i]].style.backgroundColor="yellow"; //alert("Please enter a valid Email Address. (yourname@domain.com)"); message = message + val_email_desc[i] + " must be a valid email address. (yourname@domain.com)\n\r" ; //document.CI_subscribeForm.elements[val_email_names[i]].focus(); } } for(var i=0; i<val_phone_names.length; i++) { if (document.CI_subscribeForm.elements[val_phone_names[i]].value != "" && !isValidPhone_CI(document.CI_subscribeForm.elements[val_phone_names[i]].value)) { document.CI_subscribeForm.elements[val_phone_names[i]].style.backgroundColor="yellow"; //alert("Please enter a valid Email Address. (yourname@domain.com)"); message = message + val_phone_desc[i] + " must be a valid phone number \n\r"; } } for(var i=0; i<val_zipcode_names.length; i++) { if (document.CI_subscribeForm.elements[val_zipcode_names[i]].value != "" && !isValidZipCode_CI(document.CI_subscribeForm.elements[val_zipcode_names[i]].value)) { document.CI_subscribeForm.elements[val_zipcode_names[i]].style.backgroundColor="yellow"; //alert("Please enter a valid Email Address. (yourname@domain.com)"); message = message + val_zipcode_desc[i] + " must be a valid zipcode \n\r"; } } for(var i=0; i<val_numeric_names.length; i++) { if (document.CI_subscribeForm.elements[val_numeric_names[i]].value != "" && !isNumeric_CI(document.CI_subscribeForm.elements[val_numeric_names[i]].value)) { document.CI_subscribeForm.elements[val_numeric_names[i]].style.backgroundColor="yellow"; //alert("Please enter a valid Email Address. (yourname@domain.com)"); message = message + val_numeric_desc[i] + " must be numeric \n\r"; } } /* check submit code: show only if the checkbox is added*/ /*end check submit code */ if (message.length > 1) { alert(message); return false; } else { document.CI_subscribeForm.submit(); } } //Submit confirmation code: show only if defined /* Find user language*/ var userLang = (navigator.language) ? navigator.language : navigator.userLanguage; userLang = userLang.substr(0,2); userLang = userLang.toUpperCase(); /* Set the submit confirmation text to the appropriate language */ function checkLanguageSetting(){ var confirmation_text_language = ""; var default_confirmation_text = "I agree that the above information is correct"; var submitConfirmHTML = form_label_language = list_label_language =''; var default_btn_text = "Subscribe!"; console.log(userLang); /* Check for designated languages */ if(userLang == 'FR'){ confirmation_text_language = ""; form_label_language = "Vous pouvez vous abonner à notre liste d\'envoi en remplissant le formulaire ci-dessous et cliquez sur \"Abonnez-vous\" bouton."; list_label_language = "S\'il vous plaît sélectionner vos listes d\'intérêt"; btn_text_language = "Abonnez-vous"; } else if(userLang == 'DU'){ confirmation_text_language = ""; form_label_language = "Sie können auf unsere Mailingliste, indem Sie das folgende Formular aus und klicken Sie auf die Schaltfläche \"Abonnieren\" abonnieren."; list_label_language = "Bitte wahlen Sie Ihre Listen von Interesse"; btn_text_language = "Abonnieren"; } else if(userLang == 'ES'){ confirmation_text_language = ""; form_label_language = "Usted puede suscribirse a nuestra lista de correo rellenando el siguiente formulario y haga clic en el botón \"Suscribirse\"."; list_label_language = "Por favor, seleccione las listas de interés"; btn_text_language = "Suscribirse"; } else if(userLang == 'IT'){ confirmation_text_language = ""; form_label_language = "È possibile iscriversi alla nostra mailing list compilando il modulo qui sotto e cliccando sul tasto \"Iscriviti\"."; list_label_language = "Si prega di selezionare le vostre liste di interesse"; btn_text_language = "Iscriviti"; } else { /* English */ confirmation_text_language = ""; form_label_language = "You can subscribe to our mailing list by filling out the form below and clicking on the \"Subscribe!\" button."; list_label_language = "Please select your lists of interest"; btn_text_language = "Subscribe!"; } /*Use the browser's inbuilt HTML escape functionality to handle many of the characters*/ var l_html_div = document.createElement("div"); l_html_div.innerText = l_html_div.textContent = confirmation_text_language; confirmation_text_language = l_html_div.innerHTML; /* Change the form description/label to the correct language */ formLabelHTML = form_label_language; document.getElementById('form_label_display').innerHTML = formLabelHTML; /* Change the button text to the correct language */ if (btn_text_language == ''){ btn_text_language = default_btn_text; } document.getElementById('CI_submit').value = btn_text_language; /* Change the checkbox submit confirmation text to the correct language */ submitConfirmHTML = '<input onClick="agreesubmit_CI(this)" type="checkbox" name="submit_confirmation" id="submit_confirmation" value="submit_confirmation">&nbsp;'+confirmation_text_language+''; }/*End checkLanguageSetting() */ /* After the text areas are loaded, check browser language and change the submit confirmation text */ window.onload=function() { checkLanguageSetting(); } </SCRIPT> <form action="http://portal.emailnetworks.com/wc/wc.cfm" name="CI_subscribeForm" id="CI_subscribeForm" method="post"> <table width="500" border="0" align="center" cellpadding="3" cellspacing="0" style="border: 1px solid #333333; background-color: #FFFFFF; padding: 8px;"> <tr><td><img border="0" src="http://portal.emailnetworks.com/user/25056/files/emailnetworks_ci_logo.jpg" /></td></tr> <tr> <td> <input type="hidden" name="CI_thankyou" value="http://portal.emailnetworks.com/wc/thankyou.cfm"> <input type="hidden" name="CI_thankyou2" value="http://portal.emailnetworks.com/wc/thankyou2.cfm"> <input type="hidden" name="CI_err" value="http://portal.emailnetworks.com/wc/error.cfm"> <input type="hidden" name="CI_Action" value="sub"> <input type="hidden" name="CI_LID" value="2626948273"> <input type="hidden" name="CI_MID" value="146230379"> <input type="hidden" name="CI_FID2" value="1000JPD00000000019B"> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" style="padding: 8px;"> <tr> <td align="center" id="form_label_display" style="padding: 3px; font-family:Arial, Helvetica, sans-serif;">You can subscribe to our mailing list by filling out the form below and clicking on the &quot;Subscribe!&quot; button.</td> </tr> <tr> <td align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="35%" align="right" style="padding: 3px;"> <font color="#333333" face="Arial, Helvetica, sans-serif"> <strong><font color="#990000" >*</font></strong>Email Address: </font> </td> <td width="65%" style="padding: 3px;"> <div align="left"><font face="Arial, Helvetica, sans-serif"> <input type="text" size="30" name="CI_email" maxlength="150"> </font></div> </td> </tr> <tr> <td width="35%" align="right" style="padding: 3px;"> <font color="#333333" face="Arial, Helvetica, sans-serif"> <strong><font color="#990000" >*</font></strong>First Name: </font> </td> <td width="65%" style="padding: 3px;"> <div align="left"><font face="Arial, Helvetica, sans-serif"> <input type="text" size="30" name="CI_firstname" maxlength="64"> </font></div> </td> </tr> <tr> <td width="35%" align="right" style="padding: 3px;"> <font color="#333333" face="Arial, Helvetica, sans-serif"> <strong><font color="#990000" >*</font></strong>Last Name: </font> </td> <td width="65%" style="padding: 3px;"> <div align="left"><font face="Arial, Helvetica, sans-serif"> <input type="text" size="30" name="CI_lastname" maxlength="64"> </font></div> </td> </tr> <tr><td colspan="2" style="padding: 3px 3px 6px 3px;"> <p align="center"> <font face="Arial, Helvetica, sans-serif"> <input id="CI_submit" name="CI_submit" type="button" value="Subscribe!" onClick="checkForm_CI();" > </font></p></td><tr> </table> </td> </tr> </table> </td></tr> </table> </form> <SCRIPT language="Javascript"> function my_getParamVal(param) { var query = location.search; var regexp = new RegExp("[\\?&]" + param + "\=([^\&#]*)", "i"); var val = query.match(regexp) || ""; return val[1] || ""; } if (document.forms.CI_subscribeForm !== undefined && document.forms.CI_subscribeForm.CI_email !== undefined ) { var t_email = my_getParamVal('myemail'); if (t_email !== undefined && typeof t_email === 'string' && t_email.length > 5) { document.forms.CI_subscribeForm.CI_email.value = t_email; } } </SCRIPT>-->