
/*
 * Standard CVS Header (Do not remove or edit)
 * $Header$
 * End of Standard CVS Header (Do not remove or edit)
 */

function IsValidEmail(email) {		
    if (email.search(/\@/) == -1) {            			
        return false;
    } else if (email.search(/\./) == -1) {
        return false;
    } else if (email.search(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/) == -1) {
        return false;
    } else {
        return true;
    }
}

function IsValidName(strText) {
    var regExp = /[^A-Za-z\s\.\']/;
    if (strText.search(regExp) != -1) {        
        return false;
    } else if ((strText.search(/[0-9]/) != -1) || (strText.search(/[A-Za-z]/) == -1)) {                
        return false;
    } else {
        return true;
    }
}

function IsValidMessage(strText) {
    var regExp = /[^\w\s\.\,\'\"\!\?\(\)\£\:\;\-\=\+\*\%\&\~\#\@]/;
    if (strText.search(regExp) != -1) {        
        return false;
    } else if (strText.search(/[A-Za-z]/) == -1) {                
        return false;
    } else {
        return true;
    }
}

function IsValidPhone(strText) {
    var regExp = /[^0-9\s\-\(\)\+]/;
    if (strText.length < 8) {
        return false;
    } else if (strText.search(regExp) != -1) {        
        return false;
    } else if (strText.search(/[0-9]/) == -1) {                
        return false;
    } else {
        return true;
    }
}

/*
 * Standard CVS Footer (Do not remove or edit)
 * $Log$
 * End of Standard CVS Footer (Do not remove or edit)
 */