<!--  
    function GoToPage(PageURL) {
        alert(PageURL);
    }
    
    function submitForm( theForm ) {
        if( !validateRequiredFields( new Array( theForm.os0 ), new Array( "Password" ) ) ) {
            return false;                            
        }
        
        if( !validateRequiredDropDowns( new Array( theForm.os1 ), new Array( "Coast" ) ) ) {
			return false;
		}
		
		if( !checkTermsAndConditions( theForm ) ) {
		    return false;
		}
		      
        alert('process subscribe');
        return false;
        //return true; 
    }
    
    /** Add trim() functionality to String instances. */
    String.prototype.ltrim = function () { return this.replace(/^\s*/, "");}
    String.prototype.rtrim = function () { return this.replace(/\s*$/, "");}
    String.prototype.trim  = function () { return this.ltrim().rtrim(); }
    
    // check if str is empty
    function isEmpty (str) {
	    if (str == null || str.trim() == "")
		    return true;
	    else
		    return false;
    }
    
    // An array of input fields that are required is passed in
    function validateRequiredFields( fields, fieldNames ) {
	    for( i=0; i<fields.length; i++ ) {
		    if( isEmpty( fields[i].value ) ) {
			    alert( "Please enter a value for " + fieldNames[i] );
			    fields[i].focus();
			    return false;
		    }
	    }
	    return true;
    }
    
    // An array of input fields that are required is passed in
    function validateRequiredDropDowns( dds, ddNames ) {
	    for( i=0; i<dds.length; i++ ) {
		    if( isEmpty( dds[i].value ) ) {
			    alert( "Please select a value for " + ddNames[i] );
			    dds[i].focus();
			    return false;
		    }
	    }
	    return true;
    }
    
    function checkTermsAndConditions( theForm ) {
		if( theForm.termsAndConditions[1].checked ) {
			alert( "You must agree with the 'Terms and Conditions of Use' before you can become a member." );
			return false;
		}
		return true;
	}
// end script -->
