 function ValidateForm()
{
		
	if(document.formEmailToAFriend.txtName.value==0)
	{
		
		DisplayMessage("Please enter your name", document.getElementById('message'), true, 2);				
		document.formEmailToAFriend.txtName.className = 'enqinput MANDATORY';								
		document.formEmailToAFriend.txtName.select();
		document.formEmailToAFriend.txtName.focus();
		return false;
	}
	else
	{
		document.formEmailToAFriend.txtName.className='enqinput';
	}
	
	if(document.formEmailToAFriend.txtEmailId.value==0)
	{
		DisplayMessage("Please enter your Email Id", document.getElementById('message'), true, 2);				
		document.formEmailToAFriend.txtEmailId.className = 'enqinput MANDATORY';								
		document.formEmailToAFriend.txtEmailId.select();
		document.formEmailToAFriend.txtEmailId.focus();
		return false;
	}
	else
	{
		document.formEmailToAFriend.txtEmailId.className='enqinput';
	}
	if(ValidateEmail(document.formEmailToAFriend.txtEmailId.value)==0)
	{				
		
		DisplayMessage("Please enter A valid Email Id", document.getElementById('message'), true, 2);				
		document.formEmailToAFriend.txtEmailId.className = 'enqinput MANDATORY';								
		document.formEmailToAFriend.txtEmailId.select();
		document.formEmailToAFriend.txtEmailId.focus();
		return false;
	}
	else
	{
		document.formEmailToAFriend.txtEmailId.className='enqinput';
	}
	if(document.formEmailToAFriend.txtFriendName.value==0)
	{
		DisplayMessage("Please enter your name", document.getElementById('message'), true, 2);				
		document.formEmailToAFriend.txtFriendName.className = 'enqinput MANDATORY';								
		document.formEmailToAFriend.txtFriendName.select();
		document.formEmailToAFriend.txtFriendName.focus();
		return false;
	}	
	else
	{
		document.formEmailToAFriend.txtFriendName.className='enqinput';
	}
	
	if(document.formEmailToAFriend.txtFriendEmailId.value==0)
	{
	
		DisplayMessage("Please enter your name", document.getElementById('message'), true, 2);				
		document.formEmailToAFriend.txtFriendEmailId.className = 'enqinput MANDATORY';								
		document.formEmailToAFriend.txtFriendEmailId.select();
		document.formEmailToAFriend.txtFriendEmailId.focus();
		return false;
	}
	else
	{
		document.formEmailToAFriend.txtFriendEmailId.className='enqinput';
	}
	if(ValidateEmail(document.formEmailToAFriend.txtFriendEmailId.value)==0)
	{				
		DisplayMessage("Please enter A valid Email Id", document.getElementById('message'), true, 2);
		document.formEmailToAFriend.txtFriendEmailId.className = 'enqinput MANDATORY';								
		document.formEmailToAFriend.txtFriendEmailId.select();
		document.formEmailToAFriend.txtFriendEmailId.focus();
		return false;
	}
	else
	{
		document.formEmailToAFriend.txtFriendEmailId.className='enqinput';
	}
	return true
}
