<!--

function bookmarkUs()
{
	window.external.AddFavorite('http://www.nwdrlf.com', 'NWDRLF - North West Debt Relief Law Firm');
}

function recommendUs()
{
	window.open('recommend.php', '', 'resizable=no,scrollbars=no,width=400,height=330');
}

function validateQuickContact()
{
	fv = new formValidator();
	
	if (fv.isEmpty("your_name"))
		fv.raiseError("Please specify your name.");
		
	if (fv.isEmpty("your_phone"))
		fv.raiseError("Please specify your phone number.");
		
	if (fv.isEmpty("your_email"))
		fv.raiseError("Please specify your email address.");
	else
	{
		if (!fv.isEmailAddress("your_email"))
			fv.raiseError("Please specify a valid email address.");
	}
		
	if (!fv.isSelected("find_us"))
		fv.raiseError("Please specify how you heard about us.");		
		
	if (fv.isEmpty("comments"))
		fv.raiseError("Please specify any comments or questions you have.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
	  return true;
}	

function validateContactForm()
{
	fv = new formValidator();
	
	if (fv.isEmpty("contact_your_name"))
		fv.raiseError("Please specify your name.");
		
	if (fv.isEmpty("contact_your_email"))
		fv.raiseError("Please specify your email address.");
	else
	{
		if (!fv.isEmailAddress("contact_your_email"))
			fv.raiseError("Please specify a valid email address.");
	}
	
	if (fv.isEmpty("contact_your_phone"))
		fv.raiseError("Please specify your phone number.");
		
	if (fv.isEmpty("contact_your_alternate_phone"))
		fv.raiseError("Please specify your alternate phone number.");		
		
	if (fv.isEmpty("contact_your_worst_fear"))
		fv.raiseError("Please specify your worst bankruptcy fear.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
	  return true;
}

function validateRecommend()
{
	fv = new formValidator();
	
	if (fv.isEmpty("recommend_your_name"))
		fv.raiseError("Please specify your name.");
		
	if (fv.isEmpty("recommend_your_email"))
		fv.raiseError("Please specify your email address.");
	else
	{
		if (!fv.isEmailAddress("recommend_your_email"))
			fv.raiseError("Please specify a valid email address.");
	}
	
	if (fv.isEmpty("recommend_friend_name"))
		fv.raiseError("Please specify your friends name.");
		
	if (fv.isEmpty("recommend_friend_email"))
		fv.raiseError("Please specify friends email address.");		
	else
	{
		if (!fv.isEmailAddress("recommend_friend_email"))
			fv.raiseError("Please specify a valid email address.");
	}
		
	if (fv.isEmpty("recommend_your_comments"))
		fv.raiseError("Please specify your comments.");
		
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
	  return true;
}

function validateLogin()
{
	fv = new formValidator();
	
	if (fv.isEmpty("uname"))
		fv.raiseError("Please specify a username.");
		
	if (fv.isEmpty("password"))
		fv.raiseError("Please specify a password.");
	
	if (fv.numErrors() > 0)
	{
		fv.displayErrors();
		return false;
	}
	else
	  return true;
}

-->