function AJAXResource_callback(res)
{
    if (res!=null&&res.value!=null)
    {
        eval(res.value);
    }
    else
    {
        alert("ops!! there's some error in contacting the server.\n\n" + res.error.Message + "\n\n Please check and resubmit your request.");
    }
}

function jsToggleGeneric2Tabs(strPrefix, strSuffix, strTrueTab, strFalseTab, bTabOn)
{
    if (strPrefix==undefined) strPrefix="";
    if (strSuffix==undefined) strSuffix="";
    //alert(strPrefix + strTrueTab + strSuffix);
    if (bTabOn==true)
    {
        if (strTrueTab!="")
            document.getElementById(strPrefix + strTrueTab + strSuffix).style.display="inline";
        if (strFalseTab!="")
            document.getElementById(strPrefix + strFalseTab + strSuffix).style.display="none";
    }
    else
    {
        if (strTrueTab!="")
            document.getElementById(strPrefix + strTrueTab + strSuffix).style.display="none";
        if (strFalseTab!="")
            document.getElementById(strPrefix + strFalseTab + strSuffix).style.display="inline";
    }
}