function submit_action(act) {
	document.my_form.action.value=act;
	document.my_form.submit();
}

function submitenter(myfield,e,act) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;

	if (keycode == 13) {
		submit_action(act);
   		return false;
   	}
	else
   		return true;
}



function submit_action2(act) {
	document.my_form2.action2.value=act;
	document.my_form2.submit();
}

function submitenter2(myfield,e,act) {
	var keycode;
	if (window.event) keycode = window.event.keyCode;
	else if (e) keycode = e.which;
	else return true;

	if (keycode == 13) {
		submit_action2(act);
   		return false;
   	}
	else
   		return true;
}


function submit_action4(act) {
	document.my_form4.action4.value=act;
	document.my_form4.submit();
}

function submit_action3(act, val) {
	document.my_form.action.value=act;
	document.my_form.pid.value=val;
	document.my_form.submit();
}
