function submitForm(action) {
document.Form1.action.value=action
document.Form1.submit();
}
function datasubmit(sdata) {
document.Form1.action.value='INFO';
document.Form1.conditionID.value=sdata;
document.Form1.submit();
}
function sendMessage()
	{
    if (document.Form1.firstname.value == "")
		{
		alert("You must enter your firstname. ");
		return false;
		}
	else if (document.Form1.Subject.value == "")
		{
		alert("You must enter a subject. ");
		return false;
		}
	else if (document.Form1.Message.value == "")
		{
		alert("You must enter a message.");
		return false;
		}
	else
		{
		document.Form1.submit();
		}
	}


function readMessagebyID(ID)
{
document.Form1.action.value='READ';
document.Form1.messageID.value=ID;
document.Form1.submit();
}


function replyMessagebySID(ID)
{
document.Form1.action.value='REPLYBYSID';
document.Form1.subjectID.value=ID;
document.Form1.submit();
}
function replyMessagebyMID(ID)
{
document.Form1.action.value='REPLYBYMID';
document.Form1.messageID.value=ID;
document.Form1.submit();
}
