function LmOver(elem, clr)
{
 elem.style.backgroundColor = clr;
 elem.style.border = "1px solid #000000";
 elem.children.tags('A')[0].style.color = '#FFFFFF';
 elem.style.cursor = 'hand';
}

function LmOut(elem, clr)
{
 elem.style.backgroundColor = clr;
 elem.style.border = '1px solid #D0FFD0';
 elem.children.tags('A')[0].style.color = '#333333';
}

function LmDown(elem, clr)
{
 elem.style.backgroundColor = clr;
 elem.children.tags('A')[0].style.color = '#FFFFFF';
}

function LmUp(path)
{
 location.href = path;
}

function InnerLmOut(elem, clr)
{
 elem.style.backgroundColor = clr;
 elem.style.border = "1px solid black";
 elem.children.tags('A')[0].style.color = '#333333';
}

function popUpsz(url,width,height)
{
  width = width + 50;
  height = height + 80;
  sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height);
  sealWin.resizeTo(width,height);
  sealWin.focus();
  self.name = "mainWin";
}

function popUp(url) {
  popUpsz(url, 500, 450);
}

function writeMail(account, content)
{
  if (!content)
    content = '';

  emailE = account;
  emailE = emailE + '@';
  emailE = emailE + 'plasmatech';
  emailE = emailE + '.';
  emailE = emailE + 'com';
  
  document.write('<a href="mailto:' + emailE + content + '">' + emailE + '</a>');
}

function getUrlParam(param)
{
  var query = this.location.search.substring(1);
  if (query.length > 0)
  {
    var params = query.split("&");
    for (var i=0; i<params.length; i++)
    {
      var pos = params[i].indexOf("=");
      var name = params[i].substring(0, pos);
      var value = params[i].substring(pos + 1);

      if (name == param)
        return value;
    }
  }
}

