function validateLoginForm()
{
  var userId = document.getElementById('userId').value;
  var secPassword = document.getElementById('uPassword').value;

  if (userId == "")
  {
    document.getElementById('userId').focus();
    alert("Invalid User Id");
    return false;
  }

  if (secPassword == "")
  {
    document.getElementById('uPassword').focus();
    alert("Invalid Password");
    return false;
  }

  return true;		
}

function validateURLForm()
{
  if (document.getElementById('url').value == "")
  {
    document.getElementById('url').focus();
    alert("Invalid URL");
    return false;
  }

  if (document.getElementById('url').value == "http://")
  {
    document.getElementById('url').focus();
    alert("Invalid URL");
    return false;
  }

  if (document.getElementById('keyword').value == "")
  {
    document.getElementById('keyword').focus();
    alert("Invalid keyword");
    return false;
  }

  if (document.getElementById('security').value == "")
  {
    document.getElementById('security').focus();
    alert("Invalid Security Code");
    return false;
  }

  return true;		
}

function validateContactForm()
{
  if (document.getElementById('fName').value == "")
  {
    document.getElementById('fName').focus();
    alert("Invalid First Name");
    return false;
  }

  if (document.getElementById('fromEmail').value == "")
  {
    document.getElementById('fromEmail').focus();
    alert("Invalid Email");
    return false;
  }

  if (document.getElementById('comments').value == "")
  {
    document.getElementById('comments').focus();
    alert("Invalid comments");
    return false;
  }

  if (document.getElementById('security').value == "")
  {
    document.getElementById('security').focus();
    alert("Invalid Security Code");
    return false;
  }

  return true;		
}

