

<!-- Begin 

     var bCancel = false; 

    function validateIconValidateTest(form) {                                                                   
        if (bCancel) 
      return true; 
        else 
       return validateRequired(form) && validateMinLength(form); 
   } 
    function required () { 
     this.aa = new Array("valTest", "Text Field Value is required.", new Function ("varName", "this.minlength='5';  return this[varName];"));
    } 

    function minlength () { 
     this.aa = new Array("valTest", "Text Field Value can not be less than 5 characters.", new Function ("varName", "this.minlength='5';  return this[varName];"));
    } 
function validateRequired(form) {

                var isValid = true;
                var focusField = null;
                var i = 0;
                var fields = new Array();
                oRequired = new required();
                for (x in oRequired) {
                	var field = form[oRequired[x][0]];
                	
                    if (field.type == 'text' ||
                        field.type == 'textarea' ||
                        field.type == 'file' ||
                        field.type == 'select-one' ||
                        field.type == 'radio' ||
                        field.type == 'password') {
                        
                        var value = '';
						// get field's value
						if (field.type == "select-one") {
							var si = field.selectedIndex;
							if (si >= 0) {
								value = field.options[si].value;
							}
						} else {
							value = field.value;
						}
                        
                        if (trim(value).length == 0) {
                        
	                        if (i == 0) {
	                            focusField = field;
	                        }
	                        fields[i++] = oRequired[x][1];
	                        isValid = false;
                        }
                    }
                }
                if (fields.length > 0) {
                   focusField.focus();
                   alert(fields.join('\n'));
                }
                return isValid;
            }
            
            // Trim whitespace from left and right sides of s.
            function trim(s) {
                return s.replace( /^\s*/, "" ).replace( /\s*$/, "" );
            }

function validateMinLength(form) {
                var isValid = true;
                var focusField = null;
                var i = 0;
                var fields = new Array();
                oMinLength = new minlength();
                for (x in oMinLength) {
                    var field = form[oMinLength[x][0]];
                    
                    if (field.type == 'text' ||
                        field.type == 'textarea') {
                        
                        var iMin = parseInt(oMinLength[x][2]("minlength"));
                        if ((trim(field.value).length > 0) && (field.value.length < iMin)) {
                            if (i == 0) {
                                focusField = field;
                            }
                            fields[i++] = oMinLength[x][1];
                            isValid = false;
                        }
                    }
                }
                if (fields.length > 0) {
                   focusField.focus();
                   alert(fields.join('\n'));
                }
                return isValid;
            }
            
    function MM_goToURL() { //v3.0
      var i, args=MM_goToURL.arguments; 
      for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
    }
    
function openNewWindowForLink()
{    
    var a = openNewWindowForLink.arguments;
    window.open(a[0],a[1],"height=510,width=750,location=yes,menubar=yes,resizable=yes,scrollbars=yes");
}
//End --> 

