function email_popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=627,height=325,left=0,top=0');"); } function clearPhotoField(sField, sFormname) { objImage = document.forms[sFormname].elements[sField]; objImage.src = ""; objDiv = document.getElementById(sField + '_DIV'); objDiv.style.visibility = 'hidden'; document.forms[sFormname].elements[sField].value = ""; } function validator() { this.inputName = new Array(); this.validationType = new Array(); this.formName = new Array(); this.errorMessage = new Array(); this.optionalFlag = new Array(); this.length = 0; this.emptyErrorMessage = "The required field is missing: "; this.showError = true; this.min_pass_length = 0; this.max_pass_length = 0; this.validate = validate; this.validateOne = validateOne; this.validateOneIndexed = validateOneIndexed; this.validateOneField = validateOneField; this.required = required; this.optional = optional; this.unrequired = unrequired; this.setpasswordsize = setpasswordsize; this.setvalidation = setvalidation; this.hasValue = hasValue; this.displayError = displayError; this.getIndex = getIndex; ////////////////////////////////////// // Validation Methods go here ///////////////////////////////////// // When adding new methods, be sure to the hasValue method if any "special" // handling is required (mainly if the element consists of more than one field). // this.isInputValid = isInputValid; this.isEmailValid = isEmailValid; this.isWysiwygValid = isWysiwygValid; this.isEitherValid = isEitherValid; this.isLengthValid = isLengthValid; this.isCCExpValid = isCCExpValid; this.isCCNumValid = isCCNumValid; this.isPasswordValid = isPasswordValid; this.isPhoneValid = isPhoneValid; this.isFaxValid = isPhoneValid; // Yes, this is intentional this.isZipValid = isZipValid; this.isCurrencyValid = isCurrencyValid; this.isFloatValid = isFloatValid; this.isIntegerValid = isIntegerValid; this.isUsernameValid = isUsernameValid; this.isURLValid = isURLValid; this.isEmailListValid = isEmailListValid; this.isDateValid = isDateValid; this.isTimeValid = isTimeValid; this.isMinChecked = isMinChecked; this.isFileValid = isFileValid; } function getFormObject(formNameTemp) { if(typeof formNameTemp == 'string') { formName = eval("document."+formNameTemp); }else{ formName = formNameTemp; } return formName; } function getInputObject(formNameTemp,inputNameTemp) { if ( (typeof formNameTemp == 'string') && (typeof inputNameTemp == 'string') ) { formName = eval("document."+form