
function doaction(actionvar)
{
document.add_model_form.action.value = actionvar;
document.add_model_form.submit();
}

function dodelete(actionvar)
{
document.add_model_form.del.value = actionvar;
document.add_model_form.submit();
}

wmtt = null;
 

 
function updateWMTT(e) {
  if (wmtt != null) {
    x = (document.all) ? window.event.x + wmtt.offsetParent.scrollLeft : e.pageX;
    y = (document.all) ? window.event.y + wmtt.offsetParent.scrollTop  : e.pageY;
    wmtt.style.left = (x + 20) + "px";
    wmtt.style.top   = (y + 20) + "px";
  }
}
 
function showWMTT(id) {
  wmtt = document.getElementById(id);
  wmtt.style.display = "block"
}
 
function hideWMTT() {
  wmtt.style.display = "none";
}



