var 	ldef="";
var d_color, d_div, d_id;

function ShowMess(msg, h, w, time) {
var	win =
	window.open("","","height="+h+",width="+w+",location=no,scrollbars=no,menubar=no,toolbar=no,resizable=no,status=no,screenX=0,screenY=0");
	win.document.backgroundColor="000060";
	win.document.fgColor="ffffff";
	win.document.writeln('<center Style="{color:red; font-weight: bold; font-size:12pt}" Align="center"><font face="Arial,Helvetica">'+msg+'</font></center>');
	win.setTimeout("close();", time);
}
// ****************** MESSAGE
function Show() {
	if(!this.wHandle)
		this.wHandle = window.open("","",
		"toolbar=no,titlebar=no,innerHeight=10,innerWidth=100,"+
		"location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,"+
		"width="+this.width+",height="+this.height);
	else
		this.wHandle.focus();
	this.wHandle.document.open();
	this.wHandle.document.writeln('<HTML>\n <BODY BGCOLOR="'+this.bgColor+'">\n');
	this.wHandle.document.writeln('<div STYLE="'+this.style+'">'+this.mess+'</div>');
	this.wHandle.document.writeln('</BODY>\n</HTML>');
	this.wHandle.document.close();
	this.wHandle.focus();
	this.tHandle = this.wHandle.setTimeout("close(); this.wHandle=null", this.time);
}
function Start() {
	this.Show();
}
function Kill() {
	clearTimeout(this.tHandle);
	if ( this.wHandle) {
		this.wHandle.close();
		this.wHandle=null;
	}
}
function Message(mess, w, h, t, bg, s) {
	this.mess = mess;
	this.def_w = 150;	this.def_h = 50;
	this.def_s = "{font-weight: bold; color: blue; text-align: center}";
	this.def_t = 3000;
	this.def_bg = 'silver';
	this.wHandle = null;	this.tHandle = null;
	this.Show = Show;
	this.Kill = Kill;
	if( w ) this.width = w; 	else this.width = this.def_w;
	if( h ) this.height = h;	else this.height = this.def_h;
	if( s ) this.style = s;		else this.style = this.def_s;
	if( t ) this.time = t;		else this.time = this.def_t;
	if( bg ) this.bgColor = bg;	else this.bgColor = this.def_bg;

	return this;
}
// **************** END OF MESSAGE
function StartBack(div) {
	d_div = div;
	d_id = setInterval("SwapBack();", 70);
}
function StopBack(div, color) {
	clearInterval(d_id);
	document.all[d_div].style.backgroundColor = color;
}
function SwapBack() {

	if( d_color == '#000080' ) d_color = '#000000';
	else d_color = '#000080';
	document.all[d_div].style.backgroundColor = d_color;
}
function LastUpdated() {
var last = new Date(document.lastModified);
var year = last.getYear();

	eval(ldef+'[0].document.write("updated: ", last.getDate(), "/", last.getMonth()+1, "/");');
	if ((year <= 99) && (year > 80))
		eval(ldef+'[0].document.write("19", year);');
	else 	if ( year < 2000 )
			eval(ldef+'[0].document.write("200", year);');
		else
			eval(ldef+'[0].document.write(year);');
}