$.i18n.setDictionary(sbLang);
$.ajaxSetup ({  
    cache: false  
});
function error(id, msg) {
    $(id).html(msg);
    $(id).show();
}
function hilite(id, eid, msg) {        
    $(eid).html(msg);
    $(eid).show();
    $(id).focus();
}
function check(id, eid) {
    var v = $(id).val();
    if (v == "") {
        hilite(id, eid, $.i18n._("Oops, we're sorry, this item is required"));
        return false;
    }
    return v;
}
function msg(div, msg) {
    $(div).html(msg)
    .hide()
    .fadeIn(1500, function() {
        $(div);
    });    
}
function newMsg(div, newDiv, msg) {
    $(div).html("<div id='" + newDiv + "'></div>");
    $('#' + newDiv).html(msg)
    .hide()
    .fadeIn(1500, function() {
        $('#' + newDiv);
    });
}
