    pd=document.getElementById('pindown');
    if(pd) pd.style.display='none';
    var submitButton=document.getElementById('submitButton');
    function receditSubmitAction(action){
        form=document.getElementById(editCaption+"_receditform");
        field=document.getElementById("receditAction");
        field.value=action;
        form.submit();
        if(submitButton) submitButton.disabled=true;
    }
    function setTarget(target){
        form=document.getElementById("contextdata");
        form.target=target;
    }
    function setParam(param,value,form){
        if(form){
            frm=findObj(form);
            field=find_on_form(param,frm);
        }else{
            field=document.getElementById(param);
        }
        if(!field) return false;
        field.value=value;
    }

    function DoDrag(){
        //nothing for non-ajax
    }

    function submitEditCancel(val){
        setParam("action",val);
        receditSubmitAction(2);
    }

    function submitEditSave(id,act){
        if(!setParam("action",act)){
            setParam("receditAction",act,editCaption+"_receditform");
        }
        receditSubmitAction(1);
    }    
    
