// <!--
    // check browser
    var ns4 = (document.layers)? true : false
    var ie4 = (document.all)? true : false

function formvalidate() 
{
    if (document.coa.name.value == "")
    {
        alert('Please enter your name.');
        document.coa.name.focus(); 
        return (false);
    }   // end if

    if (document.coa.address.value == "" )
    { 
        alert('Please enter your address.');
        document.coa.address.focus();
        return (false);        
    }   // end if

    if (document.coa.email.value == "" )
    {
        alert('Please enter a valid email.');
        document.coa.email.focus();
        return (false);        
    } else {
        var emailid = document.coa.email.value ;  
        var atpos = emailid.indexOf('@') ;  
        var dotpos = emailid.lastIndexOf('.') ;  
        var len = emailid.length - 1 ;
        var emailpath = document.coa.email ;
        if (atpos >=  len || dotpos >= len) 
        {   
            alert('Email address is invalid.') ;  
            emailpath.focus() ;  
            return (false);        
        }       // end if

        if (atpos <= 0 || dotpos == 0 ) 
        {  
            alert('Email address is invalid.') ;  
            emailpath.focus() ;  
            return (false);        
        }       // end if

        if ((atpos == dotpos) || (atpos >= dotpos) || ( atpos == ( dotpos - 1) ) ) 
        {  
            alert('Email address is invalid.') ;  
            emailpath.focus() ;  
            return (false);        
        }       // end if
  
        if (emailid.search("[@.*]") == -1 || emailid.search("[/..*]") == -1 || emailid.search("[.*]")== -1)  
        { 
            alert('Email address is invalid.') ;  
            emailpath.focus() ;  
            return (false);        
        }       // end if

    }  // end else
	
	    if (document.coa.comments.value == "" )
    { 
        alert('Please enter comments.');
        document.coa.comments.focus();
        return (false);        
    }   // end if

//return false;
}  // end formvalidate() 
// -->