// JavaScript Document
function checkEmail() 
{
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.Form.email.value)){
return (true)
}
alert("Invalid E-mail Address. Please re-enter.")
document.Form.GetEmail.focus()
return (false)
}

function checkform() 

{
	
if (document.Form.GetFirstName.value == "") 

    {

        alert( "Please enter your first name" );

        document.Form.GetFirstName.focus()

        return false ;

    }
	
if (document.Form.GetSurname.value == "") 

    {

        alert( "Please enter your surname" );

        document.Form.GetSurname.focus()

        return false ;

    }	
	
if (document.Form.GetAddress.value == "") 

    {

        alert( "Please enter your postal address" );

        document.Form.GetAddress.focus()

        return false ;

    }
if (document.Form.GetRecipeName.value == "") 

    {

        alert( "Please enter the recipe name" );

        document.Form.GetRecipeName.focus()

        return false ;

    }
	
if (document.Form.GetPreptime.value == "") 

    {

        alert( "Please enter the preparation time" );

        document.Form.GetPreptime.focus()

        return false ;

    }
	
if (document.Form.GetCooktime.value == "") 

    {

        alert( "Please enter the cooking time" );

        document.Form.GetCooktime.focus()

        return false ;

    }	
	
if (document.Form.GetIngredients.value == "") 

    {

        alert( "Please enter the ingredients" );

        document.Form.GetIngredients.focus()

        return false ;

    }
	
if (document.Form.GetMethod.value == "") 

    {

        alert( "Please enter the method" );

        document.Form.GetMethod.focus()

        return false ;

    }						
	

function checkSubmit()

{
if (!checkform()) return false;

if (!checkEmail()) return false;
}