<!--
var defaultFontSizeLoRes = '-1'
var defaultFontSizeHiRes = '2'
var defaultFontFace = 'verdana'

var w3c=(document.getElementById)?true:false;
var ns4=(document.layers)?true:false;
var ie4=(document.all && !w3c)?true:false;
var ie5=(document.all && w3c)?true:false;
var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
var ns =(navigator.appName.indexOf("Netscape")>=0)?true:false;
var saf=(navigator.userAgent.toLowerCase().indexOf("safari")>=0)?true:false;
var fox=(navigator.userAgent.toLowerCase().indexOf("firefox")>=0)?true:false;
var opera=(navigator.userAgent.toLowerCase().indexOf("opera")>=0)?true:false;
var netscape=(navigator.appName.indexOf("Netscape")>=0 && !saf && !fox)?true:false;
var hideForm=(ie5 || saf || fox || opera)?true:false;

function systemObj () {
	this.baseDir = '';
	this.baseDirImage = '';
	this.baseDirSound = '';

	this.baseProtocol = window.location.protocol;
	this.baseHost = window.location.host;
	this.basePath = window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/") + 1);
	this.baseAddress = this.baseProtocol + '//' + this.baseHost + this.basePath;

	this.compID = myUtil.getParm(window.location.href, 'id');
	this.startPage = myUtil.getParm(window.location.href, 'sp');
	if (this.startPage="*none") {
		this.startPage = '0';
	}

	this.browserType = navigator.appName;
	this.browserType = this.browserType.toLowerCase();
	this.browserVersion = navigator.appVersion;
	this.browserVersion = this.browserVersion.toLowerCase();
	this.screenHeight = screen.height;
	this.screenWidth = screen.width;
	this.isLowRes = false;
	this.isHiRes = false;
	this.res = 'low';
	if (!isNaN(this.screenWidth) && parseInt(this.screenWidth) > 800) {
		this.isHiRes = true;
		this.res = 'high';
	}
	else {
		this.isLowRes = true;
		this.res = 'low';
	}
	this.browserString = '';
	if (w3c) {
		this.browserString += 'w3c|';
	}	
	if (ns4) {
		this.browserString += 'ns4|';
	}	
	if (ie4) {
		this.browserString += 'ie4|';
	}	
	if (ie5) {
		this.browserString += 'ie5|';
	}	
	if (ns6) {
		this.browserString += 'ns6|';
	}	
	if (ns) {
		this.browserString += 'ns|';
	}	

	if (typeof(_systemObj_prototype) == 'undefined') {
		_systemObj_prototype = true;
		systemObj.prototype.setForUse = systemSetForUse;
	}
}

function systemSetForUse () {
}

function utilityObj () {
	if (typeof(_utilityObj_prototype) == 'undefined') {
		_utilityObj_prototype = true;
		utilityObj.prototype.getFont = utilityGetFont;
		utilityObj.prototype.getParm = utilityGetParm;
		utilityObj.prototype.centerWindow = utilityCenterWindow;
	}
}

function utilityGetFont (size, face, color) {
	var s, f, c;
	if (size > '') {
		s = size;
	}
	else
	if (mySys.isLowRes) {
		s = defaultFontSizeLoRes;
	}
	else {
		s = defaultFontSizeHiRes;
	}
	if (face > '') {
		f = face;
	}
	else {
		f = defaultFontFace;
	}
	if (color > '') {
		c = color;
	}
	else {
		c = def_textColor;
	}
	return '<font face="' + f + '" size="' + s + '" color="' + c + '">';
}

function utilityGetParm (string, parm) {
	var lstring = string.toLowerCase();
	var lparm = parm.toLowerCase();
	var startPos = lstring.indexOf(lparm + "=");
	
	if (startPos > -1) {
		startPos = startPos + lparm.length + 1;
		var endPos = lstring.indexOf("&",startPos);
		if (endPos == -1) {
			endPos = lstring.length;
		}	
		return unescape(lstring.substring(startPos,endPos));
	}
	return '*none';
}

function utilityCenterWindow(theWindow, w, h) {
	if (mySys.browserType == 'netscape' && parseInt(mySys.browserVersion.charAt(0)) >= 4) {
	}
//	else
//	if (parseInt(mySys.browserVersion.charAt(0)) > 4) {
//	}
	else {
		return
	}
	var x = parseInt(mySys.screenWidth - w)
	if (x < 2) {
		x = theWindow.pageXOffset
	}
	else {
		x = x / 2
	}
	var y = parseInt(mySys.screenHeight - h)
	if (y < 2) {
		y = theWindow.pageYOffset
	}
	else {
		y = y / 2
	}
	theWindow.moveTo(parseInt(x), parseInt(y))
}

var interval = 200;
function statusObj (msg) {
	this.timer = null;
	this.msg = unescape(msg);
	if (typeof(_statusObj_prototype) == 'undefined') {
		_statusObj_prototype = true;
		statusObj.prototype.clearAll = statusClearAll;
		statusObj.prototype.setNew = statusSetNew;
		statusObj.prototype.setDefault = statusSetDefault;
	}
}

