/* sign up and ligin issue ------------------------------------------------------------------------------------ */
function signUp()
{
  var el1 = document.getElementById('semail');
  if(!test(el1.value))
  {
    alert("You have to suply valid email address!");
    return;
  }
  var sParam = "email="+encodeURIComponent(el1.value);
  var sParams = new Array();
  sParams.push(sParam);
  //
  el1 = document.getElementById('snames');
  if(!el1.value)
  {
    alert("You have to suply your names!");
    return;
  }
  sParam = "names="+encodeURIComponent(el1.value);
  sParams.push(sParam);
  //
  el1 = document.getElementById('spass');
  if(!el1.value)
  {
    alert("You have to suply password!");
    return;
  }
  sParam = "pass="+encodeURIComponent(el1.value);
  sParams.push(sParam);
  //
  link = "actions/signUp.php?"+sParams.join("&");
  doUser(link);
}
//
function login()
{
  var el1 = document.getElementById('email');
  if(!test(el1.value))
  {
    alert("You have to suply valid email address!");
    return;
  }
  var sParam = "email="+encodeURIComponent(el1.value);
  var sParams = new Array();
  sParams.push(sParam);
  //
  el1 = document.getElementById('pass');
  if(!el1.value)
  {
    alert("You have to suply password!");
    return;
  }
  sParam = "pass="+encodeURIComponent(el1.value);
  sParams.push(sParam);
  //
  link = "actions/login.php?"+sParams.join("&");
  doUser(link);
}