function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function MM_findObj(n, d) { //v3.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i 0) { var pindex = theStr.indexOf(".",index); if ((pindex > index+1) && (theStr.length > pindex+1)) result = true; } return result; } function validRequired(formField,fieldLabel) { var result = true; if (formField.value == "") { formField.focus(); result = false; } return result; } function allDigits(str) { return inValidCharSet(str,"0123456789"); } function inValidCharSet(str,charset) { var result = true; // Note: doesn't use regular expressions to avoid early Mac browser bugs for (var i=0;i 0) && (month < 13) && allDigits(elems[1]) && (day > 0) && (day < 32) && allDigits(elems[2]) && ((elems[2].length == 2) || (elems[2].length == 4)); } if (!result) { formField.focus(); } } return result; } function testvalidateForm(theForm) { // Customize these calls for your form // Start -------> if (!validRequired(theForm.fullname,"Name")) return false; if (!validEmail(theForm.email,"Email Address",true)) return false; if (!validDate(theForm.available,"Date Available",true)) return false; if (!validNum(theForm.yearsexperience,"Years Experience",true)) return false; // <--------- End return true; } function TrackCount(fieldObj,maxChars) { //var countField = eval("fieldObj.form."+countFieldName); var diff = maxChars - fieldObj.value.length; // Need to check & enforce limit here also in case user pastes data if (diff < 0) { fieldObj.value = fieldObj.value.substring(0,maxChars); diff = maxChars - fieldObj.value.length; } //countField.value = diff; window.status = diff; } function LimitText(fieldObj,maxChars) { var result = true; if (fieldObj.value.length >= maxChars) result = false; if (window.event) window.event.returnValue = result; return result; }