function confirmation(text, loc)
{
  if (confirm(text))
  {
    location.replace(loc)
  }
}

function diving(div_id)
{
  if (document.getElementById(div_id).style.display == "none")
  {
    document.getElementById(div_id).style.display="block";
  }
  else
  {
    document.getElementById(div_id).style.display="none";
  }
}

function on_login_input_focus(input_id, label_id){
  var elem_input = document.getElementById(input_id);
  var elem_label = document.getElementById(label_id);
  
  if(elem_input == null || elem_label == null){
    return;
  }
  
  elem_label.style.display = 'none';
  
}

function on_login_input_blur(input_id, label_id){
  var elem_input = document.getElementById(input_id);
  var elem_label = document.getElementById(label_id);
  
  if(elem_input == null || elem_label == null){
    return;
  }
  
  if(elem_input.value == "") {
    elem_label.style.display = 'block';
  }
  
}

