<!--
function mjs_jobsearch_validate() {
	//fields that are required
	var keywords = document.forms["searchForm"]["keywords"];
	var city = document.forms["searchForm"]["city"];
	var state = document.forms["searchForm"]["state"];
	var zip = document.forms["searchForm"]["zip"];
	
	//if statements that determine if the fields are empty or not
	if (keywords.value.length > 0) {
		if (city.value.length > 0) {
			if (zip.value.length > 0){
				return true;
			}
			if (state.value != "") {
				return true;
			} else {
				alert("You must enter a state along with your city");
				return false;
			}
		} else if (zip.value.length > 0){
			return true;
		} else {
			alert("You must enter a city and state or zip code");
				return false;
		}
	} else {
		alert("You must enter search keywords");
		return false;
	}
}
-->

function recordData(productVal, productName) {
	
	//
	// Create a fake order ID using the current
	// time and the unique identifier that GA uses to 
	// track this visitor.
	//
	var timeObj     = new Date;
	var unixTimeMs  = timeObj.getTime();
	var unixTime    = parseInt(unixTimeMs / 1000);
	var orderID     = pageTracker._visitCode() + '-' + unixTime;
	
	//
	// Finally, format the data by concatenating the form selections
	// and send the data to GA.
	//
	pageTracker._addTrans(
		orderID,                 	// Order ID
		"",                      	// Affiliation
		productVal,               	// Total
		"0.00",                   	// Tax
		"0.00",                  	// Shipping
		"",                  		// City
		"",                    		// State
		""                      	// Country
	);
	
	pageTracker._addItem(
		orderID,      		// Order ID
		productName,   		// SKU
		productName,   		// Product Name
		"",              	// Category
		productVal,       	// Price
		"1"              	// Quantity
	);
	
	//
	// Send the transaction to GA!
	//
	pageTracker._trackTrans();
		
}