function clr_txt(field_id)
{
	document.getElementById(field_id).value="";
	
	}
//-----------------------------------------------
function matchpass(){

if (document.form1.ConfirmPassword.value  != document.form1.Password.value) {
alert("Password and Confirm password are not the same");
document.form1.ConfirmPassword.focus();
return false; }
}
//-------------------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;
  }
}
//---------------------------------------------------------------