/**
 *  Validates Resume form fields
 *  @package scripts
 *  @author Vince Pangan
 *  @since 05/07/09
 */

$(document).ready(function() {
	
	 $("#user_type_2").bind("click", function(e){
      $("[for=birthdate]").text('Birthdate (mm-dd-yyyy)');
	  $("#birthdate").attr('name', 'birthdate');
    });						   
	 
	 
	  $("#user_type_1").bind("click", function(e){
      $("[for=birthdate]").text('Phone Number');
	  $("#birthdate").attr('name', 'phone');
    });				
	  
	  if ($('#user_type_2:checked').val()) 
	  {
		  $("[for=birthdate]").text('Birthdate (mm-dd-yyyy)');
		  $("#birthdate").attr('name', 'birthdate');
	  }
	  if ($('#user_type_1:checked').val())
	  {
		  $("[for=birthdate]").text('Phone');
		  $("#birthdate").attr('name', 'phone');
	  }
  }); 

