function checkAllFields()
{
	if($find("firstName")!=null)
	{
    if(!validateFirstName($find("firstName"),'First Name',true)) return false;
  }
	if($find("lastName")!=null)
	{  
  	if(!validateLastName($find("lastName"),'Last Name',true)) return false;
  }
	if($find("address")!=null)
	{
  	if(!validateAddress($find("address"),'Address Line',true)) return false;
	}
	if($find("zip")!=null)
	{
  	if(!validateZip($find("zip"),true)) return false;
	}
	if($find("phone")!=null)
	{
  	if(!validatePhone($find("phone"),true)) return false;
	}
  if($find("email")!=null)
  {
  	if(!validateEmail($find("email"),true)) return false;
  }
  if($find("socialSecurityMask")!=null)
  {
  	if(!validateSSN($find("socialSecurityMask"),true)) return false;
  }
  if($find("cellPhone")!=null)
  {
  	if ($find("cellPhone").value.trim() == "")
  	{
			showMsg("Cell Phone can not be empty.", "cellPhone");
			return false;
  	}
  }
  if($find("pinNumber")!=null)
  {
  	if ($find("pinNumber").value.trim() == "")
  	{
			showMsg("Pin Number can not be empty.", "pinNumber");
			return false;
  	}
  }
  return true;
}

function checkConfirmInfo()
{
	appCheck=document.getElementById("checkApp");
	appcoCheck=document.getElementById("checkCoApp");
	if(appCheck!=null)
	{
  	if(!validateCheckInfo(appCheck)) return false;
  }
	if(appcoCheck!=null)
	{
  	if(!validateCheckInfo(appcoCheck)) return false;
  }  
  return true;
}

function validateCheckInfo(checkInput)
{
  obj = checkInput;
  obj.value = obj.value.trim();
  if(!obj.checked)
  {
	showError(true, "Please check your authorization box.", obj.id);
    return false;
  }
  outFocus(obj);
  return true;
}





