var AnalyticsTrackingSite = "Content/Home Page/";
var AnalyticsTrackingGlobal = "Content/Home Page/";
var AnalyticsTrackingCategory = "Content/Home Page/";

// handle QuickSignup form validation and re-direction
function doSignup() {
	var isOK = true;
	var sQuery;
	var aEM = document.FreeNL.txtEM;
	var aFN = document.FreeNL.txtFN;
	var aLN = document.FreeNL.txtLN;
	if (aFN.value == 'First Name') {
		alert("Please enter first name.");
		isOK = false;
		aFN.focus();
		aFN.select();
	}
	if (isOK) {
		if (aLN.value == 'Last Name') {
			alert("Please enter last name.");
			isOK = false;
			aLN.focus();
			aLN.select();
		}
	}
	if (isOK) {
		isOK = IsEmpty(aFN);
		if (isOK) {
			isOK = IsEmpty(aLN);
			if (isOK) {
				isOK = IsEmail(aEM);
				if (isOK) {
					sQuery = '&FN=' + aFN.value + '&LN=' + aLN.value + '&EM='
							+ aEM.value;
					window.location
							.replace('/sw/swchannel/submit_signup.asp?SWID=1' + sQuery);
				}
			}
		}
	}
}
function doSignuponlyEmail() {
	var isOK = true;
	var sQuery;
	var aEM = document.FreeNL.txtEM;
	if (aEM.value == 'Email Address') {
		alert("Please enter email address.");
		isOK = false;
		aEM.focus();
		aEM.select();
	}
	if (isOK) {
		isOK = IsEmail(aEM);
		if (isOK) {
			sQuery = '&FN=NULL&LN=NULL&EM=' + aEM.value;
			window.location
					.replace('/sw/swchannel/submit_signup.asp?SWID=1' + sQuery);
		}
	}
}