

function menucover(obj, path)
{
  var table = document.getElementById("tablemenu");
  var num = obj.cellIndex;
  realpath = document.location.pathname.split("/");
  arraynum = realpath.length;
  arraynum--;
  if (realpath[arraynum]=="")
  {
	realpath[arraynum]="index.php" 
  }
  if (realpath[arraynum]!=path)
  {
    obj.style.background='#E1E1E1';
    obj.style.cursor='pointer';
  }
}

function menuout(obj, path)
{
  var table = document.getElementById("tablemenu");
  var num = obj.cellIndex;
  realpath = document.location.pathname.split("/");
  arraynum = realpath.length;
  arraynum--;  
  if (realpath[arraynum]=="")
  {
	realpath[arraynum]="index.php" 
  }  
  if (realpath[arraynum]!=path)
  {  
    obj.style.background='#CFC9C9';
    obj.style.cursor='';
  }
}

function checkform(obj)
{
  var checker = 1;
  if (
	   (obj.fcity.value.length==0) ||
	   (obj.fstate.value.length==0) ||
	   (obj.tcity.value.length==0) ||
	   (obj.tstate.value.length==0) ||
	   (obj.movetype.value=='Please select') ||
	   (obj.name.value.length==0) ||
	   (obj.email.value.length==0) ||
	   (obj.hphone.value.length==0)  	   
	 )
  {
	checker = 0;
    alert('Fill all required fields');
  }
  if (checker) {return true;} else {return false;}
}

