function checkPassword(password, passwordrepeat) 
{
  if(password == passwordrepeat) 
  {   
    return true;
  }
  else 
  {
    alert("<%=l10n.getString(\"retry_password\")%>");
    return false;
  }
}

function doSecurityCheck(password) 
{
  if(password.length < 3) 
  {
    document.qualitymeter.src="../images/quality_1.png"
  }
  if(password.length > 3 && password.length < 5) 
  {
    document.qualitymeter.src="../images/quality_2.png"
  }
  if(password.length > 3 && password.length > 5 && password.length < 7) 
  {
    document.qualitymeter.src="../images/quality_3.png"
  }
  if(password.length > 7 && password.length < 9) 
  {
    document.qualitymeter.src="../images/quality_4.png"
  }
  if(password.length > 9) 
  {
    document.qualitymeter.src="../images/quality_5.png"
  }   
}

function removeUser(id) 
{
  x = confirm("<%=l10n.getString(\"user_delete_check\")%>");
  
  if(x) 
  {
    self.location.href='actionDeleteUser.jsp?id='+id;
  }
}

function removeRejectReason(id) 
{
  x = confirm("<%=l10n.getString(\"rule_delete_check\")%>");
  
  if(x) 
  {
    self.location.href='actionDeleteRejectReason.jsp?id='+id;
  }
}

function removeRejectInfo(rejectReasonId,rejectInfoId) 
{
  x = confirm("<%=l10n.getString(\"info_delete_check\")%>");
  
  if(x) 
  {
    self.location.href='actionDeleteRejectInfo.jsp?id='+rejectReasonId+'&rejectInfoId='+rejectInfoId;
  }
}

function removeCustomer(id) 
{
  x = confirm("<%=l10n.getString(\"mandant_delete_check\")%>");
  
  if(x) 
  {
    self.location.href='actionModifyCustomer.jsp?id='+id+'&action=delete&target=manageCustomers.jsp';
  }
}
