
function SalesKit2(EmID)	{
	
	var Name = $('namekit').value;  // required
	var Agency = $('agencykit').value;  // required
	var Email = $('emailaddrkit').value;  // required
	var Phone = $('phonekit').value;  // required
	var Reason = 5;
	var Zip = $('zipkit').value;  // required
	var Report = $('Report').value;
	
	var missing = '';
	var numtodo = 0;
	
	if (Name.length == 0) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') Name \n ';
	}
	if (Agency.length == 0) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') Agency \n ';
	}
	if (Email.length == 0) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') Email Address \n ';
	}
	if (Phone.length <= 9) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') Phone with Area Code \n ';
	}
	if (Zip.length <= 4) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') 5-Digit Zipcode \n ';
	}
	missing = 'There are ' + numtodo + ' required item(s) missing: \n ' + missing;
	if (numtodo > 0) {
		alert(missing);
		return;
	}
	
	Name = encodeURIComponent(Name);
	Agency = encodeURIComponent(Agency);
	Phone = encodeURIComponent(Phone);
	Zip = encodeURIComponent(Zip);
	Report = encodeURIComponent(Report);
	
	var url = 'addr_FreeSalesKit2.asp?EmID=' + EmID + '&Name=' + Name + '&Agency=' + Agency + '&Email=' + Email + '&Phone=' + Phone + '&Reason=' + Reason + '&Zip=' + Zip + '&Report=' + Report;
	//var oSubTextbox = $('emailaddrkit');
	//oSubTextbox.value = url;
	//return;
	
	new Ajax.Request(url, 
		{	method: 'get', 
			onSuccess: function(transport)	{
				
				if (transport.responseText == 'Recorded')	{
					alert('Thank you for your request! A representative will contact you shortly.');
					$('Img33').style.visibility = 'hidden';
					return;
				}
			},
			onFailure: function(transport)	{
				alert('Sorry, the server is off-line and failed to record your contact message.  Please call us using the 800# provided on this form.');
				return;
			}
		}
	)
}