function genericFormCheck(theForm){
    theInputs = theForm.getElementsByTagName('input');
    theSelects = theForm.getElementsByTagName('select');
    var is_valid = true;
    
    for(var i=0;i<theInputs.length;i++){
        if(theInputs[i].value == '' || theInputs[i].value == '0' || theInputs[i].value == '-1'){
            is_valid = false;
        }
    }

    for(var i=0;i<theSelects.length;i++){
        if(theSelects[i].value == '' || theSelects[i].value == '0' || theSelects[i].value == '-1'){
            is_valid = false;
        }
    }
    
    if(is_valid){
        return true;
    }
    else{
        alert("Please Complete the Form.");
        return false;
    }
    
    return false;
}
