// Clear text field if it has default value
function clearText(field) {
	field.style.color = "#000";
	if (field.defaultValue == field.value) {
		field.value = '';
	}
}
	
// If text field is blank, reset it to default value
function resetText(field) {
	field.style.color = "#888";
	if ('' == field.value) {
		field.value = field.defaultValue;
	}
}

// Stop enter key from working
function stopEnter(e) {
	return !(e.keyCode == 13 || e.which == 13);
}

// Track outbound links for Google Analytics
function recordOutboundLink(link, category, action) {
	_gat._getTrackerByName()._trackEvent(category, action);
	setTimeout(window.open(link.href), 100);
}
