//****************************** THREAD ROLL ***********************************

function trackFormThread(form) {
	if(checkValueThread(form)) { 
		insitePostThread(form); 
	}
	//setTimeout(function(){form.submit();},500); // increase this value if it's not tracking properly
}

function checkValueThread(form) {

	// Add additional fields if needed or more advanced validation below here.
	if (form.name.value == "") { return false; }
	
	return true;
}

function insitePostThread(form) {

	//save the action to insite
	url = "http://www.topfloortech.com/insitemetrics/uRMJ/uniformv2.php?actk=11q10mh-4nho5hn6e4";
	//url += "?actk=11q10mh-4nho5hn6e4"; //unique action key
	url += "&imReferrerField=" + escape(document.referrer);
	url += "&imEmailField=" + escape(form.email.value);
	url += "&Company=" + escape(form.company.value);
	url += "&Name=" + escape(form.name.value);
	url += "&Phone=" + escape(form.phone.value);
	url += "&Fax=" + escape(form.fax.value);
	url += "&CityStateZip=" + escape(form.citystatezip.value);
	url += "&thread-size=" + escape(form.thread_size.value);
	url += "&head-model=" + escape(form.head_model.value);
	url += "&thread-form=" + escape(form.thread_form.value);
	url += "&preferred-steel=" + escape(form.preferred_steel.value);
	url += "&dies=" + escape(form.dies.value);
	url += "&pipe-series=" + escape(form.pipe_series.value);
	url += "&part-material=" + escape(form.part_material.value);
	url += "&part-rc=" + escape(form.part_rc.value);
	url += "&diameter=" + escape(form.diameter.value);
	url += "&workface=" + escape(form.workface.value);
	url += "&bore=" + escape(form.bore.value);
	url += "&keyway-width=" + escape(form.keyway_width.value);
	url += "&starts=" + escape(form.starts.value);
	url += "&feed-type=" + escape(form.feed_type.value);
	url += "&features=" + escape(form.features.value);
	url += "&annual-number-taps=" + escape(form.annual_number_taps.value);
	url += "&thread-roll-quantities=" + escape(form.thread_roll_quantities.value);
	url += "&tapping_problems=" + escape(form.tapping_problems.value);
	url += "&Comments=" + escape(form.message.value);

	img = new Image(0,0);
 	img.src = url;
}

//*********************************************************************************

//****************************** THREAD MILL ***********************************

function trackFormSpecial(form) {
	if(checkValueSpecial(form)) { 
		insitePostSpecial(form); 
	}
	//setTimeout(function(){form.submit();},500); // increase this value if it's not tracking properly
}

function checkValueSpecial(form) {

	// Add additional fields if needed or more advanced validation below here.
	if (form.name.value == "") { return false; }
	
	return true;
}

function insitePostSpecial(form) {

	//save the action to insite
	url = "http://www.topfloortech.com/insitemetrics/uRMJ/uniformv2.php?actk=11q10mh-4nho96d2wq";
	//url += "?actk=11q10mh-4nho96d2wq"; //unique action key
	url += "&imReferrerField=" + escape(document.referrer);
	url += "&Company=" + escape(form.company.value);
	url += "&imEmailField=" + escape(form.email.value);
	url += "&Name=" + escape(form.name.value);
	url += "&Phone=" + escape(form.phone.value);
	url += "&Fax=" + escape(form.fax.value);
	url += "&CityStateZip=" + escape(form.citystatezip.value);
	url += "&thread_size=" + escape(form.thread_size.value);
	url += "&hole_diameter=" + escape(form.hole_diameter.value);
	url += "&thread_form=" + escape(form.thread_form.value);
	url += "&preferred_substrate=" + escape(form.preferred_substrate.value);
	url += "&oal=" + escape(form.oal.value);
	url += "&shank_diameter=" + escape(form.shank_diameter.value);
	url += "&cut_length=" + escape(form.cut_length.value);
	url += "&topping_style=" + escape(form.topping_style.value);
	url += "&flutes=" + escape(form.flutes.value);
	url += "&flute_type=" + escape(form.flute_type.value);
	url += "&thread_series=" + escape(form.thread_series.value);
	url += "&part_material=" + escape(form.part_material.value);
	url += "&part_rc=" + escape(form.part_rc.value);
	url += "&diameter=" + escape(form.diameter.value);
	url += "&workface=" + escape(form.workface.value);
	url += "&bore=" + escape(form.bore.value);
	url += "&keyway_width=" + escape(form.keyway_width.value);
	url += "&counterbore=" + escape(form.counterbore.value);
	url += "&features=" + escape(form.features.value);
	url += "&thread_milling_problems=" + escape(form.thread_milling_problems.value);
	url += "&thread_milling_quantities=" + escape(form.thread_milling_quantities.value);
	url += "&thread_mills_used=" + escape(form.thread_mills_used.value);
	url += "&Comments=" + escape(form.message.value);

	img = new Image(0,0);
 	img.src = url;
}

