	var preadjChildWin;
	var emailPattern = /^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z]*[-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$/;

	var passwordPattern = /^[0-9a-zA-Z]{6,20}$/;
	//The purpose of the following vars is to prevent showing the first & last name notification messages more than once:
	var firstNameFieldMessageShown=false;
	var lastNameFieldMessageShown=false;
	
	function validateWillisEmail()
	{
		var WillisErrorMessage	=	document.getElementById("WillisErrorMessage");
		var usernameField = username = document.getElementById("userNameField");
		var username = usernameField.value;
		var emailPattern = /^([a-zA-Z0-9._-])+@(willis)+\.(com)$/; 		
		var testResult = emailPattern.test(username); 
		if (testResult == true)
		{
			WillisErrorMessage.style.color="#000099";
			return true;		
		}
		else
		{			
			WillisErrorMessage.style.color = "red";
			usernameField.focus();
			return false;
		}
	}
	
	function setCountry(country)
	{
		document.location = "newMemberInfo.asp?country=" + country;
	}
	
	function SSAutoTab(input, Gnext, len, e)
	{
		if(input.value.length >= len )
		{
			if (eval("document.all."+Gnext))
			{
				eval("document.all."+Gnext).focus();
			}
			
		}
	}
	
	function showLicenseStatePicker()
	{
		var showlicensestateTR = document.getElementById("showlicensestate");
		showlicensestateTR.style.display = "";
		return;
	}
	
	function hideLicenseStatePicker()
	{
		var showlicensestateTR = document.getElementById("showlicensestate");
		showlicensestateTR.style.display = "none";
		return;
	}

	function checkUserNameAvailability(control)
	{
		  xmlHttp=GetXmlHttpObject();
		  if (xmlHttp==null)
		  {
		  	return; 	
		  } 
		  var customerID = control.value;
		  var url	=	"../common/checkUserNameAvailability.asp?CustomerID=" + customerID;  
		  url		=	url	+	"&sid="+Math.random();
		  xmlHttp.onreadystatechange=stateChanged;
		  xmlHttp.open("GET",url,false);
		  xmlHttp.send(null);	
		  var result	=	xmlHttp.responseText;
		  var errorBoxID = control.id + "ErrorBox";
		  var errorBox = document.getElementById(errorBoxID);
		  if(result=="failure")
		  {			  
  			  errorBox.innerHTML = "* The username you selected is not available, please try again.";
			  control.focus();
			  errorBox.style.display = "";
		  }
		  else if(result=="invalid")
		  {
			  errorBox.innerHTML = "* The username you selected is not valid, please try again.";
			  control.focus();
			  errorBox.style.display = "";
		  }
		  else
		  {
   			  errorBox.innerHTML = "";
			  errorBox.style.display = "none";
		  }
		  result = (result=="success");
		  hideUserNameAjaxLoader();
		  return result;
	}
	
	function checkEmailAvailability(control)
	{	
		var result;
		xmlHttp=GetXmlHttpObject();
		  if (xmlHttp==null)
		  {
		  	return; 	
		  } 
		  var email = control.value;		  
		  if(isEmail(email))
		  {
			  var url	=	"../common/checkEmailAddressAvailability.asp?email=" + email;  
			  url		=	url	+	"&sid="+Math.random();
			  xmlHttp.onreadystatechange=stateChanged;
			  xmlHttp.open("GET",url,false);
			  xmlHttp.send(null);	
			  result	=	xmlHttp.responseText;
		  }
		  else
		  {
			  result = "empty";
		  }
		  var errorBoxID = control.id + "ErrorBox";
		  var errorBox = document.getElementById(errorBoxID);
		  if(result=="failure")
		  {			  
		      var hostName = window.location.hostname;
  			  errorBox.innerHTML = "* You already have an account with us. If you need help logging in, click <a href='http://"+hostName+"/RetrieveMemberInfo.asp' class='errorTitleSmallYellowBG'>here</a>.";
  			  //control.focus();
			  errorBox.style.display = "";
		  }
		  else if(result =="empty")
		  {
			  errorBox.innerHTML = "* Please enter a valid email address.";
			  control.focus();
			  errorBox.style.display = "";
		  }
		  else
		  {
   			  errorBox.innerHTML = "";
			  errorBox.style.display = "none";
		  }
		  hideEmailAjaxLoader();
		  return (result=="success");
	}

function ValidateNewMemberInfo()
{
	var result = false;
	var firstName,middleInitial,lastName,address1,address2,city,state,zip,landLinePhone,cellPhone,licenseAccount,email,employer,referrerEmail,userName,password1,password2;
	var country = document.getElementById("country").value;
	firstName 			= document.getElementById("first");
	middleInitial 	= document.getElementById("middle");
	lastName			= document.getElementById("last");
	address1			=	document.getElementById("address1");
	address2			=	document.getElementById("address2");
	city						=	document.getElementById("city");
	state					=	document.getElementById("state");
	zip 						=	document.getElementById("zip");
	email 					= document.getElementById("emailAddress");
	employer 			= document.getElementById("employer");
	referrerEmail 	= document.getElementById("referrerEmail");
	userName 		= document.getElementById("userNameField");
	password1 		= document.getElementById("password1");
	password2 		= document.getElementById("password2");
	result = validateName(firstName);
	result = result && validateOnceCharacterOptional(middleInitial);
	result = result && (validateName(lastName));
	result = result && (validateAddress(address1));
	result = result && (validateAddressOptional(address2));	

	if(country=="US")
	{
		result = result && validateZip(zip);
		//validate  phone number fields:
		result = result && (validateName(city));	
		result = result && (validateName(state));
		result = result && validateUSPhoneNumbers();
		result = result && validateUSMobilePhoneNumber();
		result = result && validateLicensingInformationForUS();
	}
	else
	{	
		result = result && validateName(zip);
		result = result && (validateName(city));
		result = result && (validateName(state));
		result = result && validateInternationalPhoneNumbers();
		result = result && validateInternationalMobilePhoneNumbers();
		result = result && validateLicensingInformationForNonUS();
	}
	
	result = result && validateEmail(email);
	result = result && checkEmailAvailability(email);
	result = result && validateName(employer);
	result = result && validateEmailOptional(referrerEmail);
	result = result && checkUserNameAvailability(userName);
	result = result && validatePasswordFields(password1,password2);
	return result;
}

function validatePasswordFields(password1Control,password2Control)
{	
	var password1 = password1Control.value;
	var password2 = password2Control.value;

	var result = isPassword(password1) && isPassword(password2) ;
	var errorBox2 = document.getElementById(password2Control.id+"ErrorBox");
	var errorBox1 = document.getElementById(password1Control.id+"ErrorBox");

	if((password1=="") ||(password2==""))
	{
		errorBox2.style.display="";
		if(password1=="")
		{
			password1Control.focus();
		}
		else if(password2=="")
		{
			password2Control.focus();
		}
		errorBox2.innerHTML="Both the password and confirmation password fields are required. Please try again.";
		return result;
	}

	if(result)
	{
		// make sure that both password and retype password are identical
		result = (password1 == password2);
	}
	else
	{
		errorBox2.style.display="";
		errorBox2.innerHTML="Either the password  or confirmation password you entered was invalid. Please try again with digits and alphabetical characters only!.";
		//errorBox1.className = "errorTitleSmallYellowBG";
		return result;
	}
	if(!result)
	{
		//show the error box for both password1 and password2, switch class of password1 error box to error class:
		errorBox2.style.display="";
		password1Control.focus();
		errorBox2.innerHTML="Please make sure you re-enter the same password in the confirmation field.";
	}
	else
	{
		errorBox1.style.display="none";		
		errorBox2.style.display="none";		
	}		
	return result;	
}

function isPassword(elementValue)
{
	return  passwordPattern.test(elementValue); 
}

function validateEmail(control)
{
	var value = control.value;
	var result = isEmail(value);
	var errorBox = document.getElementById(control.id+"ErrorBox");
	if(result)
	{
		errorBox.style.display="none";
		errorBox.innerHTML = "";
	}
	else
	{
			errorBox.innerHTML = "Email entered is not valid!";
			errorBox.style.display="";
			control.focus();
	}
	return result;
}

function validateEmailOptional(control)
{
	var value = control.value;
	var result = isEmailOptional(value);
	var errorBox = document.getElementById(control.id+"ErrorBox");
	if(result)
	{
		errorBox.style.display="none";
		errorBox.innerHTML = "";
	}
	else
	{
			errorBox.innerHTML = "Email entered is not valid!";
			errorBox.style.display="";
			control.focus();
	}
	return result;
}

function validateUSPhoneNumbers()
{
		var area,prefix,suffix,ext,Marea,Mprefix,Msuffix,areaBox;
		areaBox = document.getElementById("area");
		area 	= areaBox.value;
		prefix	= document.getElementById("prefix").value;
		suffix 	= document.getElementById("suffix").value;
		ext 		= document.getElementById("ext").value;		
		result = isPhoneNumber(area) && isPhoneNumber(prefix) && isPhoneNumber(suffix);
		if(ext != "")
		{
			result = result 	&& isPhoneNumber(ext);
		}
		result = result && isUSPhoneNumber(area+prefix+suffix);
		var errorBox = document.getElementById("USPhoneNumberErrorBox");
		if(result != true)
		{
			errorBox.innerHTML = "* Please use only digits for landline phone number!";
			areaBox.focus();
			errorBox.style.display="";
		}
		else
		{
			errorBox.innerHTML = "";
			errorBox.style.display="none";						
		}
		return result;
}

function validateUSMobilePhoneNumber()
{ 
		var result = true;
		//validate Mobile phone Number Fields:
		MareaBox 	= document.getElementById("Marea");
		Marea 			= MareaBox.value;
		Mprefix	= document.getElementById("Mprefix").value;
		Msuffix 	= document.getElementById("Msuffix").value;		
		if ((Marea != "") || (Mprefix != "") || (Msuffix!=""))
		{
			result = result && isPhoneNumber(Marea) && isPhoneNumber(Mprefix) && isPhoneNumber(Msuffix);
			result = result && isUSPhoneNumber(Marea+Mprefix+Msuffix);
		}
		var mErrorBox = document.getElementById("USMobilePhoneNumberErrorBox");
		if(result != true)
		{
			mErrorBox.innerHTML = "* Please use only digits for cell phone number!";
			MareaBox.focus();
			mErrorBox.style.display="";
		}
		else
		{
			mErrorBox.innerHTML = "";
			mErrorBox.style.display="none";						
		}	
		return result;
}
	
	
function validateInternationalPhoneNumbers()
{
		var countryCode,phoneNumber,countryCodeBox;
		countryCodeBox = document.getElementById("countryCode");
		countryCode = document.getElementById("countryCode").value;
		phoneNumber = document.getElementById("wholePhoneNum").value;
		result = isPhoneNumber(countryCode) && isPhoneNumber(phoneNumber);
		var errorBox = document.getElementById("internationalPhoneNumberErrorBox");
		if(result != true)
		{
			errorBox.innerHTML = "* Please use only digits for landline phone number!";
			countryCodeBox.focus();
			errorBox.style.display="";
		}
		else
		{
			errorBox.innerHTML = "";
			errorBox.style.display="none";						
		}
		return result;
}

function validateInternationalMobilePhoneNumbers()
{
		var countryCode,phoneNumber,result;
		countryCodeBox = document.getElementById("McountryCode");
		countryCode = document.getElementById("McountryCode").value;
		phoneNumber = document.getElementById("MwholePhoneNum").value;				
		result = (isPhoneNumber(countryCode) && isPhoneNumber(phoneNumber))||((countryCode=="" ) && (phoneNumber==""));
		var errorBox = document.getElementById("internationalMobilePhoneNumberErrorBox");
		if(result != true)
		{
			errorBox.innerHTML = "* Please use only digits for mobile phone number!";
			countryCodeBox.focus();
			errorBox.style.display="";
		}
		else
		{
			errorBox.innerHTML = "";
			errorBox.style.display="none";						
		}
		return result;
}


function isEmail(elementValue)
{      
   return emailPattern.test(elementValue); 
}


function isEmailOptional(elementValue)
{      
   return (emailPattern.test(elementValue)||elementValue==""); 
}

/*
	Licensing accounts functions
*/
// Adjuster Area functions:
function toggleAdjusterArea(checkBox)
{
	var showArea = checkBox.checked;
	var	adjusterTypeTR = document.getElementById("adjusterTypeTR");
	var adjusterSubTypeArea = document.getElementById("adjusterSubTypeArea");
	if (showArea)
	{
		adjusterTypeTR.style.display="";
	}
	else
	{		
		adjusterTypeTR.style.display="none";
		adjusterSubTypeArea.style.display = "none";
		//Uncheck both Adjuster states and sublicense types:
		uncheckAdjusterStateCheckboxes();
	}
}


function toggleadjusterSubTypeArea(checkBox)
{
	var adjusterSubTypeArea = document.getElementById("adjusterSubTypeArea");
	if(checkBox.checked)
	{
		adjusterSubTypeArea.style.display = "";
	}
	else
	{
		adjusterSubTypeArea.style.display = "none";
		uncheckSubadjusterCheckboxes();
	}
	return;
}

function toggleInsurlicStateLine(checkBox)
{
	var InsurlicStateLine = document.getElementById("InsurlicStateLine");
	if(checkBox.checked)
	{
		InsurlicStateLine.style.display ="";
	}
	else
	{
		InsurlicStateLine.style.display="none";
	}
}

function uncheckNoCreditCB(checkBox)
{
	if(checkBox.checked)
	{
		var noCreditCB = document.getElementById("NoCreditCB");
		noCreditCB.checked=false;
	}
	else
	{
		//Do nothing
	}
}

function toggleLicenseTypesForNoCredit(NoCreditCB)
{
	if(NoCreditCB.checked)
	{
		//uncheck Adjuster CB
		var adjusterLicenseCB = document.getElementById("adjusterLicenseTypeCheckBox");
		if(adjusterLicenseCB.checked)
		{
			adjusterLicenseCB.click();
		}
		//uncheck insurance CB
		var insuranceLicenseCB = document.getElementById("insuranceLicenseTypeCheckBox");
		if(insuranceLicenseCB.checked)
		{
			insuranceLicenseCB.click();
		}
		//uncheck all other license account checkboxes, except No credit:
		var CBArray = constructDesignationArray();
		for(var i=0;i<CBArray.length;i++)
		{
			var myCB = CBArray[i];
			if(myCB.name!="NoCreditCB")
			{
				myCB.checked=false;
			}
		}
	}
	else
	{
		//Do nothing, we don't know what they want yet
	}
}

function uncheckSubadjusterCheckboxes()
{
	var mySubAdjusterCheckBoxes = document.getElementsByName("adjusterSubLicenseCheckBox");
	for(var i=0;  i< mySubAdjusterCheckBoxes.length;i++)
	{
		mySubAdjusterCheckBoxes.item(i).checked = false;	
	}
	return;
}

function uncheckAdjusterStateCheckboxes()
{
	var 	adjusterStateCheckBoxes = document.getElementsByName("adjusterStateCheckBox");
	for(var i=0;  i< adjusterStateCheckBoxes.length;i++)
	{
		adjusterStateCheckBoxes.item(i).checked = false;	
	}
	uncheckSubadjusterCheckboxes();
	return;
}

// Validation functions for all the licensing details:

function validateLicensingInformationForUS()
{
	//First, did the user arrive from SILA landing page?
	var 		SILALandingPageCB = document.getElementById("SILALandingPage");
	if (SILALandingPageCB.value == "on")
	{
		return true;
	}
	// Otherwise, we need to get all the checkboxes for the license types we have and go through them one by one:
	var result = false;
	var licenseAccountChecked = false;
	var	adjusterCB = document.getElementById("adjusterLicenseTypeCheckBox");
	var insuranceCB = document.getElementById("insuranceLicenseTypeCheckBox");
	var licenseInformationAreaErrorBox = document.getElementById("licenseInformationAreaErrorBox");
	licenseInformationAreaErrorBox.style.display="none";
	licenseInformationAreaErrorBox.value = "";
	if(adjusterCB.checked)
	{
		licenseAccountChecked = true;
		//1- validate Adjuster license fields:
		result = validateAdjusterLicenseStates();
	}
	else
	{
		result = true;
	}
	if(insuranceCB.checked)
	{
		licenseAccountChecked = true;
		//2- validate Insurance CE(producer) fields:
		result = result && validateInsuranceLicenseStates();		
	}
	 // 3- Designations\ no credits area:
	licenseAccountChecked = licenseAccountChecked || validateDesignationsNoCreditArea();
	if(!licenseAccountChecked)
	{		
		//No license account has been chosen from the main options: adjuster, producer or designations 
		licenseInformationAreaErrorBox.innerHTML = "Please select at least one license account from the options above.";
		licenseInformationAreaErrorBox.style.display ="";
	}
	else if (!result && licenseAccountChecked)
	{	
		// A license has been chosen but its required fields have not passed:
		licenseInformationAreaErrorBox.style.display ="";
	}
	else if(result && licenseAccountChecked)
	{
		//everything checked out
		licenseInformationAreaErrorBox.style.display = "none";
		licenseInformationAreaErrorBox.innerHTML = "";
	}
	result = result && licenseAccountChecked;
	var licenseAccountPickerTitle = document.getElementById("licenseAccountPickerTitle");	
	if(result)
	{
		//change licenseAccountPickerTitle class to normal
		licenseAccountPickerTitle.className="";
	}
	else
	{
		licenseAccountPickerTitle.className="errorTitleSmallYellowBG";
	}
	return result;
}

function validateInsuranceLicenseStates()
{
	var sameLicensestateCBs = document.getElementsByName("sameLicensestate");
	var licenseInformationAreaErrorBox = document.getElementById("licenseInformationAreaErrorBox");
	var	result = false;
	for(var i=0;i<sameLicensestateCBs.length;i++)
	{
		if(sameLicensestateCBs.item(i).value=="yes" && sameLicensestateCBs.item(i).checked)
		{
			licenseInformationAreaErrorBox.style.display = "none";
			return true;
		}
		else
		{
			//get licens state control and see if it has value and validate it:
			licenseState = document.getElementById("licenseState").value;
			result = (!licenseState=="");
		}
	}
	if(!result)
	{
	licenseInformationAreaErrorBox.innerHTML = "We need to know what state to report your producer CE credits to.";
	licenseInformationAreaErrorBox.style.display = "";
	}
	return result;
}

function validateAdjusterLicenseStates()
{
	// Get the TR where the state checkboxes for adjuster states are located:
	var adjCheckBoxes = document.getElementsByName("adjusterStateCheckBox");
	var result = false;
	var NHadjuster = false;
	for(var i=0; i < adjCheckBoxes.length; i++)
	{
		var myCB = adjCheckBoxes.item(i);
		if(myCB.checked)
		{		
			if(myCB.value == "NH")
			{
				result = true;
				NHadjuster = true;
			}
			else
			{
				result = true;
			}			
		}
	}
	if(NHadjuster)
	{
		//make sure they selected subtype:
		result = result && validateNHSubLicenseTypesForAdjusters();
	}
	if(!result)
	{		
		licenseInformationAreaErrorBox.innerHTML = "Please select at least one state from the list above where you have an adjuster license.<br />If you are an adjuster in NH, you need to specify your license Subtype";
		licenseInformationAreaErrorBox.style.display ="";
	}
	else
	{
		licenseInformationAreaErrorBox.style.display = "none";
		licenseInformationAreaErrorBox.innerHTML = "";
	}
	return result;
}

function validateNHSubLicenseTypesForAdjusters()
{
	//get the checkbox collection
	var adjusterSubLicenseCheckBoxes = document.getElementsByName("adjusterSubLicenseCheckBox");
	for(var i = 0; i<adjusterSubLicenseCheckBoxes.length; i++)
	{
		var myCB = adjusterSubLicenseCheckBoxes.item(i);
		if (myCB.checked)
		{
			return true;
		}
	}
	return false;
}

function validateDesignationsNoCreditArea()
{
	var CBArray = constructDesignationArray();
	return isAnyCheckboxChecked(CBArray);
}

function  constructDesignationArray()
{
	var CBArray = new Array();
	CFPCB 		= 	document.getElementById("CFPCB");
	CBArray[CBArray.length] = CFPCB;
	CPCUCB 	= document.getElementById("CPCUCB");
	CBArray[CBArray.length] = CPCUCB;
	CLUCB		=	document.getElementById("CLUCB");
	CBArray[CBArray.length] = CLUCB;
	CLFCB 		=	document.getElementById("CLFCB");
	CBArray[CBArray.length] =  CLFCB;
	RHUCB		=	document.getElementById("RHUCB");
	CBArray[CBArray.length] =RHUCB;
	CHFCCB 		= 	document.getElementById("CHFCCB");
	CBArray[CBArray.length] =CHFCCB;
	REBCCB		=	document.getElementById("REBCCB");
	CBArray[CBArray.length] =REBCCB;
	IRESCB		=	document.getElementById("IRESCB");
	CBArray[CBArray.length] =IRESCB;
	CPDMCB	=	document.getElementById("CPDMCB");
	CBArray[CBArray.length] =CPDMCB;
	CCMPCB	=	document.getElementById("CCMPCB");
	CBArray[CBArray.length] =CCMPCB;
	WCCPCB	=	document.getElementById("WCCPCB");
	CBArray[CBArray.length] =WCCPCB;
	SILACB		=	document.getElementById("SILACB");
	CBArray[CBArray.length] =SILACB;	
	NoCreditCB	=	document.getElementById("NoCreditCB");
	CBArray[CBArray.length] =NoCreditCB;
return CBArray;
}

function isAnyCheckboxChecked(CBArray)
{
	var myArray = new Array();
	myArray = CBArray;			
	for(var i=0;i <myArray.length; i++)
	{
		if(myArray[i].checked)
		{
			return true;			
		}
	}
	return false;
}

function validateLicensingInformationForNonUS()
{
	//create a checkbox Array and add the non US checkboxes to it:
	var CBArray = new Array();
	// First, we need to get all the checkboxes for the license types we have and go through them one by one:
	SILACB		=	document.getElementById("SILACB");
	CBArray[CBArray.length] =SILACB;
	NoCreditCB	=	document.getElementById("NoCreditCB");
	CBArray[CBArray.length] =NoCreditCB;
	var result = isAnyCheckboxChecked(CBArray);
	var licenseInformationAreaErrorBox = document.getElementById("licenseInformationAreaErrorBox");
	var licenseAccountPickerTitle = document.getElementById("licenseAccountPickerTitle");	
	if(!result)
	{			
		//No license account has been chosen from the main options: adjuster, producer or designations 
		licenseInformationAreaErrorBox.innerHTML = "Please select at least one license account from the options above.";
		licenseInformationAreaErrorBox.style.display ="";
		licenseAccountPickerTitle.className="errorTitleSmallYellowBG";
	}
	else
	{
		licenseInformationAreaErrorBox.innerHTML = "";
		licenseInformationAreaErrorBox.style.display ="none";
		licenseAccountPickerTitle.className="";
	}
	return result;
}

function  showEmailAjaxLoader()
{
	var emailAddressAjaxLoader = document.getElementById("emailAddressAjaxLoader");
	emailAddressAjaxLoader.style.display="";	
}

function  hideEmailAjaxLoader()
{
	var emailAddressAjaxLoader = document.getElementById("emailAddressAjaxLoader");
	emailAddressAjaxLoader.style.display="none";	
}

function  showUserNameAjaxLoader()
{
	var emailAddressAjaxLoader = document.getElementById("usernameAjaxLoader");
	emailAddressAjaxLoader.style.display="";	
}

function  hideUserNameAjaxLoader()
{
	var emailAddressAjaxLoader = document.getElementById("usernameAjaxLoader");
	emailAddressAjaxLoader.style.display="none";	
}

function showNameMessage(control)
{
	/*
		The following function takes a control parameter(input type text) and displays a warning message beneath it
		It uses JQuery API to show and hide the warning message within 5 seconds
	*/
	var errorBoxID = control.id + "ErrorBox";
	var errorBox = document.getElementById(errorBoxID);
	if(control.id=="first")
	{
		//Have we shown the first name message before?
		if( firstNameFieldMessageShown)
		{
			//Yes, do not show any thing at this time
			return;
		}
		else
		{
			//No, do not return and set the flag to point out we have shown the message for fitst name:
			 firstNameFieldMessageShown = true;			
		}
	}
	else if(control.id=="last")
	{
		// Have we shown the last name message?
		if( lastNameFieldMessageShown)
		{
			//Yes, do not show any thing at this time
			return;
		}
		else
		{
			//No, do not return and set the flag to point out we have shown the message for fitst name:
			 lastNameFieldMessageShown = true;			
		}
	}
	errorBox.innerHTML = " Please make  sure you spell your name <u>exactly</u> as it appears on your insurance license to avoid errors when reporting your credits.";
	$.fx.speeds._default = 500;
	showControl(errorBox);
	window.setTimeout(function(){hideControl(errorBox)},5000);
}

function hideControl(control)
{
	if(control.innerHTML != "")
	{
		//hide the passed control using the slide effect:
		$("#"+control.id).hide('fold');
		control.innerHTML = "";
	}
}


function showControl(control)
{
	// Show the passed control using the shake effect:
	$("#"+control.id).show('slide');
}
