function validateEmailForm(){
	var msg = 'Please complete the following fields:\n\n';
	
	if(document.emailForm.Name.value == '')
		msg += 'Name\n';
		
	if(document.emailForm.Email.value == '')
		msg += 'E-Mail address\n';
	else 
		if(checkEmail(document.emailForm.Email.value)==false)
			msg += 'Invalid E-Mail address\n';
			
    if(document.emailForm.F_Email.value == '')
		msg += 'Friend\'\s E-Mail address\n';
	else 
		if(checkEmail(document.emailForm.F_Email.value)==false)
			msg += 'Invalid Friend\'\s E-Mail address\n';
			
	if(document.emailForm.Message.value == '')
		msg += 'Message\n';
		
	if(msg == 'Please complete the following fields:\n\n'){
		document.emailForm.submit();
		opener.location="../thankyou.asp";
		window.close();
		opener.focus();
	}
	else
		alert(msg);
}