//*********************************************************************************

//****************************** SPECIAL TAP ***********************************

function trackFormTap(form) {
	if(checkValueTap(form)) { 
		insitePostTap(form); 
	}
	//setTimeout(function(){form.submit();},500); // increase this value if it's not tracking properly
}

function checkValueTap(form) {

	// Add additional fields if needed or more advanced validation below here.
	if (form.name.value == "") { return false; }
	
	return true;
}

function insitePostTap(form) {

	//save the action to insite
	url = "http://www.topfloortech.com/insitemetrics/uRMJ/uniformv2.php?actk=11q10mh-4nhoe00mgy";
	//url += "?actk=11q10mh-4nhoe00mgy"; //unique action key
	url += "&imReferrerField=" + escape(document.referrer);
	url += "&imEmailField=" + escape(form.email.value);
	url += "&Company=" + escape(form.company.value);
	url += "&Name=" + escape(form.name.value);
	url += "&Phone=" + escape(form.phone.value);
	url += "&Fax=" + escape(form.fax.value);	
	url += "&CityStateZip=" + escape(form.citystatezip.value);
	url += "&thread_size=" + escape(form.thread_size.value);
	url += "&class_fit=" + escape(form.class_fit.value);
	url += "&thread_form=" + escape(form.thread_form.value);
	url += "&right_left=" + escape(form.right_left.value);
	url += "&pipe_series=" + escape(form.pipe_series.value);
	url += "&projection=" + escape(form.projection.value);
	url += "&part_material=" + escape(form.part_material.value);
	url += "&part_rc=" + escape(form.part_rc.value);
	url += "&hole=" + escape(form.hole.value);
	url += "&chip_direction=" + escape(form.chip_direction.value);
	url += "&drill_bore_size=" + escape(form.drill_bore_size.value);
	url += "&part_print=" + escape(form.part_print.value);
	url += "&features=" + escape(form.features.value);
	url += "&tapping_problems=" + escape(form.tapping_problems.value);
	url += "&recommend_quote=" + escape(form.recommend_quote.value);
	url += "&tap_quantities=" + escape(form.tap_quantities.value);
	url += "&annual_number_taps=" + escape(form.annual_number_taps.value);
	url += "&Comments=" + escape(form.message.value);

	img = new Image(0,0);
 	img.src = url;
}

//*********************************************************************************

//****************************** GAGE ***********************************

function trackFormGage(form) {
	if(checkValueGage(form)) { 
		insitePostGage(form); 
	}
	//setTimeout(function(){form.submit();},500); // increase this value if it's not tracking properly
}

function checkValueGage(form) {

	// Add additional fields if needed or more advanced validation below here.
	if (form.name.value == "") { return false; }
	
	return true;
}

function insitePostGage(form) {

	//save the action to insite
	url = "http://www.topfloortech.com/insitemetrics/uRMJ/uniformv2.php?actk=11q10mh-4nhoj0171i";
	//url += "?actk=11q10mh-4nhoj0171i"; //unique action key
	url += "&imReferrerField=" + escape(document.referrer);
	url += "&imEmailField=" + escape(form.email.value);
	url += "&Company=" + escape(form.company.value);
	url += "&Name=" + escape(form.name.value);
	url += "&Phone=" + escape(form.phone.value);
	url += "&Fax=" + escape(form.fax.value);	
	url += "&CityStateZip=" + escape(form.citystatezip.value);
	url += "&thread_size=" + escape(form.thread_size.value);
	url += "&class_fit=" + escape(form.class_fit.value);
	url += "&thread_form=" + escape(form.thread_form.value);
	url += "&left_right=" + escape(form.left_right.value);
	url += "&plugs=" + escape(form.plugs.value);
	url += "&shank_diameter=" + escape(form.shank_diameter.value);
	url += "&double_single_end=" + escape(form.double_single_end.value);
	url += "&type=" + escape(form.type.value);
	url += "&tolerance=" + escape(form.tolerance.value);
	url += "&thread_size_pitch=" + escape(form.thread_size_pitch.value);
	url += "&class_fit_ring=" + escape(form.class_fit_ring.value);
	url += "&thread_form_ring=" + escape(form.thread_form_ring.value);
	url += "&left_right_ring=" + escape(form.left_right_ring.value);
	url += "&go_no_go=" + escape(form.go_no_go.value);
	url += "&tolerance_ring=" + escape(form.tolerance_ring.value);
	url += "&setting_plug=" + escape(form.setting_plug.value);
	url += "&plain_plug_style=" + escape(form.plain_plug_style.value);
	url += "&plain_plug_type=" + escape(form.plain_plug_type.value);
	url += "&plain_ring_gage=" + escape(form.plain_ring_gage.value);
	url += "&od_id=" + escape(form.od_id.value);
	url += "&tolerance_plain_ring=" + escape(form.tolerance_plain_ring.value);
	url += "&features=" + escape(form.features.value);
	url += "&handles_holders=" + escape(form.handles_holders.value);
	url += "&gage_quantities=" + escape(form.gage_quantities.value);
	url += "&Comments=" + escape(form.message.value);

	img = new Image(0,0);
 	img.src = url;
}

