function nav_onClick(formname, action, target, variable, variable2) {
	//alert("GENERIC: nav_onClick('"+formname+"','"+action+"','"+target+"','"+variable+"','"+variable2+"');");
	var formObj = getForm(formname)
	if (formObj != null){
	var okToSubmit = false
	
	if ((action!=null) && (action!="")){
		formObj.actiontype.value = action
	}

	if ((target!=null) && (target!="")){
		formObj.action = target
	}

	switch(action)
	{
// -------------------------------------------- Admin nav_onClicks (BEGIN)
// -------------------------------------------- Admin nav_onClicks (Standard)
	  case 'edit':
			formObj.id.value = variable;
	    break;
	}
	if ("0" == "1")
	{
	    Result = Validate("0"); // don't stop on first error
	    if (Result == "") okToSubmit = true;
	    else alert("The form could not be submitted:" + Result);
	}
	else 
	{
	    okToSubmit = true
	}

	if (okToSubmit) 
		//alert('Form Submitted');
		formObj.submit();
	}
}
