// mini-sniffer
var agt = navigator.userAgent.toLowerCase();
var is_nav = ((agt.indexOf("mozilla")!=-1)&&(agt.indexOf("spoofer")==-1)
			&&(agt.indexOf("compatible")==-1)&&(agt.indexOf("opera")==-1)
			&&(agt.indexOf("webtv")==-1));	// spoofer sniffer
var is_nav4up = (is_nav && (parseInt(navigator.appVersion)>=4));

// redefine alert()
var replyWind;	// global
function alert(what) {
	var where = replyWind;
	var sWHeight = 350;
	var sWWidth = 450;
	var Xoffset = window.screenX + window.outerWidth/2 - sWWidth/2 ;
	var Yoffset = window.screenY + window.outerHeight/2 - sWHeight/2;
	var attributeStr = 'HEIGHT=' + sWHeight + ',WIDTH=' + sWWidth;
	attributeStr += ',RESIZABLE,screenX=' + Xoffset + ',screenY=' + Yoffset;
	if (!where || where.closed) {
		where = window.open('','WizardWindow',attributeStr);
	}
	what = what.replace(/([^!?.)]+)!/g,'<H1 align=center><font color=red>$1!</font></H1>');
	what = '<HTML><BODY bgcolor=#FFFF55><font face=arial><center>' + what;
	what += '<form><input type=button value=OK onClick=window.close()>';
	what += '</form></center></font></BODY></HTML>';
	where.document.open();
	where.document.write(what);
	where.document.close();
	where.focus();
}
