function validate()
{
   var NAME=document.form1.Name.value;
   var EMAIL=document.form1.Email.value;
   var COMMENTS=document.form1.Comments.value;
   
   if(NAME=="")
   {
   alert('Name field cannot be blank!');
   document.form1.Name.focus();
   return false;
   }
  if(EMAIL=="")
   {
   alert('Email field cannot be blank!');
   document.form1.Email.focus();
   return false;
   }
   if(COMMENTS=="")
   {
   alert('Comments Field cannot be blank!');
   document.form1.Comments.focus();
   return false;
   }
//else return window.confirm ("Are you ready to Submit?");
return true;
}
//-------------------Function Check Empty-------------------------------
function Empty_field(fields,action)
{
var action=action;	
var fields=fields;
var fn= fields.split(",");

for(i=0;i<fn.length;i++)
{
//alert("Waow!");
var a= fn[i];
var ef=document.getElementById(a).value;

if(ef=="")
{
alert("Please fill the Blank Field");
document.getElementById(a).focus();
//document.getElementById(a).style.backgroundColor='#FFFFCC';
document.getElementById(a).style.borderColor='#FF0000';
return false;
}
}
document.form1.action=action;
}
//-------------------cHECKING eMAIL-------------------------------------
var testresults
function checkemail(){
var str=document.form1.Email.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str)) {
testresults=true;
return window.confirm ("Are you ready to Submit?");
}
else {
alert("Please input a valid email address!");
document.form1.Email.focus();
testresults=false;
}
return (testresults);
}

function validemail(){
if (document.layers||document.getElementById||document.all)
return checkemail();
else
return true;
}
//-----------------------------Test Function------------------------------

function test()
{
	alert('Dekhai na...');
	
}

//-----------------------Status Bar Time---------------------------------
<!-- Hide from old browsers 
var hour=0;
var min =0;
var sec =0;

function timer() {
  var _status = "You have been on this page for: ";
  if (++sec>59) {
    if (++min>59) {
      hour++;
      min=0;
    }
   sec=0;
  }
  var _min=min>9?min:"0"+min;
  var _sec=sec>9?sec:"0"+sec;
  var _hour=hour>9?hour:"0"+hour;
  _status += _hour+":"+_min+":"+_sec;
  defaultStatus = _status;
}

var myTimer=null;
var ONE_SECOND = 1000;
function startTimer() {
  endTimer();
  myTimer = setInterval("timer()",ONE_SECOND);
}
function endTimer() {
  if (myTimer != null) {
    clearInterval(myTimer);
	myTimer = null;
  }
}
//---------------------------------------------------------------
