function checkregform(){
    jQuery(document).ready(function($){
        var error = "Please enter a value for: ";    
        var allInputs = $(".req");
        var num = 0;
        $(allInputs).each(function(i){
            var value = $(this).attr("value");
            var title = $(this).attr("title");
            if(value == ''){
                error += "\n-" + title;
                num++;
            }           
        });
        if(num > 0){
            alert(error);
            return false;            
        }else{
            $("#reg-form").submit();   
        }
    });
}

