function fakeLink(msg)
{
  alert(msg);
  return;
}

function focusOn(formElment)
{
  formElment.focus();
}

function chkRequired(formObj)
//usage: <form ... onSubmit="return chkRequired(this)">
{
  var Ok=true;
  if (document.images)
  {
    for (i=0; i<formObj.length; i++)
    {
      var tempObj=formObj.elements[i];
      if (tempObj.name.substring(0,4)=="req_")
      {
        if (((tempObj.type.toString().charAt(0)=="s")&&(tempObj.selectedIndex==0))||
        ((tempObj.type=="text"||tempObj.type=="textarea"||tempObj.type=="password")&&(tempObj.value=='')))
        {
          Ok=false;
          break;
        }
      }
    }
  }
  if (!Ok)
  {
    shortFieldName=tempObj.name.substring(4,40);
    alert("\""+shortFieldName+"\" masih kosong.\nSilakan diisi dengan benar");
    tempObj.focus();
    return false;
  }
  else return true;
}

function aboutThis() {
  aPopUp=window.open('about.php','',
    'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=500,height=400,top=25,left=25');
  aPopUp.focus();
}

