var bolSubscribeSubmitted = false;
function ValidateSubscriber(objForm) {
	var strBaseMessage = new String('Please rectify the following items before submitting the form:\r\n\r\n');
	var strMessage = new String();

	if(!bolSubscribeSubmitted)
	{
		if(objForm.strTitle.value.length == 0)
		{
			strMessage += 'a title is required\r\n';
		}
		if(objForm.FirstName.value.length == 0)
		{
			strMessage += 'a first name is required\r\n';
		}
		if(objForm.LastName.value.length == 0)
		{
			strMessage += 'a last name is required\r\n';
		}
		if(objForm.Country.value.length == 0)
		{
			strMessage += 'a country is required\r\n';	
		}
		if(objForm.PostcodeZip.value.length == 0)
		{
			strMessage += 'a postcode is required\r\n';	
		}
			
		if(objForm.Email.value.length == 0)
		{
			strMessage += 'an email address is required\r\n';	
		}			
		else if(!isEmail(objForm.Email.value))
		{
			strMessage += 'a valid email address is required\r\n';
		}
	} else {
		strMessage += 'please submit this form only once\r\n';
		bolSubscribeSubmitted = true;
	}
	//alert(bolSubscribeSubmitted);
	if(strMessage.length == 0){
	    if(objForm.SubmitButton != null)
	    {
		objForm.SubmitButton.value = 'Please wait';
		objForm.SubmitButton.disabled = true;
		}
		bolSubscribeSubmitted = true;
		return true;
		//return false;
		//objForm.submit();
	}
	else {
		alert(strBaseMessage + strMessage);
		bolSubscribeSubmitted = false;
		return false;
	}

}
