function SubmitWithAction(dform,actionType)
     {
     
        if (actionType=="delete")
            {
            val=confirm("Are you sure?");
            
              if (!val)
                  {
                  return;
                  }
            
            }
     
     dform.actiontype.value=actionType;
     dform.submit();
     }  

function doTooltip(e, ar) {
    if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
    var cntnt = wrapTipContent(ar);
    var tip = document.getElementById( Tooltip.tipID );
    Tooltip.show(e, cntnt);
}

function hideTip() {
    if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
    Tooltip.hide();
}

function wrapTipContent(ar) {
    var cntnt = "";
    if ( ar[0] ) cntnt += '<div class="img"><img src="' + ar[0] + '"></div>';
    if ( ar[1] ) cntnt += '<div class="txt">' + ar[1] + '</div>';
    return cntnt;
}

  function CloseRedirect(URL)
     {
     window.opener.location.href=URL;
     window.close();
     }