function showHint(e,v){
   if(v.title){
      var t=document.createElement("div");
      t.className="hint";
      t.innerHTML=v.title;v.title="";
      v.move=function(e){
         e=e||event;
         coords = getMouseXY(e).split(',');
         t.style.left=parseFloat(coords[0])+10+"px";
         t.style.top=parseFloat(coords[1])+10+"px";
      }
      v.move(e);
      document.body.appendChild(t);
      v.onmousemove=function(e){v.move(e)}
      v.onmouseout=function(e){
         v.title=t.innerHTML;
         document.body.removeChild(t);
      }
   }
}

function getMouseXY(e) {
   var IE = document.all?true:false
   if (!IE) document.captureEvents(Event.MOUSEMOVE)
   document.onmousemove = getMouseXY;
   var coords = new Array(2);
   if (IE) {
      coords[0] = event.clientX + document.body.scrollLeft
      coords[1] = event.clientY + document.body.scrollTop
   } else {
      coords[0] = e.pageX
      coords[1] = e.pageY
   }
   if (coords[0]<0){coords[0]=0}
   if (coords[1]<0){coords[1]=0}
   return coords.toString();
}

function valEmail(email) {
   apos=email.indexOf("@");
   dotpos=email.lastIndexOf(".");
   if (apos<1||dotpos-apos<2)
      return false;
   else
      return true;
}