function myOpenWindow(sHref,sHeight,sWidth){window.open(sHref,"mywindow","location=1,status=1,scrollbars=1,width="+sWidth+",height="+sHeight);}
function doFramesBuster()
{}
function MM_jumpMenu(selObj,restore,strUrl){window.open(strUrl+selObj.options[selObj.selectedIndex].value);if(restore)selObj.selectedIndex=0;}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){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&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
function loadFrames(strParam){var urlString="http://www.ocgov.com/cob";if(strParam=="ethics"){urlString="http://www.ocgov.com/cob/"+URLform.pagename.value+"_1234.asp";}else if(strParam=="appeals"){urlString="http://www.ocgov.com/cob/Appeals/"+URLform.pagename.value+"_1.asp";}
window.location=urlString;}
function setHLight(nBullet){var bullets=document.getElementsByTagName("li");var li=document.getElementById("featured"+nBullet);var spans=document.getElementsByTagName("span");var span=document.getElementById("featured"+nBullet+"ct");for(var i=0;i<bullets.length;i++){if(bullets[i].className.match("on")){bullets[i].className="";}}
li.className="on";for(var i=0;i<spans.length;i++){if((spans[i].id.match(RegExp("^featured")))&&(spans[i].className.match("current"))){spans[i].className="";}}
span.className="current";}
function trimFormValue(s)
{return s.replace(/^\s+|\s+$/g,'');}
function validateScriptTag(form){var len=form.length;for(var i=0;i<len;i++){var strValue=trimFormValue(form.elements[i].value);if(strValue.indexOf("<")!=-1){alert("HTML tags are not allowed in fields!");return false;}}
return true;}
function validateSheriffForm(form)
{if(!validateScriptTag(form))return false;if(trimFormValue(form.FORMAIL_Name.value)=="")
{alert("Please enter a Name!");return false;}
if(trimFormValue(form.FORMAIL_Residence.value)=="")
{alert("Please enter a City of Residence!");return false;}
var trimEmail=trimFormValue(form.FORMAIL_Email.value);var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;if(trimEmail!=null&&trimEmail!="")
{if(!(trimEmail.match(emailExp)))
{alert("Please enter a valid email!");return false;}}
var trimPhoneNum=trimFormValue(form.FORMAIL_PhoneNumber.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum!=null&&trimPhoneNum!="")
{if(!(trimPhoneNum.match(phoneExp)))
{alert("Please enter a valid phone number with area code!");return false;}}
if(trimFormValue(form.FORMAIL_InterviewQuestions.value)==null||trimFormValue(form.FORMAIL_InterviewQuestions.value)=="")
{alert("Please enter Interview Questions!");return false;}
if(trimFormValue(form.FORMAIL_EvaluationCriteria.value)==null||trimFormValue(form.FORMAIL_EvaluationCriteria.value)=="")
{alert("Please enter Evaluation Criteria!");return false;}
return true;}
function validateContactForm(form)
{if(!validateScriptTag(form))return false;if(trimFormValue(form.FORMAIL_01_Subject.value)=="")
{alert("Please enter a Subject!");return false;}
var trimEmail=trimFormValue(form.FORMAIL_02_Email.value);var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;if(!(trimEmail.match(emailExp)))
{alert("Please enter a valid email!");return false;}
var trimPhoneNum=trimFormValue(form.FORMAIL_03_PhoneNumber.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alert("Please enter a valid phone number with area code!");return false;}
if(trimFormValue(form.FORMAIL_04_Comment.value)==null||trimFormValue(form.FORMAIL_04_Comment.value)=="")
{alert("Please enter a Comment!");return false;}
return true;}
function validateContactCountyForm(form)
{if(!validateScriptTag(form))return false;if(trimFormValue(form.FORMAIL_01_Subject.value)=="")
{alert("Please enter a Subject!");return false;}
var trimEmail=trimFormValue(form.FORMAIL_02_Email.value);var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;if(!(trimEmail.match(emailExp)))
{alert("Please enter a valid email!");return false;}
return true;}
function validateCobForm(form)
{if(!validateScriptTag(form))return false;if(trimFormValue(form.cobform.value)=="")
{alert("Please enter the Code!");return false;}
if(trimFormValue(form.cobform.value)!="ethics"&&trimFormValue(form.cobform.value)!="AABCal"){alert("Invalid Code!");return false;}
return true;}
function validatePasswordForm(form)
{if(!validateScriptTag(form))return false;if(trimFormValue(form.passwordform.value)=="")
{alert("Please enter the code!");return false;}
if(trimFormValue(form.passwordform.value)!="beprepared"){alert("Invalid Code!");return false;}
return true;}
function validateBOS2MailListForm(form)
{if(!validateScriptTag(form))return false;var invalidValueFound="";var trimEmail=trimFormValue(form.FORMAIL_01_email.value);var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;if(!(trimEmail.match(emailExp)))
{invalidValueFound+="Please enter a valid email address!\r\n";}
if(trimFormValue(form.FORMAIL_02_firstname.value)=="")
{invalidValueFound+="Please enter your first name!\r\n";}
if(trimFormValue(form.FORMAIL_03_lastname.value)=="")
{invalidValueFound+="Please enter your last name!\r\n";}
if(invalidValueFound!=null&&invalidValueFound!="")
{alert(invalidValueFound);return false;}
return true;}
function validateBOS3SchMeetingForm(form)
{if(!validateScriptTag(form))return false;var invalidValueFound="";var trimPhoneNum=trimFormValue(form.FORMAIL_04_phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{invalidValueFound+="Please enter a valid phone number including area code!";}
if(invalidValueFound!=null&&invalidValueFound!="")
{alert(invalidValueFound);return false;}
return true;}
function validateBOS5SchAppointmentForm(form)
{if(!validateScriptTag(form))return false;var invalidValueFound="";var trimPhoneNum=trimFormValue(form.FORMAIL_06_phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{invalidValueFound+="Please enter a valid phone number including area code!";}
if(invalidValueFound!=null&&invalidValueFound!="")
{alert(invalidValueFound);return false;}
return true;}<!--Begin
function textCounter(field,countfield,maxlimit){if(field.value.length>maxlimit)
field.value=field.value.substring(0,maxlimit);else
countfield.value=maxlimit-field.value.length;}
function textareaChars(objTextarea,maxLimit,objCountField){if(objTextarea.value.length>maxLimit)
objTextarea.value=objTextarea.value.substring(0,maxLimit);if(arguments.length==3)
objCountField.value=(maxLimit-objTextarea.value.length);}
function textareaCharsValidate(objFormtext,maxLimits){if(objFormtext.value.length>maxLimits)
showError=true;objFormtext.value=objFormtext.value.substring(0,maxLimits);}
var isNN=(navigator.appName.indexOf("Netscape")!=-1);function autoTab(input,len,e)
{var keyCode=(isNN)?e.which:e.keyCode;var filter=(isNN)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];if(input.value.length>=len&&!containsElement(filter,keyCode))
{input.value=input.value.slice(0,len);input.form[(getIndex(input)+1)%input.form.length].focus();}
function containsElement(arr,ele)
{var found=false,index=0;while(!found&&index<arr.length)
if(arr[index]==ele)
found=true;else
index++;return found;}
function getIndex(input)
{var index=-1,i=0,found=false;while(i<input.form.length&&index==-1)
if(input.form[i]==input)index=i;else i++;return index;}
return true;}
function emailvalidation(entered)
{with(entered)
{var apos=value.indexOf("@");var dotpos=value.lastIndexOf(".");var lastpos=value.length-1;if(apos<1||dotpos-apos<2||lastpos-dotpos>3||lastpos-dotpos<2)
{return true}}}
Opass=true;function validateInternshipInterestform()
{alertMessage="YOU HAVE FORGOTTEN TO: \n";showAlert=false;if(document.mainform.FORMAIL_01_firstname.value==""){alertMessage+="- Enter your First Name #1\n";showAlert=true;document.mainform.FORMAIL_01_firstname.focus();}
if(document.mainform.FORMAIL_03_lastname.value==""){alertMessage+="- Enter your Last Name #3\n";showAlert=true;document.mainform.FORMAIL_03_lastname.focus();}
if(document.mainform.FORMAIL_04_city.value==""){alertMessage+="- Enter your City #4\n";showAlert=true;document.mainform.FORMAIL_04_city.focus();}
if(document.mainform.FORMAIL_05_state.value==""){alertMessage+="- Select a State #5\n";showAlert=true;document.mainform.FORMAIL_05_state.focus();}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(document.mainform.FORMAIL_06_email.value);if(!(trimEmail.match(emailExp))){alertMessage+="- Enter a valid E-mail #6\n";showAlert=true;document.mainform.FORMAIL_06_email.focus();}
var count=0;var ckbox;var foiName;for(var i=1;i<=36;i++){foiName='FORMAIL_'+(i+9)+'_fields_of_interest[]'+i;ckbox=document.mainform.elements[foiName];if(ckbox!=null){if(ckbox.checked==true){count++}}}
if(count>4){alertMessage+="- You can only choose up to 4 fields-of-interest #8\n";showAlert=true;}
var pass=false;for(var i=1;i<=36;i++){foiName='FORMAIL_'+(i+9)+'_fields_of_interest[]'+i;ckbox=document.mainform.elements[foiName];if(ckbox!=null&&ckbox.checked){pass=true;break;}}
if(!pass){alertMessage+="- Check at least one Fields Of Interest box #8\n";showAlert=true;}
if(document.mainform.FORMAIL_48_academic_level.value==""){alertMessage+="- Select an Academic Level #11\n";showAlert=true;document.mainform.FORMAIL_48_academic_level.focus();}
if(document.mainform.FORMAIL_49_degree.value==""){alertMessage+="- Enter your Degree #12\n";showAlert=true;document.mainform.FORMAIL_49_degree.focus();}
if(document.mainform.FORMAIL_50_academic_goals.value==""){alertMessage+="- Enter your Academic Goal #13\n";showAlert=true;document.mainform.FORMAIL_50_academic_goals.focus();}
if(document.mainform.FORMAIL_51_classes_completed.value==""){alertMessage+="- Enter your Classes Completed #14\n";showAlert=true;document.mainform.FORMAIL_51_classes_completed.focus();}
if(document.mainform.FORMAIL_51_classes_completed.value.length>500){alertMessage+="- Enter 500 characters or less in the classes completed field #14\n";showAlert=true;textareaCharsValidate(document.mainform.FORMAIL_51_classes_completed,500);document.mainform.FORMAIL_51_classes_completed.focus();}
if(document.mainform.FORMAIL_54_employment.value.length>500){alertMessage+="- Enter 500 characters or less in the Employment and dates of employment...  field #17\n";showAlert=true;textareaCharsValidate(document.mainform.FORMAIL_54_employment,500);document.mainform.FORMAIL_54_employment.focus();}
if(document.mainform.FORMAIL_55_volunteered_works.value.length>500){alertMessage+="- Enter 500 characters or less in the Community, campus, professional...  field #18\n";showAlert=true;textareaCharsValidate(document.mainform.FORMAIL_55_volunteered_works,500);document.mainform.FORMAIL_55_volunteered_works.focus();}
if(document.mainform.FORMAIL_56_computer_skills.value.length>500){alertMessage+="- Enter 500 characters or less in the Specific computer skills field #19\n";showAlert=true;textareaCharsValidate(document.mainform.FORMAIL_56_computer_skills,500);document.mainform.FORMAIL_56_computer_skills.focus();}
if(document.mainform.FORMAIL_64_hope_to_gain.value.length>300){alertMessage+="- Enter 300 characters or less in the What do you hope to gain... field #26\n";showAlert=true;textareaCharsValidate(document.mainform.FORMAIL_64_hope_to_gain,300);document.mainform.FORMAIL_64_hope_to_gain.focus();}
var gpaExp=/^[0-9\.]+$/;var trimGpa=trimFormValue(document.mainform.FORMAIL_52_gpa.value);if(!(trimGpa.match(gpaExp))){alertMessage+="- Enter a valid GPA #15\n";showAlert=true;document.mainform.FORMAIL_52_gpa.focus();}
if(document.mainform.FORMAIL_53_career_goals.value==""){alertMessage+="- Enter your Career Goals #16\n";showAlert=true;document.mainform.FORMAIL_53_career_goals.focus();}
if(document.mainform.FORMAIL_54_employment.value==""){alertMessage+="- Enter your employment history #17\n";showAlert=true;document.mainform.FORMAIL_54_employment.focus();}
if(document.mainform.FORMAIL_55_volunteered_works.value==""){alertMessage+="- Enter your involvements #18\n";showAlert=true;document.mainform.FORMAIL_55_volunteered_works.focus();}
if(document.mainform.FORMAIL_56_computer_skills.value==""){alertMessage+="- Enter your computer skills #19\n";showAlert=true;document.mainform.FORMAIL_56_computer_skills.focus();}
if(document.mainform.FORMAIL_58_receive_credit.value==""){alertMessage+="- Select if you will get academic credit #21\n";showAlert=true;document.mainform.FORMAIL_58_receive_credit.focus();}
var dateExp=/(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[-/.](19|20)\d\d/;var trimStartDate=trimFormValue(document.mainform.FORMAIL_59_start_date.value);if(!(trimStartDate.match(dateExp)))
{alertMessage+="- Enter a valid available start date format of mm/dd/yyyy #22\n";showAlert=true;document.mainform.FORMAIL_59_start_date.focus();}
if(document.mainform.FORMAIL_62_hours_available.value==""){alertMessage+="- Select the number of hours available #24\n";showAlert=true;document.mainform.FORMAIL_62_hours_available.focus();}
if(document.mainform.FORMAIL_63_day_time.value==""){alertMessage+="- List the day and time you are available to intern #25\n";showAlert=true;document.mainform.FORMAIL_63_day_time.focus();}
if(document.mainform.FORMAIL_64_hope_to_gain.value==""){alertMessage+="- Enter what you hope to gain #26\n";showAlert=true;document.mainform.FORMAIL_64_hope_to_gain.focus();}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function togOpass(){Opass=(Opass)?false:true;}
function ToLinks(){var yRow=0;var mRow=0;var baseUrl="http://www.ttc.ocgov.com/tcweb/";yRow=document.Rptlinks.Year.selectedIndex;mRow=document.Rptlinks.Month.selectedIndex;var m=document.getElementById("Month");var y=document.getElementById("Year");var mMonthText=m.options[mRow].text;var mMonthValue=m.options[mRow].value;var yYearText=parseInt(y.options[yRow].text);var yYearValue=y.options[yRow].value;var fullYear=new Date().getFullYear();if(yYearText==fullYear){var defaultMonthOptionValue="";var xSelect=document.getElementById("Month");for(i=0;i<xSelect.length;i++){if(xSelect.options[i].defaultSelected){defaultMonthOptionValue=xSelect.options[i].value;break;}}
if(Number(mMonthValue)>Number(defaultMonthOptionValue)){baseUrl+="ReportMsg.htm";}else{baseUrl+=String.format('{0}{1}{2}{3}{4}{5}','Reports','/cover-',mMonthValue,'-',yYearValue,'.htm');}}else{if((yYearText<fullYear&&yYearText>=2006)||(yYearText==2005&&Number(mMonthValue)>=10)){baseUrl+=String.format('{0}{1}{2}{3}{4}{5}','Reports','/cover-',mMonthValue,'-',yYearValue,'.htm');}else if((yYearText<=2005&&yYearText>=2001)||(yYearText==2000&&Number(mMonthValue)>=06)){baseUrl+=String.format('{0}{1}{2}{3}{4}{5}{6}','Reports',"/"+mMonthText+" "+yYearText.toString(),'/cover-',mMonthValue,'-',yYearValue,'.htm');}else{baseUrl+="ReportMsg.htm";}}
if(baseUrl.indexOf("ReportMsg.htm",0)==-1){open(baseUrl,'openwindow','scrollbars=yes,resizable=yes,toolbar=yes,menubar=no,status=yes');}else{open(baseUrl,'Msgwindow','scrollbars=no,resizable=no,toolbar=no,menubar=no,width=500,height=250,left='+300+',top='+400+',status=no');}}
String.format=function(){if(arguments.length==0){return null;}
var str=arguments[0];for(var i=1;i<arguments.length;i++){var re=new RegExp('\\{'+(i-1)+'\\}','gm');str=str.replace(re,arguments[i]);}
return str;}
function validateTTCRequestForm(form)
{if(!validateScriptTag(form))return false;var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimFormValue(form.FORMAIL_02_Make_and_or_Model.value)=="")
{alert("Please enter a Make and/or Model!");return false;}
if(trimFormValue(form.FORMAIL_03_Year.value)=="")
{alert("Please enter a Year!");return false;}
if(trimFormValue(form.FORMAIL_04_Decal_Number.value)=="")
{alert("Please enter a Decal Number!");return false;}
if(trimFormValue(form.FORMAIL_05_Serial_Number.value)=="")
{alert("Please enter a Serial Number!");return false;}
if(trimFormValue(form.FORMAIL_01_Parcel_Number.value)=="")
{if(trimFormValue(form.FORMAIL_06_Location_Address.value)=="")
{alert("Please enter a Location Address!");return false;}
if(trimFormValue(form.FORMAIL_07_Location_City.value)=="")
{alert("Please enter a Location City!");return false;}
if(trimFormValue(form.FORMAIL_08_Location_State.value)=="")
{alert("Please enter a Location State!");return false;}
if(trimFormValue(form.FORMAIL_09_Location_Zip_Code.value)=="")
{alert("Please enter a Location ZipCode!");return false;}}
var requestedByOption=false;for(i=0;i<form.FORMAIL_36_Requested_By.length;i++)
{if(form.FORMAIL_36_Requested_By[i].checked)
{requestedByOption=true;}}
if(!requestedByOption)
{alert("Please select Requested by Option!");return false;}
if(trimFormValue(form.FORMAIL_10_Current_Owner_Name.value)=="")
{alert("Please enter a Current Owner Name!");return false;}
if(trimFormValue(form.FORMAIL_11_Current_Owner_Address_Line_1.value)=="")
{alert("Please enter a Current Owner Address Line 1!");return false;}
if(trimFormValue(form.FORMAIL_13_Current_Owner_City.value)=="")
{alert("Please enter a Current Owner City!");return false;}
if(trimFormValue(form.FORMAIL_14_Current_Owner_State.value)=="")
{alert("Please enter a Current Owner State!");return false;}
if(trimFormValue(form.FORMAIL_15_Current_Owner_Zip_Code.value)=="")
{alert("Please enter a Current Owner ZipCode!");return false;}
if(form.FORMAIL_36_Requested_By[2].checked==true)
{var trimPhoneNum=trimFormValue(form.FORMAIL_16_Current_Owner_Phone_Number.value);if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alert("Please enter a valid current owner phone number with area code!");return false;}}
if(trimFormValue(form.FORMAIL_18_New_Owner_Name.value)=="")
{alert("Please enter a New Owner Name!");return false;}
if(trimFormValue(form.FORMAIL_19_New_Owner_Address_Line_1.value)=="")
{alert("Please enter a New Owner Address Line 1!");return false;}
if(trimFormValue(form.FORMAIL_21_New_Owner_City.value)=="")
{alert("Please enter a New Owner City!");return false;}
if(trimFormValue(form.FORMAIL_22_New_Owner_State.value)=="")
{alert("Please enter a New Owner State!");return false;}
if(trimFormValue(form.FORMAIL_23_New_Owner_Zip_Code.value)=="")
{alert("Please enter a New Owner ZipCode!");return false;}
if(form.FORMAIL_36_Requested_By[1].checked==true)
{var trimPhoneNum=trimFormValue(form.FORMAIL_24_New_Owner_Phone_Number.value);if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alert("Please enter a valid new owner phone number with area code!");return false;}}
if(form.FORMAIL_36_Requested_By[0].checked==true)
{if(trimFormValue(form.FORMAIL_26_Escrow_Company_Name.value)=="")
{alert("Please enter a Escrow Company Name!");return false;}
if(trimFormValue(form.FORMAIL_27_Escrow_Company_Address_Line_1.value)=="")
{alert("Please enter a Escrow Company Address Line 1!");return false;}
if(trimFormValue(form.FORMAIL_29_Escrow_Company_City.value)=="")
{alert("Please enter a Escrow Company City!");return false;}
if(trimFormValue(form.FORMAIL_30_Escrow_Company_State.value)=="")
{alert("Please enter a Escrow Company State!");return false;}
if(trimFormValue(form.FORMAIL_31_Escrow_Company_Zip_Code.value)=="")
{alert("Please enter a Escrow Company ZipCode!");return false;}
if(trimFormValue(form.FORMAIL_33_Escrow_Company_Phone_Number.value)=="")
{alert("Please enter a Escrow Company Phone Number!");return false;}
var trimEmail=trimFormValue(form.FORMAIL_34_Escrow_Company_Email_Address.value);if(trimEmail==null||trimEmail==""||!(trimEmail.match(emailExp)))
{alert("Please enter a valid escrow company email address!");return false;}
if(trimFormValue(form.FORMAIL_35_Escrow_Company_Escrow_Number.value)=="")
{alert("Please enter a Escrow Number!");return false;}}
var certificateOption=false;for(i=0;i<form.FORMAIL_37_Certificate_Option.length;i++)
{if(form.FORMAIL_37_Certificate_Option[i].checked)
{certificateOption=true;}}
if(!certificateOption)
{alert("Please select How would you like to receive the certificate Option!");return false;}
return true;}
function validateLandlordInterestForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_Apartment_Name.value)=="")
{alertMessage+=" - Apartment Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_Property_Address.value)=="")
{alertMessage+=" - Property Address\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_03_Property_City.value)=="")
{alertMessage+=" - Property City\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_04_Phone_Number.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Phone Number with area code\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_05_Property_Manager.value)=="")
{alertMessage+=" - Property Manager\n";showAlert=true;}
var dateExp=/(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[-/.](19|20)\d\d/;var trimStartDate=trimFormValue(form.FORMAIL_06_Date_Available.value);if(!(trimStartDate.match(dateExp)))
{alertMessage+=" - Valid Available Date in the format of mm/dd/yyyy\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_12_Rent_Amount.value)=="")
{alertMessage+=" - Rent Amount\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function jumpPage(newLoc)
{newPage=newLoc.options[newLoc.selectedIndex].value
newLoc.options[newLoc.selectedIndex].selected=false
newLoc.options[0].selected=true
if(newPage!="")
{window.location.href=newPage}}
function validateWIBEmployerForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_Company.value)=="")
{alertMessage+=" - Company Name\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_03_Phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Phone Number with area code\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_05_Email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Enter a valid E-mail\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
var REGEXP_EMAIL=/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i;var REGEXP_PHONE=/^\d{3}\-\d{3}-\d{4}$/;var REGEXP_CONTENT=/((http)|(https)|(HTTP)|(HTTPS)|(FTP)|(ftp)|(Sex)|(Viagra)|(Gay)|(sex)|(viagra)|(gay)|(lesbian)|(pharmacy)|(smoke))/;function ProbationContactFormValidator(){if(!evalName()){alert("Please enter your name");return false;}
if(!evalEmail()){alert("Email is invalid");return false;}
if(!evalPhone()){alert("Phone Number must have 123-123-1234 format");return false;}
if(!evalSubject()){alert("Please enter Subject");return false;}
if(!evalContent()){alert("Please enter your message");return false;}
if(!evalContentCheck()){alert("No Web Addresses allowed in message box");return false;}
return true;}
function ProbationEmploymentFormValidator(){if(!evalName()){alert("Please enter your name");return false;}
if(!evalEmail()){alert("Email is invalid");return false;}
if(!evalPhone()){alert("Phone Number must have 123-123-1234 format");return false;}
if(!evalEmploymentContent()){alert("Please enter your message");return false;}
return true;}
function ProbationVolunteerFormValidator(){if(!evalName()){alert("Please enter your name");return false;}
if(!evalVolunteerEmail()){alert("Email is invalid");return false;}
return true;}
function evalName(){if((document.formContact.FORMAIL_01_Name.value==null)||(document.formContact.FORMAIL_01_Name.value=="")){return false;}else{return true;}}
function evalEmail(){if(document.formContact.FORMAIL_02_Email.value.match(REGEXP_EMAIL)){return true;}else{return false;}}
function evalVolunteerEmail(){if(document.formContact.FORMAIL_08_Email.value.match(REGEXP_EMAIL)){return true;}else{return false;}}
function evalPhone(){if(document.formContact.FORMAIL_03_HomePhone.value.match(REGEXP_PHONE)){return true;}else{return false;}}
function evalSubject(){if((document.formContact.FORMAIL_05_Subject.value==null)||(document.formContact.FORMAIL_05_Subject.value=="")){return false;}else{return true;}}
function evalContent(){if((document.formContact.FORMAIL_06_Message.value==null)||(document.formContact.FORMAIL_06_Message.value=="")){return false;}else{return true;}}
function evalContentCheck(){if(document.formContact.FORMAIL_06_Message.value.match(REGEXP_CONTENT)){return false;}else{return true;}}
function evalEmploymentContent(){if((document.formContact.FORMAIL_05_Message.value==null)||(document.formContact.FORMAIL_05_Message.value=="")){return false;}
if(document.formContact.FORMAIL_05_Message.value.match(REGEXP_CONTENT)){return false;}else{return true;}}
function validateEmployerInquiryForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_04_Your_Name.value)=="")
{alertMessage+=" - Your Name\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_05_Your_Phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Phone Number with area code\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_06_Employee_Name.value)=="")
{alertMessage+=" - Employee Name\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateEscrowInquiryForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_05_Company_Name.value)=="")
{alertMessage+=" - Company Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_06_Company_Street_Address.value)=="")
{alertMessage+=" - Company Street Address\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_07_Company_City.value)=="")
{alertMessage+=" - Company City\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_08_Company_State.value)=="")
{alertMessage+=" - Company State\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_09_Company_Zip_Code.value)=="")
{alertMessage+=" - Company Zip Code\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_10_Company_Phone_Number.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Company Phone Number with area code\n";showAlert=true;}
var trimFaxNum=trimFormValue(form.FORMAIL_11_Company_Fax_Number.value);var faxExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimFaxNum==null||trimFaxNum==""||!(trimFaxNum.match(faxExp)))
{alertMessage+=" - Valid Company Fax Number with area code\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_13_Contact_Person_Name.value)=="")
{alertMessage+=" - Company Contact Person Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_14_Client_Name.value)=="")
{alertMessage+=" - Client Full Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_15_Client_SSN.value)=="")
{alertMessage+=" - Client Social Security Number\n";showAlert=true;}
var dateExp=/(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[-/.](19|20)\d\d/;var trimStartDate=trimFormValue(form.FORMAIL_16_Client_DOB.value);if(!(trimStartDate.match(dateExp)))
{alertMessage+=" - Valid Date of Birth in the format of mm/dd/yyyy\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_18_Client_Property_Address.value)=="")
{alertMessage+=" - Client Property Address\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateDanaPointContactUsForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_full_name.value)=="")
{alertMessage+=" - Your Full Name\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_02_email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Enter a valid E-mail\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateHumanRelationsRegistrationForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_firstname.value)=="")
{alertMessage+=" - First Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_last_name.value)=="")
{alertMessage+=" - Last Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_04_street.value)=="")
{alertMessage+=" - Street Address\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_05_city.value)=="")
{alertMessage+=" - City\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_06_state.value)=="")
{alertMessage+=" - State\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_07_zip.value)=="")
{alertMessage+=" - Zip\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_09_Phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Phone Number with area code\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateOOAPrintedMaterialRequstForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_Full_Name.value)=="")
{alertMessage+=" - Full Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_Address.value)=="")
{alertMessage+=" - Address\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_03_City.value)=="")
{alertMessage+=" - City\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_04_State.value)=="")
{alertMessage+=" - State\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_05_Zip.value)=="")
{alertMessage+=" - Zip\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateAdoptionPacketForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_FirstName.value)=="")
{alertMessage+=" - First Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_LastName.value)=="")
{alertMessage+=" - Last Name\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_06_Email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Valid E-mail\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateFosterPacketForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_FirstName.value)=="")
{alertMessage+=" - First Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_LastName.value)=="")
{alertMessage+=" - Last Name\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_06_Email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Valid E-mail\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validatePostAdoptionInquiriesForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_YouAre.value)=="")
{alertMessage+=" - You Are\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_03_YourFirstName.value)=="")
{alertMessage+=" - Your First Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_04_YourLastName.value)=="")
{alertMessage+=" - Your Last Name\n";showAlert=true;}
var dateExp=/(0[1-9]|1[012])[- /.](0[1-9]|[12][0-9]|3[01])[-/.](19|20)\d\d/;var trimStartDate=trimFormValue(form.FORMAIL_10_AdopteeDOB.value);if(!(trimStartDate.match(dateExp)))
{alertMessage+=" - Valid Adoptee Date of Birth in the format of mm/dd/yyyy\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_11_Phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Phone Number with area code\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_12_Email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Enter a valid E-mail\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_13_Address.value)=="")
{alertMessage+=" - Street Address\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_15_City.value)=="")
{alertMessage+=" - City\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_16_State.value)=="")
{alertMessage+=" - State\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_17_Zip.value)=="")
{alertMessage+=" - Zip\n";showAlert=true;}
var ceOption=-1;for(i=0;i<form.FORMAIL_20_CountyEmployee.length;i++)
{if(form.FORMAIL_20_CountyEmployee[i].checked)
{ceOption=i;}}
if(ceOption==-1)
{alertMessage+=" - Are you currently a County of Orange employee?\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_21_Request.value)=="")
{alertMessage+=" - Your request or special instructions\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateOCGJCWorksiteForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_Organization_Name.value)=="")
{alertMessage+=" - Organization Name\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_02_Phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Phone Number with area code\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_04_Email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Enter a valid E-mail\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateSSAVolunteerForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_FirstName.value)=="")
{alertMessage+=" - Your First Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_LastName.value)=="")
{alertMessage+=" - Your Last Name\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_03_DayPhone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Daytime Phone Number with area code\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateSSAVolunteerSantaClausForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_02_FirstName.value)=="")
{alertMessage+=" - Your First Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_03_LastName.value)=="")
{alertMessage+=" - Your Last Name\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_04_Phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Phone Number with area code\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateSSAContactUsQCForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_Site_Located.value)=="")
{alertMessage+=" - How did you find our web site?\n";showAlert=true;}
if(form.FORMAIL_02_Access_From.selectedIndex==0)
{alertMessage+=" - Where are you accessing this site from?\n";showAlert=true;}
if(form.FORMAIL_03_CA_Access.selectedIndex==0)
{alertMessage+=" - Are you accessing this site from California?\n";showAlert=true;}
if(form.FORMAIL_04_Age_Group.selectedIndex==0)
{alertMessage+=" - What is your age group?\n";showAlert=true;}
if(form.FORMAIL_05_Info_Interest.selectedIndex==0)
{alertMessage+=" - What kind of information interests you most?\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateMicrosoftElevatesAmericaForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_LastName.value)=="")
{alertMessage+=" - Last Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_FirstName.value)=="")
{alertMessage+=" - First Name\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_03_MiddleName.value)=="")
{alertMessage+=" - Middle Name/Initial\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_04_Zip.value)=="")
{alertMessage+=" - Zip\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_05_Email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Valid E-mail\n";showAlert=true;}
if(form.FORMAIL_27_EmploymentStatus[0].checked&&trimFormValue(form.Fulltime_Time_At_Current_Position.value)=="")
{alertMessage+=" - Full-Time - Time at current position\n";showAlert=true;}
if(form.FORMAIL_27_EmploymentStatus[1].checked&&trimFormValue(form.Parttime_Time_At_Current_Position.value)=="")
{alertMessage+=" - Part Time - Time at current position\n";showAlert=true;}
var curStEd=false;if(form.FORMAIL_35_CurrentStudent.checked)
{for(i=0;i<form.FORMAIL_36_CurrentStudentEd.length;i++)
{if(form.FORMAIL_36_CurrentStudentEd[i].checked)
{curStEd=true;}}
if(!curStEd)
{alertMessage+=" - Education Status - Select one in Current Student\n";showAlert=true;}}
if(form.FORMAIL_27_EmploymentStatus[0].checked)
{form.FORMAIL_28_Time_At_Current_Position.value=form.Fulltime_Time_At_Current_Position.value;}
if(form.FORMAIL_27_EmploymentStatus[1].checked)
{form.FORMAIL_28_Time_At_Current_Position.value=form.Fulltime_Time_At_Current_Position.value;}
if(showAlert)
{alert(alertMessage);return false;}
return true;}
function validateRadioSystemQualityReportForm(form)
{if(!validateScriptTag(form))return false;alertMessage="Please enter the following: \n";showAlert=false;if(trimFormValue(form.FORMAIL_01_Date.value)=="")
{alertMessage+=" - Date\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_02_Time.value)=="")
{alertMessage+=" - Time\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_03_Talkgroup.value)=="")
{alertMessage+=" - Talkgroup\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_04_My_Specific_Location.value)=="")
{alertMessage+=" - My Specific Location \n";showAlert=true;}
if(!form.FORMAIL_06_Radio_User_Inside_Building.checked&&!form.FORMAIL_07_Radio_User_Outside_Building.checked&&!form.FORMAIL_08_Radio_User_Other.checked)
{alertMessage+=" - The Radio USER was:\n";showAlert=true;}
if(!form.FORMAIL_10_Radio_Used_Handheld.checked&&!form.FORMAIL_12_Radio_Used_Vehicle.checked&&!form.FORMAIL_14_Radio_Used_Base_Station.checked&&!form.FORMAIL_15_Radio_Used_Dispatch_Center_Console.checked)
{alertMessage+=" - The Radio USED was:\n";showAlert=true;}
if(!form.FORMAIL_16_Transmission_DispatchToField.checked&&!form.FORMAIL_17_Transmission_FieldToDispatch.checked&&!form.FORMAIL_18_Transmission_FieldToField.checked)
{alertMessage+=" - The Transmission was:\n";showAlert=true;}
if(form.FORMAIL_08_Radio_User_Other.checked&&trimFormValue(form.FORMAIL_09_Radio_User_Other_Description.value)=="")
{alertMessage+=" - The Radio USER was: Other Description\n";showAlert=true;}
if(form.FORMAIL_10_Radio_Used_Handheld.checked&&trimFormValue(form.FORMAIL_11_Radio_Used_Handheld_Number.value)=="")
{alertMessage+=" - Handheld - Portable Number\n";showAlert=true;}
if(form.FORMAIL_12_Radio_Used_Vehicle.checked&&trimFormValue(form.FORMAIL_13_Radio_Used_Vehicle_Number.value)=="")
{alertMessage+=" - Mobile - Vehicle Number\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_19_Description_of_Poor_Quality.value)=="")
{alertMessage+=" - Description of Poor Quality\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_20_Reporting_Person.value)=="")
{alertMessage+=" - Reporting Person (Name)\n";showAlert=true;}
if(trimFormValue(form.FORMAIL_21_Reporting_Agency.value)=="")
{alertMessage+=" - Reporting Agency\n";showAlert=true;}
var trimPhoneNum=trimFormValue(form.FORMAIL_22_Phone.value);var phoneExp=/^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,5})|(\(?\d{2,6}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$/;if(trimPhoneNum==null||trimPhoneNum==""||!(trimPhoneNum.match(phoneExp)))
{alertMessage+=" - Valid Telephone Number with area code\n";showAlert=true;}
var emailExp=/^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;var trimEmail=trimFormValue(form.FORMAIL_23_Email.value);if(!(trimEmail.match(emailExp))){alertMessage+=" - Valid Email\n";showAlert=true;}
if(showAlert)
{alert(alertMessage);return false;}
if(trimFormValue(form.FORMAIL_05_Other_Location.value)=="")
{form.FORMAIL_05_Other_Location.value="N/A";}
if(trimFormValue(form.FORMAIL_09_Radio_User_Other_Description.value)=="")
{form.FORMAIL_09_Radio_User_Other_Description.value="N/A";}
if(trimFormValue(form.FORMAIL_11_Radio_Used_Handheld_Number.value)=="")
{form.FORMAIL_11_Radio_Used_Handheld_Number.value="N/A";}
if(trimFormValue(form.FORMAIL_13_Radio_Used_Vehicle_Number.value)=="")
{form.FORMAIL_13_Radio_Used_Vehicle_Number.value="N/A";}
return true;}
function overwriteCookiePath(bForceOverwrite) {
    var c_start=document.cookie.indexOf("SESSIONCOOKIE_FORCLIP=");
    if (c_start!=-1 && !bForceOverwrite) {
        return;
    }
    var cookies = document.cookie.split(";");
    for ( var i = 0; i<cookies.length;i++) {
        var cookieArr = cookies[i].split("=");
        var cName = cookieArr[0];
        var cValue = cookieArr[1];

        if ( cName == "JSESSIONID") {
            document.cookie = cName + "=" + cValue +  ";path=/DynamicClipPortlet;";
            document.cookie = "SESSIONCOOKIE_FORCLIP=true;path=/;";
        }
    }
}