//*********************************************************************************

//****************************** RESHARP SERVICE ***********************************

function trackFormResharp(form) {
	if(checkValueResharp(form)) { 
		insitePostResharp(form); 
	}
	//setTimeout(function(){form.submit();},500); // increase this value if it's not tracking properly
}

function checkValueResharp(form) {

	// Add additional fields if needed or more advanced validation below here.
	if (form.name.value == "") { return false; }
	
	return true;
}

function insitePostResharp(form) {

	//save the action to insite
	url = "http://www.topfloortech.com/insitemetrics/uRMJ/uniformv2.php?actk=11q10mh-4nhok5530k";
	//url += "?actk=11q10mh-4nhok5530k"; //unique action key
	url += "&imReferrerField=" + escape(document.referrer);
	url += "&imEmailField=" + escape(form.email.value);
	url += "&Company=" + escape(form.company.value);
	url += "&Name=" + escape(form.name.value);
	url += "&Phone=" + escape(form.phone.value);
	url += "&Fax=" + escape(form.fax.value);	
	url += "&CityStateZip=" + escape(form.citystatezip.value);
	url += "&Quantity=" + escape(form.quantity.value);

	img = new Image(0,0);
 	img.src = url;
}

//*********************************************************************************

//****************************** QUICK CONTACT ***********************************

function trackFormQuick(form) {
	if(checkValueQuick(form)) { 
		insitePostQuick(form); 
	}
	//setTimeout(function(){form.submit();},500); // increase this value if it's not tracking properly
}

function checkValueQuick(form) {

	// Add additional fields if needed or more advanced validation below here.
	if (form.name.value == "") { return false; }
	
	return true;
}

function insitePostQuick(form) {

	//save the action to insite
	url = "http://www.topfloortech.com/insitemetrics/uRMJ/uniformv2.php?actk=11q10mh-4p2a49eaqx";
	//url += "?actk=11q10mh-4p2a49eaqx"; //unique action key
	url += "&imReferrerField=" + escape(document.referrer);
	url += "&imEmailField=" + escape(form.email.value);
	url += "&Name=" + escape(form.name.value);
	url += "&Phone=" + escape(form.phone.value);
	url += "&Comments=" + escape(form.message.value);

	img = new Image(0,0);
 	img.src = url;
}

//*********************************************************************************

//****************************** CONTACT US ***********************************

function trackFormContact(form) {
	if(checkValueContact(form)) { 
		insitePostContact(form); 
	}
	//setTimeout(function(){form.submit();},500); // increase this value if it's not tracking properly
}

function checkValueContact(form) {

	// Add additional fields if needed or more advanced validation below here.
	if (form.name.value == "") { return false; }
	
	return true;
}

function insitePostContact(form) {

	//save the action to insite
	url = "http://www.topfloortech.com/insitemetrics/uRMJ/uniformv2.php?actk=11q10mh-4p2bfkk9c5";
	//url += "?actk=11q10mh-4p2bfkk9c5"; //unique action key
	url += "&imReferrerField=" + escape(document.referrer);
	url += "&imEmailField=" + escape(form.email.value);
	url += "&Name=" + escape(form.name.value);
	url += "&Phone=" + escape(form.phone.value);
	url += "&Comments=" + escape(form.message.value);

	img = new Image(0,0);
 	img.src = url;
}

//*********************************************************************************
