<!--

//=============================================================================
//	Very simple function to draw graphical font ..

function writefont(msg, F) {
var len = (msg.length)
  msg = msg.toUpperCase()
  if (F == undefined) {       /* if not specified, use default font */
	  F = 2                   
  }
  for (var i=0 ; i<len; ++i) {
    if (msg.charAt(i)=="~") { 
      document.write('<BR>') 
    } else if (msg.charAt(i)=="[") { 
      document.write('<IMG SRC="Images/smile.gif" ALT="Smile!">')
    } else if (msg.charAt(i)=="]") { 
      document.write('<IMG SRC="Images/smile_.gif" ALT="Smile!">')
    } else if (msg.charAt(i)=="?") { 
      document.write('<IMG SRC="Images/Font'+F+'/#.bmp">')
    } else if ((msg.charAt(i)>="!") && (msg.charAt(i) <="z")) {
      document.write('<IMG SRC="Images/Font'+F+'/'+msg.charAt(i)+'.bmp">') 
    } else {  // space is 8 pixels ..
      document.write('<IMG SRC="Images/Font'+F+'/Space.bmp">')
	}
	document.write('<IMG SRC="Images/Font'+F+'/Kern.bmp">')  
  }
}


//=============================================================================
//	Little function to remove annoying focus in IE ..

function HideFocus() {
	if (document.getElementById)
	window.onerror=new Function("return true")
	
	if (document.all) {
		document.onfocusin = doOnFocus;
	}
	else if (document.getElementById) {
    	document.captureEvents(Event.FOCUS);
		document.onfocus = doOnFocusMoz;
	}
}

//=============================================================================
//	Hide focus by selecting window ..

function doOnFocus()
{
	window.focus();
	return true;
}

//=============================================================================
// Doesn't work yet ..

function doOnFocusMoz(e)
{
//	e.target = document.getElementByID;
//	document.write(e.target);
//    e.target.hideFocus();

	window.focus();
	return true;
}


//=============================================================================
//	We want to run this now ..

HideFocus();

//=============================================================================

// -->
