<!--
function open_window(file, name, width, height, scrbar) {
  if(scrbar) window.open(file,name,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=" + width + ",height=" + height);
   else window.open(file,name,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=" + width + ",height=" + height);
}

function preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function findObj(n, d) {
  var p,i,x;  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
}

function oprtnImageN() {
  var img,args=oprtnImageN.arguments;
  if((img = findObj(args[0])) != null) {
    img.src = args[1];
  }

  if(args[2] != 0) {
    img = findObj('menu_delimiter_' + (args[2] - 1));
    if(img != null)
      img.src = '/Images/menu_delimiter'; 
  }

  if(args[2] != 7) {
    img = findObj('menu_delimiter_' + args[2]);
    if(img != null)
      img.src = '/Images/menu_delimiter'; 
  }
}

function oprtnImageA() {
  var img,args=oprtnImageA.arguments;
  if((img = findObj(args[0])) != null) {
    img.src = args[1];
  }

  if(args[2] != 0) {
    img = findObj('menu_delimiter_' + (args[2] - 1));
    if(img != null)
      img.src = '/Images/menu_active_left'; 
  }

  if(args[2] != 7) {
    img = findObj('menu_delimiter_' + args[2]);
    if(img != null)
      img.src = '/Images/menu_active_right'; 
  }
}

function clear_field(obj, val) {
 if(obj.value == val) obj.value = '';
}

function restore_field(obj, val) { 
 if(obj.value == '') obj.value = val;
}

function gotourl(url) {
 document.location=url;
}

function open_clipart(file, width, height) {
 window.open(file,'',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0,width=" + width + ",height=" + height);
}


function hilight(obj, id) {
 obj.style.background='#E3F3F3'; 
 obj.style.cursor='hand';
}

function lowlight(obj, id) {
 obj.style.background = 'transparent';
}

function round_num(n) { 
  return (Math.round(n*100)) / 100;
}

function round_str(n) { 
  n = String(round_num(n));
  
  if(n.indexOf('.') < 0)
    return (n + '.00');

  return n;
}

function getClientWidth() {
 var w=0;

 if (self.innerHeight) 
   w = self.innerWidth;
 else if (document.documentElement && document.documentElement.clientHeight) 
   w = document.documentElement.clientWidth; 
 else if (document.body) 
   w = document.body.clientWidth;

 return w;
}

function getClientHeight() {
 var h=0;

 if (self.innerHeight) 
   h = self.innerHeight;
 else if (document.documentElement && document.documentElement.clientHeight) 
   h = document.documentElement.clientHeight; 
 else if (document.body) 
   h = document.body.clientHeight;

 return h;
}

//-->