function buildclassitide() { var myvar = ""; if(document.getElementById("dontdisplaycompany").checked == false) { if(document.getElementById("companyname").value == "") { myvar = myvar + "[COMPANYNAME] are looking for a "; } else { myvar = document.getElementById("companyname").value + " are looking for a "; } } if(document.getElementById("positiontitle").value == "") { myvar = myvar + "[POSITION TITLE]"; } else { myvar = myvar + document.getElementById("positiontitle").value; } if(document.getElementById("dontdisplaycompany").checked == true) { myvar = myvar + " needed. "; } else { myvar = myvar + ". "; } myvar = myvar + document.getElementById("briefdesc").value + " "; var contacts = 0; if(document.getElementById("contactbyphone").checked == true) { if(document.getElementById("companyphone").value == "") { myvar = myvar + "Phone [PHONE NUMBER]" } else { myvar = myvar + "Phone " + document.getElementById("companyphone").value; } contacts = contacts + 1; } if(document.getElementById("contactbyemail").checked == true) { if(contacts > 0) { myvar = myvar + " or "; } if(document.getElementById("companyemail").value == "") { myvar = myvar + "E-Mail your resume to [EMAIL]" } else { myvar = myvar + "E-Mail your resume to " + document.getElementById("companyemail").value; } contacts = contacts + 1; } if(document.getElementById("contactbyweb").checked == true) { if(contacts > 0) { myvar = myvar + " or "; } if(document.getElementById("companywebsite").value == "") { myvar = myvar + "Apply online at: [Website]" } else { myvar = myvar + "Apply online at: " + document.getElementById("companywebsite").value; } contacts = contacts + 1; } if(document.getElementById("contactbyfax").checked == true) { if(contacts > 0 ) { myvar = myvar + " or "; } if(document.getElementById("companyfax").value == "") { myvar = myvar + "Fax your resume to [FAX]" } else { myvar = myvar + "Fax your resume to " + document.getElementById("companyfax").value; } contacts = contacts + 1; } if(document.getElementById("contactbypostal").checked == true) { postvar = true; } else { postvar = false; } if(document.getElementById("contactinperson").checked == true) { personvar = true; } else { personvar = false; } if((postvar == true) || (personvar == true)) { if(contacts > 0 ) { myvar = myvar + " or "; } if(document.getElementById("companystreet").value == "") { if(postvar == true) { myvar = myvar + "Mail your resume to"; } if(postvar == true && personvar == true) { myvar = myvar + " / "; } if(personvar == true) { myvar = myvar + "Apply in person at"; } myvar = myvar + " [ADDRESS] "; } else { if(postvar == true) { myvar = myvar + "Mail your resume to"; } if(postvar == true && personvar == true) { myvar = myvar + " / "; } if(personvar == true) { myvar = myvar + "Apply in person at"; } myvar = myvar + " " + document.getElementById("companystreet").value; myvar = myvar + " " + document.getElementById("companycity").value; myvar = myvar + " " + document.getElementById("companystate").value; myvar = myvar + " " + document.getElementById("companyzip").value; } } myvar = myvar + ". "; document.getElementById("classitideslisting").value = myvar; cnt(); } function testing() { var frmvalidator = new Validator("myform"); frmvalidator.addValidation("contactname","req","Please enter your name"); frmvalidator.addValidation("companyname","req","Please enter company name"); frmvalidator.addValidation("companyemail","req","Please enter your email address"); frmvalidator.addValidation("positiontitle","req","Please enter a title for this position"); frmvalidator.addValidation("briefdesc","req","Please complete the Brief Description"); frmvalidator.addValidation("jobcity","req","Please complete the City Location of Job"); // frmvalidator.addValidation("ccnum","req","Credit card number is required"); // frmvalidator.addValidation("ccnum","num","Credit card number is invalid"); // frmvalidator.addValidation("ccexp","req","Credit card expiration is required"); // frmvalidator.addValidation("ccexp","num","Credit card expiration is invalid"); frmvalidator.addValidation("companyemail","email","Your email address is not valid please re-enter"); frmvalidator.setAddnlValidationFunction("DoCustomCCValidation"); } function testingResumePurchase() { var frmvalidator = new Validator("myform"); frmvalidator.addValidation("contactname","req","Please enter your name"); frmvalidator.addValidation("companyname","req","Please enter company name"); frmvalidator.addValidation("purchaseemail","req","Please enter your email address"); frmvalidator.addValidation("confirmemail","req","Please confirm your email address"); // frmvalidator.addValidation("ccnum","req","Credit card number is required"); // frmvalidator.addValidation("ccnum","num","Credit card number is invalid"); // frmvalidator.addValidation("ccexp","req","Credit card expiration is required"); // frmvalidator.addValidation("ccexp","num","Credit card expiration is invalid"); frmvalidator.addValidation("purchaseemail","email","Your email address is not valid please re-enter"); frmvalidator.addValidation("confirmemail","email","Your email address is not valid please re-enter"); frmvalidator.setAddnlValidationFunction("DoCustomCCValidation"); } function testingAdmin() { var frmvalidator = new Validator("myform"); frmvalidator.addValidation("contactname","req","Please enter name"); frmvalidator.addValidation("companyname","req","Please enter company name"); frmvalidator.addValidation("companyemail","req","Please enter email address"); frmvalidator.addValidation("positiontitle","req","Please enter a title for this position"); frmvalidator.addValidation("briefdesc","req","Please complete the Brief Description"); frmvalidator.addValidation("jobcity","req","Please complete the City Location of Job"); frmvalidator.addValidation("companyemail","email","Email address is not valid please re-enter"); frmvalidator.setAddnlValidationFunction("DoCustomCCValidation"); } function saving() { document.getElementById("ccnum").value = "0000000000000000"; document.getElementById("ccexp").value = "0000"; } function movefocus() { document.getElementById("post").focus(); } function cnt(){ var x=document.myform.c; var w=document.myform.classitideslisting; var y=w.value; // var r = 0; // a=y.replace('\n',' '); // a=a.split(' '); // for (z=0; z 0) r++;} r=w.value.length; x.value=r; mycost = "0.00"; element = document.myform.listfor.selectedIndex; element = element + 1; total = mycost * element; var tally = 0; //if(r>280) //{ // tally = r - 280; // tally = Math.ceil(tally / 40); //alert(tally); // total = total + ((tally * 1.50) * element); // document.getElementById("costwarn").style.display = "block"; //} //else //{ document.getElementById("costwarn").style.display = "none"; //} total = total.toFixed(2); document.getElementById("cost").value = total; } function limitText(limitField, limitCount, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); alert("Field Limit is 200 characters."); } else { limitCount.value = limitNum - limitField.value.length; } }