function popup(url,wid,hei,res) {
  if(isNaN(parseInt(wid)))wid=480
  if(isNaN(parseInt(hei)))hei=400
  if (!res) res='yes'
  wind = open(url, "new", "width="+wid+",height="+hei+",status=no,toolbar=no,menubar=no,scrollbars=yes,screenX=10,screenY=10,resizable="+res);
}
function outlink(dir,page,text,clas,target) {
  show = "<a href='http://"
  show += dir
  if(page.substr(0,1)!="/")show += "/"
  show += page
  show += "'"
  if (clas) {show += " class='" + clas + "'"}
  if (target) {show += " target='" + target + "'"}
  show += ">"
  show += text
  show += "</a>"
  document.write(show);
}

function outmail(name,host,text,clas,target) {
  show = "<a href='mailto:"
  show += name
  show += "@"
  show += host
  show += "'"
  if (clas) {show += " class='" + clas + "'"}
  if (target) {show += " target='" + target + "'"}
  show += ">"
  show += text
  show += "</a>"
  document.write(show);
}

// for show/hide target details table
function setit(value){
if (value==1) {document.cookie="hidedetailstable=1";}
else {document.cookie="hidedetailstable=0";}
}
function showHideTable(section) {
sect = eval("document.getElementById('longtable').style.display");
if (sect != 'block') {
eval("document.getElementById('shorttable').style.display = 'none'");
eval("document.getElementById('longtable').style.display = 'block'");
eval("document.getElementById('showhidelink').innerHTML  = '<a href=\"javascript:showHideTable();\">hide</a>'");
document.cookie="hidedetailstable=0;path=/";
} else {
eval("document.getElementById('longtable').style.display = 'none'");
eval("document.getElementById('shorttable').style.display = 'block'");
eval("document.getElementById('showhidelink').innerHTML  = '<a href=\"javascript:showHideTable();\">expand</a>'");
document.cookie="hidedetailstable=1;path=/";
}
}
// for show/hide target details table

function showHideCurStat(section) {
sect = eval("document.getElementById(\"" + section + "\").style.display");
if (sect != 'block') {
eval("document.getElementById(\"" + section + "\").style.display = 'block'");
}
else {
eval("document.getElementById(\"" + section + "\").style.display = 'none'");
}
}

function recorder(url,wid,hei) {
wind = open(url, 'recorder', 'width=800,height=600,resize=yes,resizable=yes,status=no,toolbar=no,menubar=no,scrollbars=yes,screenX=10,screenY=10');
}