
<!--
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 oprtnImage(Name) {
  var img,args=oprtnImage.arguments;
  if ((img = findObj(args[0])) != null)
   { img.src = args[1]; }
}

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) {
 w = width
 h = height
 s = 'no' 

 if(height > (screen.Height - 70)) {
   h = screen.Height - 70;
   s = 'yes';
 }

 if(width > (screen.Width - 24)) {
   w = (screen.Width - 24);
   s = 'yes';
 }

 wind = window.open(file,'',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + s + ",resizable=0,width=" + w + ",height=" + h);
 wind.moveTo(0,0);
}

function hilight(obj, id) {
 obj.style.background='#CFD6E9'; 
 obj.style.cursor='hand';
}

function lowlight(obj, id) {
 obj.style.background = '#EDEDED';
}

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;
}