﻿GetValueByClassName = function(classname) {
    var listvalue = "";
    $(classname).each(function(i) {
        if ($(this).val() != "") {
            listvalue += $(this).val() + ",";
        }
    }
    );
    return listvalue;
}
GetRadioByName = function(classname) {
    var listvalue = "";
    $("input[name='" + classname + "']").each(function(i) {
        if ($(this).attr('checked') == true) {

            listvalue += "1,";
        }
        else {
            listvalue += "0,";
        }
    }
    );
    return listvalue;
}