var iname = 1;
function Imgp(func) {
  var winWidth = 200;
  var winHeight = 200;
  var w = 30;
  var h = 20;
  var name = 'Image'+iname;
  var features = 'scrollbars=no,toolbar=no,location=no,status=no,resizable=yes,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;
  window.open(func,name,features);
  iname++;
  return false;
}
function Playerp(func) {
  var winWidth = 300;
  var winHeight = 300;
  var w = 30;
  var h = 20;
  var name = 'Playerpopup';
  var features = 'scrollbars=no,toolbar=no,location=no,status=no,resizable=no,width='+winWidth+',height='+winHeight+',top='+h+',left='+w;
  window.open(func,name,features);
  return false;
}
function AddTag(id, text1, text2)
{
    if ((document.selection))
    {
       document.getElementById(id).focus();
       document.getElementById(id).document.selection.createRange().text = text1+document.getElementById(id).document.selection.createRange().text+text2;
    } else document.getElementById(id).value += text1+text2;
}

function treecheck() {

if(navigator.appCodeName == "Mozilla") {
	uWi = getStyle("ulmen", "height");
		men = document.getElementById("menu");
		save = men.innerHTML;
		men.innerHTML = "";
		men.innerHTML = save;
  }

}


function getStyle(el,styleProp)
{
var x = document.getElementById(el);
if (x.currentStyle)
var y = x.currentStyle[styleProp];
else if (window.getComputedStyle)
var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp);
return y;
}