function formEdit()
{
	var frmContact = document.forms[0]
	var varName = frmContact.txtName.value
	var err = "0"
	var sendString = "?"

	if (varName == "")
	{
		alert("You must enter your name.")
		frmContact.txtName.focus()
		frmContact.txtName.select()
		err = "1"
	}
	else
	{
		sendString += "Name=" + escape(varName) + "&"
	}

	if (frmContact.txtRequestorEmail == "")
	{
		alert("You must enter your email address.")
		frmContact.txtRequestorEmail.focus()
		frmContact.txtRequestorEmail.select()
		err = "1"
	}
	else
	{
		sendString += "reqemail=" + frmContact.txtRequestorEmail.value + "&"
	}

	if (frmContact.optSubject[frmContact.optSubject.selectedIndex].value == "nothing")
	{
		alert("Please select an item from the 'Subject' list.")
		frmContact.optSubject.focus()
		err = "1"
	}	
	else
	{
		var contactEmail = frmContact.optSubject[frmContact.optSubject.selectedIndex].value
		var contactName = frmContact.optSubject[frmContact.optSubject.selectedIndex].text
		sendString += "emailto=" + contactEmail + "&"
		sendString += "ques=" + escape(contactName) + "&"
	}

	if (frmContact.txtPolicy.value != "")
	{
		sendString += "policy=" + escape(frmContact.txtPolicy.value) + "&"
	}

	var varResponseType
	if (frmContact.rdoResponse[0].checked)
	{
		varResponseType = frmContact.rdoResponse[0].value
	}
	else
	if (frmContact.rdoResponse[1].checked)
	{
		varResponseType = frmContact.rdoResponse[1].value
	}
	else
	if (frmContact.rdoResponse[2].checked)
	{
		varResponseType = frmContact.rdoResponse[2].value
	}
	else
	if (frmContact.rdoResponse[3].checked)
	{
		varResponseType = frmContact.rdoResponse[3].value
	}

	if (varResponseType == "email")
	{
		if (frmContact.txtEmail.value == "")
		{
			alert("You requested a response by email, but did not provide an email address.")
			frmContact.txtEmail.focus()
			frmContact.txtEmail.select()
			err = "1"
		}
		else
		{
			sendString += "replytype=" + varResponseType + "&"
			sendString += "replyemail=" + frmContact.txtEmail.value + "&"
		}
	}

	if (varResponseType == "postalmail")
	{
		if (frmContact.txtAddress.value == "")
		{
			alert("You requested a response by postal mail, but did not provide a mailing address.")
			frmContact.txtAddress.focus()
			frmContact.txtAddress.select()
			err = "1"
		}
		else
		{
			sendString += "replytype=" + varResponseType + "&"
			sendString += "replyaddr=" + escape(frmContact.txtAddress.value) + "&"
		}
	}

	if (varResponseType == "phone")
	{
		if (frmContact.txtPhone.value == "")
		{
			alert("You requested a response by telephone, but did not provide a telephone number.")
			frmContact.txtPhone.focus()
			frmContact.txtPhone.select()
			err = "1"
		}
		else
		{
			sendString += "replytype=" + varResponseType + "&"
			sendString += "replyphone=" + escape(frmContact.txtPhone.value) + "&"
			sendString += "replytime=" + escape(frmContact.txtTime.value) + "&"
		}
	}

	if (varResponseType == "noresponse")
	{
		sendString += "replytype=" + varResponseType + "&"
	}

	if (frmContact.txtComment.value == "")
	{
		alert("You did not enter a question or comment.")
		frmContact.txtComment.focus()
		frmContact.txtComment.select()
		err = "1"
	}
	else
	{
		sendString += "msg=" + escape(frmContact.txtComment.value)
//		alert("http://www.gilicolink.com/contactmail.asp" + sendString)
	}

// if there are no errors, open the contactmail page on theguarantygroup.com server
	if (err == "0")
	{
	window.location.href = "http://www.gilicolink.com/contactmail.asp" + sendString
	}
}
