Location: PHPKode > projects > Bloggie Lite > templates/mylite/chk_com_form.tpl
<!--script language="JavaScript" type="text/javascript"-->
<!--
// Check for Browser & Platform for PC & IE specific bits
// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html
var clientPC = navigator.userAgent.toLowerCase(); // Get client info
var clientVer = parseInt(navigator.appVersion); // Get browser version

var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1));
var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1)
                && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1)
                && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));
var is_moz = 0;

var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1));
var is_mac = (clientPC.indexOf("mac")!=-1);

function checkForm() {
  formErrors = false;
  if (document.post.commentname.value.length < 2){
    formErrors = "You must enter a Name when posting.";
  }
  if (document.post.commenttext.value.length < 2){
    formErrors = "You must enter a Comment when posting.";
  }
  if (document.post.commentsubject.value.length < 2){
    formErrors = "You must enter a Subject when posting.";
  }
  if (formErrors) {
    alert(formErrors);
    return false;
  } else {
    //bbstyle(-1);
    //formObj.preview.disabled = true;
    //formObj.submit.disabled = true;
    return true;
  }
}

//-->
<!--/script-->
Return current item: Bloggie Lite