function imagechange(id,file) {

   document.getElementById(id).src = file;

}

function hidediv(id) {

    if(document.getElementById(id) != null) {

    	document.getElementById(id).style.display = 'none';

    }

}



function showdiv(id) {

    if(document.getElementById(id) != null) {

    	document.getElementById(id).style.display = 'block';

    }

}





function togglediv(id) {

    if(document.getElementById(id).style.display == 'none') {

        document.getElementById(id).style.display = 'block';

    } else {

        document.getElementById(id).style.display = 'none';

    }

}





function FormFriend_Validator(Form)

{

// check to see if the field is blank

	

if (Form.From_Name.value == "")

	{

	alert("Please enter your name");

	Form.From_Name.focus();

	return (false);

	}



with (Form)

{

if ((From_Email.value==null)||(From_Email.value=="")){

		alert("Please Enter Your Email Address")

		From_Email.focus()

		return false

	}

if (validate_email(From_Email,"Your Email Address is Not Valid!")==false)

  {From_Email.focus();return false}

}





if (Form.To_Name.value == "")

	{

	alert("Please enter your friend's name.");

	Form.To_Name.focus();

	return (false);

	}

	

with (Form)

{

if ((To_Email.value==null)||(To_Email.value=="")){

		alert("Please Enter Your Friend's Email Address")

		To_Email.focus()

		return false

	}

if (validate_email(To_Email,"Your Friend's Email Address is Not Valid!")==false)

  {To_Email.focus();return false}

}



}
