// Start Rohit Bug 10070 Jan 31 
// This is added to change the state if the country is not US
	function ChangeState1(CountryName)
	{
		if(CountryName != "US")
			document.Submit.State.selectedIndex = 51
		else
			document.Submit.State.selectedIndex = 30;
	}

// This is added to change the country if the state is not blank
	function ChangeCountry1(StateName)
	{
		if(StateName != "")
		{
			document.Submit.Country.selectedIndex = 206;
			document.Submit.NonUS_State.value = "";
		}
	}
// End Rohit Bug 10070 Jan 31 

// Verify all the required fields on the form
function validateForm( form )
{
	if( validateFirstName(form.First_Name) == false )
		return false

	if( validateLastName(form.Last_Name) == false )
		return false
		
	//start added for client id 7/11/2002	
	var sClient = form.txtClient.value;
	if (isNaN(sClient))
	{
		alert("Please specify numeric value for Client Id");
		return false;
	}
	else if (sClient.indexOf(".") > 0)
	{
		alert("Client Id cannot have decimal values");
		return false;		
	}
	else if (parseInt(sClient) < 0)
	{
		alert("Client Id should be a positive number");
		return false;		
	}	
	//end added for client id 7/11/2002
	
	//if( validateUsaIntPhone(form.Usa_Phone,form.Int_Phone) == false )
		//return false

	//modified as the validateEmail function does not check for a valid email address
	/*if( validateEmail(form.Email_Address) == false )*/
	if(validateEmailAddress(form.Email_Address) == false)
		return false;

	if ( form.Country.value == "US" && form.NonUS_State.value.length > 0 ) 
	{
			alert("Since the selected country is US,\n ignoring State/Province (if not US) entry.");
			form.NonUS_State.value = "";
	}
// Start Rohit Bug 10070 Jan 31 
	// This is added to check if the state is blank and country selected is US///
	if(document.Submit.State.selectedIndex == 51 && document.Submit.Country.selectedIndex == 206)
	{
		alert("Please select the US State.")
		document.Submit.State.focus();
		return false;
	}
	// end of addition ////
// End Rohit Bug 10070 Jan 31 

	return true;
}
