<!--//
function book_form_val(theForm){
	//var reqfields = new Array("req_Contact_Name","req_Contact_Title","req_Contact_Company","req_Contact_Phone","req_Contact_Email","req_Event_Location","req_Event_Date","req_Talent_Start","req_Talent_Duration","req_pac");

	//for (i = 0; i < reqfields.length; i++){
	//	document.getElementById(reqfields[i]).style.color = "#FF0000";
  //}

	if(theForm.Contact_Name.value == "" || theForm.Contact_Name.value.length < 2){
		alert("Please input your full name.");
		theForm.Contact_Name.focus();
		return false;
	}
	if (theForm.Contact_Title.value == "" || theForm.Contact_Title.value.length < 2){
		alert("Please enter your position title.");
		theForm.Contact_Title.focus();
		return false;
	}
	if (theForm.Contact_Organization.value == "" || theForm.Contact_Organization.value.length < 2){
		alert("Please enter your Company or Organization.");
		theForm.Contact_Organization.focus();
		return false;
	}
	if(theForm.Contact_Phone.value == "" || theForm.Contact_Phone.value.length < 10){
		alert("Please enter your phone number.\r\n\r\ni.e. Area code, Prefix, and Suffix");
		theForm.Contact_Phone.focus();
		return false;
	}
	if (theForm.Contact_Email.value == "" || theForm.Contact_Email.value.indexOf('@',1)== -1 || theForm.Contact_Email.value.indexOf('.',2)==-1){
		alert("Please fill in your email address.");
		theForm.Contact_Email.focus();
		return false;
	}
	if(theForm.Audience_Size.value == "" || theForm.Audience_Size.value.length < 1){
		alert("Please enter the size of the Audience.");
		theForm.Audience_Size.focus();
		return false;
	}
	if(theForm.Budget_Min.selectedIndex == 0){
		alert("Please complete the sample budget range\r\nso we can send you the appropriate talent names.");
		theForm.Budget_Min.focus();
		return false;
	}
	if(theForm.Budget_Max.selectedIndex == 0){
		alert("Please complete the sample budget range\r\nso we can send you the appropriate talent names.");
		theForm.Budget_Max.focus();
		return false;
	}	
	if(theForm.Event_Date_1.value == "" || theForm.Event_Date_1.value.length < 2){
		alert("Please enter the Event Date.");
		theForm.Event_Date_1.focus();
		return false;
	}
	if(theForm.Venue_Capacity.value == "" || theForm.Venue_Capacity.value.length < 2){
		alert("Please enter the Venue Capacity.");
		theForm.Venue_Capacity.focus();
		return false;
	}	
	if(theForm.Event_Name.value == "" || theForm.Event_Name.value.length < 5){
		alert("Please enter the Event Name.");
		theForm.Event_Name.focus();
		return false;
	}	
	if(theForm.Event_Location.value == "" || theForm.Event_Location.value.length < 5){
		alert("Please enter the Event Location.");
		theForm.Event_Location.focus();
		return false;
	}


	if(theForm.pac.value == "" || theForm.pac.value.length < 2){
		alert("Please enter the Submission Authorization code.");
		theForm.pac.focus();
		return false;
	}

	return true;
}

function IsNumeric(strString){
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++){
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1){
         blnResult = false;
      }
   }
   return blnResult;
}
//-->
