var sQuote='"';

function fCheckEmail(sIn){
    var first=sIn.indexOf("@");
    if( (first==-1)||(sIn.substring(0, first)=='')||(sIn.substring(first+1, sIn.length)=='')){
        return false;
    };
    if(sIn.substring(first+1, sIn.length).indexOf(".")==-1){
        return false;
    };
    return true;
};

function fOnFieldBlur(objField){
    re= new RegExp(sQuote,'gi');
    objField.value=objField.value.replace(re,'');
};

function fValidForm(){
    if (fCheckEmail(document.frmSubscribe.dfBulkEmail.value)==false){
       alert('Invalid email address was entered!');
       return false;
    };
    return true;
};
