var menuitem="<img border=0 width=5 height=9 src="+wwwroot+"images/rarr.gif><img border=0 width=4 height=1 src="+space+">"
var submenuitem="<img border=0 width=7 height=9 src="+wwwroot+"images/rdarr.gif><img border=0 width=4 height=1 src="+space+">"
var menuhtml=""
var menutext=new Array();
var submenu=new Array()
var id=0

function addmenu(name,link,target){
  menuhtml+="<tr><td><img height=6 width=1 src="+space+"></td></tr>"
  menuhtml+="<tr><td align=left><img width=6 height=1 src="+space+"><a class=menu "
  if (target){
     menuhtml+="target=_blank "
  }
  if (link==""){menuhtml+="href=javascript:nothing();"}
  else{menuhtml+="href="+link}
  menuhtml+=" OnMouseOver=\"status='"+name+"';showmsg(menutext["+id+"]);return true;\" OnMouseOut=\"t_out();status='';return true;\">"+menuitem+name+"</a></td></tr>"
  submenu[id]=0
  menutext[id]=""
  id+=1
  if (id>1){
    if (submenu[id-2]==1){menutext[id-2]+="</td></tr></table>"}
  }
}
function addmenuitem(name,link,target){
  if (submenu[id-1]==0){	
    submenu[id-1]=1
    menutext[id-1]+="<table width=100% border=0 cellpadding=0 cellspacing=0>"
  }
  menutext[id-1]+="<tr><td><a "
  if (target){
    menutext[id-1]+="target=_blank "
  }
  if (NS4){
    menutext[id-1]+="style=\"color:#000000;font-family:arial,helvetica,sans-serif;text-decoration:none;font-weight:bold;font-size:8pt;\" "
  }else{
    menutext[id-1]+="class=menuitem "
  }
  menutext[id-1]+="href=\""+link+"\" OnMouseOver=\"t_over();\" OnMouseOut=\"t_out();\">"+submenuitem+name+"</a>"
  menutext[id-1]+="</td></tr>"
}
function endmenu(){
  if (submenu[id-1]==1){menutext[id-1]+="</td></tr></table>"}
}
var printwindow=null;
function showprintwin(){
  wwidth=585;
  wheight=585;
  var tags = "";
  tags="width="+wwidth;
  tags+=","+"height="+wheight;
  tags+=","+"resizable=yes";
  tags+=","+"scrollbars=yes";
  tags+=","+"toolbar=no";
  tags+=","+"location=no";
  tags+=","+"directories=no";
  tags+=","+"statusbar=no";
  tags+=","+"menubar=yes";
  tags+=","+"copyhistory=no";
  printwindow=window.open(printablepage,'PrintWindow',tags);
}