
function doSignup()
{
    debugger;
	var isOK=true;
	var sQuery;
	var aEM=document.FreeNL.txtEM;
	var aFN=document.FreeNL.txtFN;
	var aLN=document.FreeNL.txtLN;
	
	var rootFolderVar = rootFolderValue;
    
	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)
				{
				    var returnUrl = location.href;
				    var currHost = location.host;
					returnUrl = returnUrl.replace(currHost, "");
					returnUrl = returnUrl.replace("http://", "");
					
					sQuery = '?FN=' + aFN.value + '&LN=' + aLN.value + '&EM=' + aEM.value + '&ReturnUrl=' + returnUrl;
					
					var newLocation = rootFolderVar + "/swchannel/submit_signup.asp" + sQuery;
					
					window.location.replace(newLocation);
				}
			}
		}
	}
}
