<!--
/*function showSearchCases(planId, plan)
{
    objSearchFormHttp = new HttpRequest();
    objSearchFormHttp.urlPath = ctxPath + "/search.jsp";
    objSearchFormHttp.createRequest();
    iplanId=planId;
    planName = plan;
    objSearchFormHttp.sendRequest();
}

function showObjNums()
{
    objObjectNumHttp = new HttpRequest();
    objObjectNumHttp.urlPath = document.frm_searchcases.action;
    objObjectNumHttp.methodName = "POST";
    data = "__eventRaiser=objectnumbers&lst_object_type=" + document.frm_searchcases.lst_object_type[document.frm_searchcases.lst_object_type.selectedIndex].value;
    objObjectNumHttp.createRequest();
    objObjectNumHttp.sendRequest(data);
}

function showModules()
{
    objModuleHttp = new HttpRequest();
    objModuleHttp.urlPath = document.frm_searchcases.action;
    objModuleHttp.methodName = "POST";
    document.frm_searchcases.elements["__eventRaiser"].value="modules";
    data = getFormData(document.frm_searchcases);
    data += "&hid_plan_id=" + iplanId;
    objModuleHttp.createRequest();
    objModuleHttp.sendRequest(data);
}*/

function __doAjaxRequest(frm,eventRaiser)
{
    if(!validateForm(frm)) return false;
    objAjxHttp = new HttpRequest();
//    objAjxHttp.urlPath=frm.action!=""?frm.action:window.location.href;
    objAjxHttp.urlPath = getPostUrl(frm);
    objAjxHttp.methodName="POST";
//    frm.elements["__eventRaiser"].value=eventRaiser;
    data=getFormData(frm);
    objAjxHttp.createRequest();
    objAjxHttp.sendRequest(data + "&__eventRaiser=" + escape(eventRaiser) +"&ajxreq=true");
    return false;
}

function getPostUrl(frm)
{
    var strUrl = "";
    if(frm.action=="")
    {
        var tempUrl = window.location.href;
        tempUrl = tempUrl.substring(tempUrl.indexOf(window.location.protocol) + window.location.protocol.length);
        tempUrl = tempUrl.substring(tempUrl.indexOf(window.location.hostname) + window.location.hostname.length);
        if(window.location.port!="")
            tempUrl = tempUrl.substring(tempUrl.indexOf(window.location.port) + window.location.port.length);
        strUrl = tempUrl;
    }else
    {
        strUrl = frm.action;
    }
    return strUrl;
}

-->