// JavaScript Document
function IsEmpty( text ) {
    if( text.value.length == 0 ) 
        return( true );
    for( var i=0; i<text.value.length; ++i ) {
        var ch = text.value.charAt(i);
        if(ch != ' ' && ch != '\t') 
            return( false );
    }
    return( true );
}
function IsEmail( text ) {
    if( text.value.length == 0 ) 
        return( false );
    if( text.value.indexOf("@") == -1 || text.value.indexOf(".") == -1 )
        return( false );
    return( true );
}
function validate(F){
	 if ( IsEmpty(F.lastname) ) {
        document.getElementById("underlast").innerHTML="You did not enter a name.";
        F.lastname.focus();
		return( false );
    } else {
		document.getElementById("underlast").innerHTML=" ";
	}	
	
		
    return( true );
    
}