function statusSetNew (theText) {
	this.clearAll();
	clearTimeout(this.timer);
	top.status = theText
	return true
}

function statusSetDefault() {
	if (this.msg <= ' ') {
		top.status = '';
		return true; 
	}
	this.msg = this.msg.substring (1, this.msg.length) + this.msg.substring (0, 1);
	top.status = this.msg;
	clearTimeout(this.timer);
	this.timer = null;
	this.timer = setTimeout('myStatus.setDefault()', interval);
	return true; 
}

function statusClearAll () {
	window.defaultStatus = '';
	window.status = '';
}

function amountObj (amount) {
	if (amount <= '          ') {
		this.amount = 0;
	}
	else {
		this.amount = amount;
	}
	this.isValid = false;
	this.withDollar = '';
	if (typeof(_amountObj_prototype) == 'undefined') {
		_amountObj_prototype = true;
		amountObj.prototype.edit = amountEdit;
	}
	this.edit();
}

function amountEdit () {
	var amount = parseFloat(this.amount)
	if (isNaN(amount)) {
		this.amount = '0.00';
		this.withDollar = '';
		this.isValid = false;
		return;
	}

	var str = '' + Math.round(amount * Math.pow(10, 2))
	while (str.length <= 2) {
		str = '0' + str
	}
	var decpoint = str.length - 2
	this.amount = str.substring(0, decpoint) + '.' + str.substring(decpoint, str.length)
	this.withDollar = '$' + this.amount;
	this.isValid = true;
}

var def_bgColor = 'white'
var def_textColor = 'blue'
var def_linkColor = 'purple'
var def_alinkColor = 'red'
var def_vlinkColor = 'green'

var default_bgColor = ' '
var default_textColor = ' '
var default_linkColor = ' '
var default_alinkColor = ' '
var default_vlinkColor = ' '

function colorObj (bg, text, link, alink, vlink) {
	this.bgColor = bg;
	this.textColor = text;
	this.linkColor = link;
	this.alinkColor = alink;
	this.vlinkColor = vlink;

	if (this.bgColor <= ' ' || this.textColor <= ' ') {
		this.bgColor = colorDefault.bgColor;
		this.textColor = colorDefault.textColor;
		this.linkColor = colorDefault.linkColor;
		this.alinkColor = colorDefault.alinkColor;
		this.vlinkColor = colorDefault.vlinkColor;
	}
	if (this.linkColor <= ' ') {
		this.linkColor = this.textColor;
	}
	if (this.alinkColor <= ' ') {
		this.alinkColor = this.textColor;
	}
	if (this.vlinkColor <= ' ') {
		this.vlinkColor = this.textColor;
	}

	if (typeof(_colorObj_prototype) == 'undefined') {
		_colorObj_prototype = true;
		colorObj.prototype.setFrame = colorSetFrame;
	}
}

function colorSetFrame (frame) {
	frameObj = getFrame(frame);

	frameObj.document.bgColor = this.bgColor
	frameObj.document.fgColor = this.textColor
	frameObj.document.linkColor = this.linkColor
	frameObj.document.alinkColor = this.alinkColor
	frameObj.document.vlinkColor = this.vlinkColor
}

function createDefaultColor () {
	if (typeof(colorDefault) != 'undefined') {
		return;
	}

	if (default_bgColor <= ' ' || default_textColor <= ' ') {
		default_bgColor = def_bgColor;
		default_textColor = def_textColor;
		default_linkColor = def_linkColor;
		default_alinkColor = def_alinkColor;
		default_vlinkColor = def_vlinkColor;
	}
	colorDefault = new colorObj(default_bgColor, default_textColor,
				default_linkColor, default_alinkColor, default_vlinkColor);

}

function getFrame (name) {
	var f = eval(name);
	if (typeof(f) == 'object') {
		return f;
	}
	for (var i=0; i < frames.length; i++) {
		if (frames[i].name.toLowerCase() == name.toLowerCase()) {
			return frames[i];
			break;
		}	
	}
	return null;
}

function frameObj (name) {
	this.name = null;

	var f = getFrame(name);
	if (!f || f == null) {
		return;
	}
	this.name = name;
	if (typeof(_frameObj_prototype) == 'undefined') {
		_frameObj_prototype = true;
		frameObj.prototype.setColor = frameSetColor;
		frameObj.prototype.write = frameWrite;
	}
}

function frameWrite (data) {
	var f = getFrame(this.name);
	var d = f.document;
	d.open();
	d.write(data);
	d.close();
}

function frameSetColor (color) {
	var f = getFrame(this.name);
	var d = f.document;
	d.bgColor = color.bgColor;
	d.fgColor = color.textColor;
	d.linkColor = color.linkColor;
	d.alinkColor = color.alinkColor;
	d.vlinkColor = color.vlinkColor;
}
//-->
