﻿/// <reference path="jquery-1.4.2.js"/>

function ClearFormElements(parentElement) {
    $(parentElement).find(':input').each(function () {
        switch (this.type) {
            case 'password':
            case 'select-multiple':
            case 'select-one':
            case 'text':
            case 'textarea':
                $(this).val('');
                break;
            case 'checkbox':
        }
    });
}

function MasterIsUSFormat() {
    var masterIsUSFormat = $("#hdnMasterIsUSDateFormat").val();
    if (masterIsUSFormat == "1")
        return true;
    else
        return false;
}

function GetMasterDateFormat() {
    return $("#hdnMasterDateFormat").val();
}
