function doAction(dest){
   document.forms[0].elements["ACTION"].value=dest;
   document.forms[0].submit();
}

function doAction(dest, command){
   document.forms[0].elements["ACTION"].value=dest;
   document.forms[0].elements["COMMAND"].value=command;
   document.forms[0].submit();
}

function doModeAction(dest, command, mode){
   document.forms[0].elements["ACTION"].value=dest;
   document.forms[0].elements["COMMAND"].value=command;
   document.forms[0].elements["APP_MODE"].value=mode;
   document.forms[0].submit();
}

function doTargetAction(dest, command, target, mode){
   document.forms[0].elements["ACTION"].value=dest;
   document.forms[0].elements["COMMAND"].value=command;
   document.forms[0].elements["APP_MODE"].value=mode;
   document.forms[0].elements["TARGET"].value=target;
   document.forms[0].submit();
}

function doTargetAction(dest, command, target){
   document.forms[0].elements["ACTION"].value=dest;
   document.forms[0].elements["COMMAND"].value=command;
   document.forms[0].elements["TARGET"].value=target;
   document.forms[0].submit();
}

function doTaskAction(task, dest, command, target, mode){
   document.forms[0].action=task;
   document.forms[0].elements["ACTION"].value=dest;
   document.forms[0].elements["COMMAND"].value=command;
   document.forms[0].elements["APP_MODE"].value=mode;
   document.forms[0].elements["TARGET"].value=target;
   document.forms[0].submit();
}


function jumpToPage(action, command, page){
   document.forms[0].elements["ACTION"].value=action;
   document.forms[0].elements["COMMAND"].value=command;
   document.forms[0].elements["SELECTED"].value=page;
   document.forms[0].elements["TARGET"].value=command;
   document.forms[0].submit();
}

function openReport(reportSelElement,baseURL, action){
   url = baseURL+document.forms[0].elements[reportSelElement].options[document.forms[0].elements[reportSelElement].selectedIndex].value+'.'+action;
   window.open(url,'_blank','');
   
}


function changeClass(obj, aClass) {
     obj.className = aClass;
}





