			var no_errors = true;
			function checkform(formfield,msgtext) {
				if (no_errors) {
					field = eval("document.submitForm." + formfield);
						if (field.type) {
							if (field.type == "text" || field.type == "password" || field.type == "file") {
								if (field.value == "") {
									no_errors = false;
									alert("The " + msgtext + " field is blank.\nPlease Correct This And Try Again.");
									field.focus();					
									field.select();
								}
							}
						}
				}
			}
			function checkpulldown(formfield,msgtext) {
				if (no_errors) {
					field = eval("document.submitForm." + formfield);
						if (field.options[0].selected) {
							no_errors = false;
							alert("Please select a " + msgtext + ".");
							field.focus();	
						}
				}
			}
			function checknumber(formfield,msgtext) {
				if (no_errors) {
					field = eval("document.submitForm." + formfield);
						if (field.type) {
							if (field.type == "text") {
								if (isNaN(field.value)) {
									no_errors = false;
									alert("The " + msgtext + " number is invalid.\nPlease Correct This And Try Again.");
									field.focus();	
									field.select();
								}
							}
						}
					
				}
			}
			function checkpositiveInt(formfield,msgtext) {
				if (no_errors) {
					field = eval("document.submitForm." + formfield);
						if (field.type) {
							if (field.type == "text") {
								if (isNaN(field.value)) {
									no_errors = false;
									alert("The " + msgtext + " number is invalid.\nPlease Correct This And Try Again.");
									field.focus();	
									field.select();
								}
								//if (field.value < 0) {
								if (field.value < 1) {
									no_errors = false;
									alert("The " + msgtext + " number is invalid.\nPlease Correct This And Try Again.");
									field.focus();	
									field.select();
								}
								if (field.value.indexOf('.')!=-1) {
									no_errors = false;
									alert("The " + msgtext + " number is invalid.\nPlease Correct This And Try Again.");
									field.focus();	
									field.select();
								}
							}
						}
					
				}
			}
			function checkemail(formfield,msgtext) {
				if (no_errors) {
					field = eval("document.submitForm." + formfield);
						if (!validEmail(field.value)) {
							no_errors = false;
							alert("The " + msgtext + " is invalid.\nPlease Correct This And Try Again.");
							field.focus();	
							field.select();
						}
				}
			}
			function validEmail(Email) {
				invalidChars = " /:,;"
					if (Email == "") {                // cannot be empty
						return false
					}
					for (i=0; i<invalidChars.length; i++) { // does it contain any invalid characters?
						badChar = invalidChars.charAt(i)
							if (Email.indexOf(badChar,0) > -1) {
								return false
							}	
					}
				atPos = Email.indexOf("@",1)            // there must be one "@" symbol
					if (atPos == -1) {
						return false
					}	
					if (Email.indexOf("@",atPos+1)!= -1) { // and only one "@" symbol
						return false
					}
				periodPos = Email.indexOf(".",atPos)
					if (periodPos == -1) {             // and at least one "." after the "@"
						return false
					}
					if (periodPos+3 > Email.length) {  // must be at least 2 characters after the "."
						return false
					}
				return true
			}
			function checkradio(formfield,formfield2,msgtext) {
				if (no_errors) {
					field = eval("document.submitForm." + formfield);
					field2 = eval("document.submitForm." + formfield2);
						if (!field.checked && !field2.checked) {
							no_errors = false;
							alert("You must select an answer for " + msgtext + ".\nPlease Correct This And Try Again.");
						}
				}
			}
			function checkcheckboxes(formfield,msgtext) {
				if (no_errors) {
					var flag = false;
						for (i =0; i<document.submitForm.elements.length;i++) {
							fieldname = document.submitForm.elements[i].name;
							if (fieldname.indexOf(formfield) != -1) {
								if (document.submitForm.elements[i].checked) {
									flag = true;
									hiddenfield = eval("document.submitForm.h_" + formfield);
									hiddenfield.value += ("|" + document.submitForm.elements[i].name.substr((formfield.length+1),(document.submitForm.elements[i].name.length-1)));
								}
							} 
						}
						if (!flag) {
							no_errors = false;
							alert("You must select a " + msgtext + ".\nPlease Correct This And Try Again.");
						} else {
							hiddenfield.value = hiddenfield.value.substr(1,(hiddenfield.value.length-1));
						}
				}
			}
			
