function func_submit_details()
{
	var b_correct=true;
	var objform = document.frm_tell_friend;
	if(b_correct && (func_trim(objform.txt_name.value)=="" || func_trim(objform.txt_name.value)=="YOUR NAME")) 
	{
		b_correct=false;
		alert("Please give your name");
		objform.txt_name.focus();
	}
	if(b_correct && (func_trim(objform.txt_email.value)=="" || func_trim(objform.txt_email.value)=="YOUR EMAIL")) 
	{
		b_correct=false;
		alert("Please give your email address");
		objform.txt_email.focus();
	}
	
	if(b_correct && !func_is_email(func_trim(objform.txt_email.value)))
	{
		b_correct=false;
		alert("Please give a valid email address");
		objform.txt_email.focus();
	}
	
	if(b_correct && (func_trim(objform.txt_friend_email.value)=="" || func_trim(objform.txt_friend_email.value)=="FRIEND'S EMAIL")) 
	{
		b_correct=false;
		alert("Please give your Friend's email address");
		objform.txt_friend_email.focus();
	}
	if(b_correct && !func_is_email(func_trim(objform.txt_friend_email.value)))
	{
		b_correct=false;
		alert("Please give a valid Friend's email address");
		objform.txt_friend_email.focus();
	}
	if(b_correct && (func_trim(objform.txt_email.value)== func_trim(objform.txt_friend_email.value)))
	{
		b_correct=false;
		alert("Your's and Friend's email cannot be the same");
		objform.txt_friend_email.focus();
	}
	return b_correct;
}

function func_remove_name(str_val)
	{
		if(str_val == "YOUR NAME")
		{
			document.frm_tell_friend.txt_name.value = "";
		}
	}
	function func_remove_email(str_val)
	{
		if(str_val == "YOUR EMAIL")
		{
			document.frm_tell_friend.txt_email.value = "";
		}
	}
	function func_remove_friend_name(str_val)
	{
		if(str_val == "FRIEND'S NAME")
		{
			document.frm_tell_friend.txt_friend_name.value = "";
		}
	}
	function func_remove_friend_email(str_val)
	{
		if(str_val == "FRIEND'S EMAIL")
		{
			document.frm_tell_friend.txt_friend_email.value = "";
		}
	}
	function func_remove_message(str_val)
	{
		if(str_val == "MESSAGE")
		{
			document.frm_tell_friend.txt_message.value = "";
		}
	}
	
	
	function func_show_name()
	{
		if(document.frm_tell_friend.txt_name.value == "")
		{
			document.frm_tell_friend.txt_name.value = "YOUR NAME";
		}
	}
	function func_show_email()
	{
		if(document.frm_tell_friend.txt_email.value == "")
		{
			document.frm_tell_friend.txt_email.value = "YOUR EMAIL";
		}
	}
	function func_show_friend_name()
	{
		if(document.frm_tell_friend.txt_friend_name.value == "")
		{
			document.frm_tell_friend.txt_friend_name.value = "FRIEND'S NAME";
		}
	}
	function func_show_friend_email()
	{
		if(document.frm_tell_friend.txt_friend_email.value == "")
		{
			document.frm_tell_friend.txt_friend_email.value = "FRIEND'S EMAIL";
		}
	}
	function func_show_message()
	{
		if(document.frm_tell_friend.txt_message.value == "")
		{
			document.frm_tell_friend.txt_message.value = "MESSAGE";
		}
	}