
function changeOkAction(formName) {
	var theform = retrieveForm(formName);
	theform.action.value = theform.okCodeAction.value;
	return true;
}
function doPostBack(formName, action) {
	changeFormAction(formName, action);
	var theform = retrieveForm(formName);
	theform.submit();
	return false;
}
function doPost(formName) {
	var theform = retrieveForm(formName);
	theform.submit();
	return false;
}
function doForeignPostBack(theform, action) {
	changeForeignFormAction(theform, action);
	theform.submit();
	return false;
}
function changeFormAction(formName, action) {
	var theform = retrieveForm(formName);
	theform.action.value = action;
	return true;
}
function changeForeignFormAction(theform, action) {
	theform.action.value = action;
	return true;
}
function changeFormProperty(formName, propertyName, value) {
	var theform = retrieveForm(formName);
	eval(theform.name + "." + propertyName + ".value='" + value + "'");
	return true;
}
function changeForeignFormProperty(theform, propertyName, value) {
	eval("window.foreignForm." + propertyName + ".value='" + value + "'");
	return true;
}
function retrieveFormProperty(formName, propertyName) {
	var theform = retrieveForm(formName);
	var result = eval(theform.name + "." + propertyName + ".value");
	return result;
}
function retrieveForm(formName) {
	var theform;
	if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
		theform = document.forms[formName];
	} else {
		theform = eval("document." + formName);
	}
	return theform;
}

