
function validateForm( )
{
	var objFV = new FormValidator("frmEmailFriend");

	if (!objFV.validate("txtFriendsName", "B", "Please enter your Friend's Name."))
		return false;		
		
	if (!objFV.validate("txtFriendsEmail", "B,E", "Please enter your Friend's valid Email Address."))
		return false;
		
	if (!objFV.validate("txtYourName", "B", "Please enter your Name."))
		return false;		
		
	if (!objFV.validate("txtYourEmail", "B,E", "Please enter your valid Email Address."))
		return false;		
		
	if (!objFV.validate("txtMessage", "B", "Please enter your Message."))
		return false;

	return true;
}

function emailFriend( )
{
	document.getElementById("Email").style.display = "block";
	
	return false;
}


function cancelEmailFriend( )
{
	document.getElementById("Email").style.display = "none";
}


function validateForm2(sForm)
{
	var objFV = new FormValidator(sForm);

	if (!objFV.validate("txtFriendsName", "B", "Please enter your Friend's Name."))
		return false;		
		
	if (!objFV.validate("txtFriendsEmail", "B,E", "Please enter your Friend's valid Email Address."))
		return false;
		
	if (!objFV.validate("txtYourName", "B", "Please enter your Name."))
		return false;		
		
	if (!objFV.validate("txtYourEmail", "B,E", "Please enter your valid Email Address."))
		return false;		
		
	if (!objFV.validate("txtMessage", "B", "Please enter your Message."))
		return false;

	return true;
}

function emailFriend2(iBlockId, iTotalBlocks)
{
	for (var i = 0; i < iTotalBlocks; i ++)
		document.getElementById("Email" + i).style.display = "none";
	
	document.getElementById("Email" + iBlockId).style.display = "block";
	
	return false;
}

function cancelEmailFriend2(iBlockId)
{
	document.getElementById("Email" + iBlockId).style.display = "none";
}