
<!--

//REV20080112: Added logic to prevent user from clicking submit button more than once

function F_JS_OnClick_SubmitButton_contact_form(pass_IN_JS_form_obj)
{

 form_errors_ind = F_JS_perform_client_side_edits_contact_form(pass_IN_JS_form_obj);
 if (form_errors_ind == true)
    { 
	 ;
	}
 else	
    { 
	 //js_TRANS_lock_ValidButton_pressed = true;
     pass_IN_JS_form_obj.FB_Submit_Contact_Form.disabled = true;
 
     pass_IN_JS_form_obj.action = "contact_u.asp";   

     pass_IN_JS_form_obj.submit();
	}	  
}


function F_JS_perform_client_side_edits_contact_form(pass_IN_JS_form_obj)
{
 var error_ind;
 var error_msg;
 var error_msg_complete;
 
 error_ind = false;
 error_msg = "";
 error_msg_complete = "Your information is not complete due to the following errors: \n\n";
 
 if (pass_IN_JS_form_obj.FF_NAME_FIRST_CON.value == "")
    {
     error_ind = true;
     error_msg = "-Please provide a First Name";
     error_msg_complete = error_msg_complete + error_msg + "\n";
    }
  
 if (pass_IN_JS_form_obj.FF_NAME_LAST_CON.value == "")
    {
     error_ind = true;
     error_msg = "-Please provide a Last Name";
     error_msg_complete = error_msg_complete + error_msg + "\n";
    }
	
 l_compare_both_email_addr_ind = true; 
 if (pass_IN_JS_form_obj.FF_EMAIL_ADDRESS_CON.value == "")
    {
	 l_compare_both_email_addr_ind = false; 
	
     error_ind = true;
     error_msg = "-Please provide an Email Address";
     error_msg_complete = error_msg_complete + error_msg + "\n";
    }
  
 if (pass_IN_JS_form_obj.FF_EMAIL_ADDRESS_CON_RETYPE.value == "")
    {
	 l_compare_both_email_addr_ind = false; 
	
     error_ind = true;
     error_msg = "-Please Re-type Your Email Address as requested";
     error_msg_complete = error_msg_complete + error_msg + "\n";
    }
	
 if (l_compare_both_email_addr_ind == true)
    {
	 if (pass_IN_JS_form_obj.FF_EMAIL_ADDRESS_CON.value != pass_IN_JS_form_obj.FF_EMAIL_ADDRESS_CON_RETYPE.value)
        {
         error_ind = true;
         error_msg = "-Email Address and Re-typed Email Address do not match";
         error_msg_complete = error_msg_complete + error_msg + "\n";
		}
    }

/*REV20080721:Customer indicator changed to a text box, and no longer required.
 l_at_least_one_chosen = false;
 l_obj = pass_IN_JS_form_obj.FRB_CURRENTLY_A_SUBSCRIBER_IND;
 imax = l_obj.length;
 for (i = 0; i < imax; i++)
     {
      if (l_obj[i].checked == true)
         { l_at_least_one_chosen = true; }
	 }
 if (l_at_least_one_chosen == false)
    {
	  //if no file format is selected...
	  error_ind = true;
	  error_msg = "-Please indicate if you are a Scorebooth subscriber or not";
      error_msg_complete = error_msg_complete + error_msg + "\n";
	}

*/	
	
 if (pass_IN_JS_form_obj.FF_NOTE_DESC_CON.value == "")
    {
     error_ind = true;
     error_msg = "-Please provide the text of your Comment or Question";
     error_msg_complete = error_msg_complete + error_msg + "\n";
    }


 if (error_ind)
    {
	 alert(error_msg_complete);
	 return true;
	}
}
//-->

