var FS='$F$';
var RS='$R$';
function cboCountry_onchange() 
	{							
	var objForm = eval ('window.document.Registration');
	window.document.Registration.action = "Registration.asp?ChangeCountry=1&LastURL=" + objForm.LastURL.value;
	window.document.Registration.submit();   												
	}

function validateData()
	{
	var objForm = eval ('window.document.Registration');
	if (stringLength (trimValue (objForm.FirstName.value))== 0)
		{
		alert ('Please enter first name.');
		objForm.FirstName.focus ();
		return false;
		}
	if (stringLength (trimValue (objForm.LastName.value))== 0)
		{
		alert ('Please enter last name.');
		objForm.LastName.focus ();
		return false;
		}		
	if (objForm.StateID [objForm.StateID.selectedIndex].value == -1 )
		{
		alert('Please enter your State.');
		objForm.StateID.focus ();
		return false;
		}		
	if (stringLength (trimValue (objForm.Email.value))== 0)
		{
		alert ('Please enter Email.');
		objForm.Email.focus ();
		return false;
		}
	if (!isEmail (objForm.Email.value))
		{
		objForm.Email.focus ();
		return false;
		}
	if (stringLength (trimValue (objForm.UserName.value))== 0)
		{
		alert ('Please enter UserName.');
		objForm.UserName.focus ();
		return false;
		}
	if (stringLength (trimValue (objForm.Password.value))== 0)
		{
		alert("Please enter the password.");
		objForm.Password.focus ();
		return false;
		}
	if (stringLength (trimValue (objForm.ConfirmPassword.value))== 0)		
		{
		alert("Please confirm the password.");
		objForm.ConfirmPassword.focus ();
		return false;
		}
	if (objForm.ConfirmPassword.value != objForm.Password.value)
		{
		alert("Passwords do not match.  Please re-enter the password.");
		objForm.ConfirmPassword.focus ();
		return false;
		}
	return true;

	}
			
	/*if (stringLength (trimValue (objForm.Title.value))== 0)
		{
		alert ('Please enter title.');
		objForm.Title.focus ();
		return false;
		}
	if (objForm.cboType [objForm.cboType.selectedIndex].value == 1 )
		{
		if (stringLength (trimValue (objForm.CompanyName.value))== 0)
			{
			alert ('Please enter company name.');
			objForm.CompanyName.focus ();
			return false;
			}
		}
	if (objForm.OperatingSystem [objForm.OperatingSystem.selectedIndex].value == -1 )
		{
		alert('Please enter your Operating System.');
		objForm.OperatingSystem.focus ();
		return false;
		}	
	if (stringLength (trimValue (objForm.Street1.value))== 0)
		{
		alert ('Please enter street 1.');
		objForm.Street1.focus ();
		return false;
		}
		
	if (stringLength (trimValue (objForm.City.value))== 0)
		{
		alert ('Please enter city.');
		objForm.City.focus ();
		return false;
		}*/

	/*if (objForm.PostalCodeRequired.value == 1 )		
		{
		if (stringLength (trimValue (objForm.Zip.value))== 0)
			{
			alert ('Please enter Postal code.');
			objForm.Zip.focus ();
			return false;
			}
		}
	if (stringLength (trimValue (objForm.Phone1.value))== 0)
		{
		alert ('Please enter Phone 1.');
		objForm.Phone1.focus ();
		return false;
		}

	if (stringLength (trimValue (objForm.Extension1.value)) != 0)
		{
		if (stringLength (trimValue (objForm.Phone1.value))== 0)
			{
			alert ('Please enter Phone 1.');
			objForm.Phone1.focus ();
			return false;
			}
		}
	if (stringLength (trimValue (objForm.Extension2.value)) != 0)
		{
		if (stringLength (trimValue (objForm.Phone2.value))== 0)
			{
			alert ('Please enter Phone 2.');
			objForm.Phone2.focus ();
			return false;
			}
		}*/

