function submitForm() {
	document.getElementById("MailForm").command.value = "submit";
	document.getElementById("MailForm").submit();
	return true;
}

function resetForm() {
	document.getElementById("MailForm").command.value = "init";
	document.getElementById("MailForm").submit();
	return true;
} 

function stepForward(validate) {
	document.getElementById("MailForm").validateFields.value = validate;
	document.getElementById("MailForm").command.value = "forward";
	document.getElementById("MailForm").submit();
}

function stepBack(validate) {
	document.getElementById("MailForm").validateFields.value = false;
	document.getElementById("MailForm").command.value = "back";
	document.getElementById("MailForm").submit();
}
