
function SalesKit(EmID)	{
	
	var Name = $('name_kit').value;  // required
	var Agency = $('agency_kit').value;  // required
	var Email = $('emailaddr_kit').value;  // required
	var Phone = $('phone_kit').value;  // required
	var Reason = 5;
	var Street = $('street_kit').value;  // required
	var City = $('city_kit').value;  // required
	var State = $('state_kit').value;  // required
	var Zip = $('zip_kit').value;  // required
	
	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 (Street.length == 0) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') Street \n ';
	}
	if (City.length == 0) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') City \n ';
	}
	if (State.length == 0) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') State \n ';
	}
	if (Zip.length == 0) {
		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);
	Street = encodeURIComponent(Street);
	City = encodeURIComponent(City);
	State = encodeURIComponent(State);
	Zip = encodeURIComponent(Zip);
	
	var url = 'addr_FreeSalesKit.asp?EmID=' + EmID + '&Name=' + Name + '&Agency=' + Agency + '&Email=' + Email + '&Phone=' + Phone + '&Reason=' + Reason + '&Street=' + Street + '&City=' + City + '&State=' + State + '&Zip=' + Zip;
	//var oSubTextbox = $('commentslisted');
	//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;
			}
		}
	)
}
