Subscribe to mytreo.net Newsletters
Use this form to subscribe to our newsletters.
// check multi checkboxes based on the name passed in. function CheckMultiple(name) { theFrm = document.frmSS; for (var i=0; i < theFrm.length; i++) { fldObj = theFrm.elements[i]; var fieldnamecheck=fldObj.name.indexOf(name); if (fieldnamecheck != -1) { if (fldObj.checked) { return true; } } } return false; }
function CheckSS() { theFrm = document.frmSS;
hasDot = theFrm.Email.value.indexOf("."); hasAt = theFrm.Email.value.indexOf("@");
if (hasDot == -1 || hasAt == -1) { alert("Please enter a valid email address."); theFrm.Email.focus(); theFrm.Email.select(); return false; }
valcheck = document.getElementById("Fields[2]"); if(valcheck.selectedIndex == -1) { alert("Please enter a value for the 'Current Treo model' field."); valcheck.focus(); valcheck.select(); return false; }
return true; }
Filed under: Site news







