		function ValidateForm()
		{
			
			if(document.formEmailToAFriend.txtName.value==0)
			{
				DisplayresultContainer("Please enter your name", document.getElementById('message'), true, 2);				
				document.formEmailToAFriend.txtName.className = 'TextSizeBox MANDATORY';								
				document.formEmailToAFriend.txtName.select();
				document.formEmailToAFriend.txtName.focus();
				return false;
			}
			else
			{
				document.formEmailToAFriend.txtName.className='TextBox2';
			}
			
			if(document.formEmailToAFriend.txtEmailId.value==0)
			{
				DisplayresultContainer("Please enter your Email Id", document.getElementById('message'), true, 2);				
				document.formEmailToAFriend.txtEmailId.className = 'TextSizeBox MANDATORY';								
				document.formEmailToAFriend.txtEmailId.select();
				document.formEmailToAFriend.txtEmailId.focus();
				return false;
			}
			else
			{
				document.formEmailToAFriend.txtEmailId.className='TextBox2';
			}
			if(ValidateEmail(document.formEmailToAFriend.txtEmailId.value)==0)
			{				
				
				DisplayresultContainer("Please enter A valid Email Id", document.getElementById('message'), true, 2);				
				document.formEmailToAFriend.txtEmailId.className = 'TextSizeBox MANDATORY';								
				document.formEmailToAFriend.txtEmailId.select();
				document.formEmailToAFriend.txtEmailId.focus();
				return false;
			}
			else
			{
				document.formEmailToAFriend.txtEmailId.className='TextBox2';
			}
			if(document.formEmailToAFriend.txtFriendName.value==0)
			{
				DisplayresultContainer("Please enter your name", document.getElementById('message'), true, 2);				
				document.formEmailToAFriend.txtFriendName.className = 'TextSizeBox MANDATORY';								
				document.formEmailToAFriend.txtFriendName.select();
				document.formEmailToAFriend.txtFriendName.focus();
				return false;
			}	
			else
			{
				document.formEmailToAFriend.txtFriendName.className='TextBox2';
			}
			
			if(document.formEmailToAFriend.txtFriendEmailId.value==0)
			{
			
				DisplayresultContainer("Please enter your name", document.getElementById('message'), true, 2);				
				document.formEmailToAFriend.txtFriendEmailId.className = 'TextSizeBox MANDATORY';								
				document.formEmailToAFriend.txtFriendEmailId.select();
				document.formEmailToAFriend.txtFriendEmailId.focus();
				return false;
			}
			else
			{
				document.formEmailToAFriend.txtFriendEmailId.className='TextBox2';
			}
			if(ValidateEmail(document.formEmailToAFriend.txtFriendEmailId.value)==0)
			{				
				DisplayresultContainer("Please enter A valid Email Id", document.getElementById('message'), true, 2);
				document.formEmailToAFriend.txtFriendEmailId.className = 'TextSizeBox MANDATORY';								
				document.formEmailToAFriend.txtFriendEmailId.select();
				document.formEmailToAFriend.txtFriendEmailId.focus();
				return false;
			}
			else
			{
				document.formEmailToAFriend.txtFriendEmailId.className='TextBox2';
			}
			
			var txtName=document.formEmailToAFriend.txtName.value;
			var txtEmailId=document.formEmailToAFriend.txtEmailId.value;
			var txtFriendName=document.formEmailToAFriend.txtFriendName.value;
			var txtFriendEmailId=document.formEmailToAFriend.txtFriendEmailId.value;
			
			var url="<?php echo $HrefPrefix; ?>php/EmailToFriend.php?txtName=" + txtName +'&txtEmailId=' + txtEmailId +'&txtFriendName=' + txtFriendName+'&txtFriendEmailId=' + txtFriendEmailId;			
			var Ajax = new CAjax();
			Ajax.Execute(url, "", false, document.getElementById('message'));
			return true
		}