// submit form based on index in [forms] array
function submitForm(id)
{
	document.forms[id].submit();
}