// JavaScript Document
var agt=navigator.userAgent.toLowerCase();
var msie = agt.toLowerCase().indexOf('msie') > 0;
var isSafari = ((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))				

$D = function (str) { 
//	if (isSafari) return;
	if (!msie) dump(str + '\n');
}

dumpObject = function (obj)
{
	if (isSafari) return;
	$D(sprintf('Dumping object (%s)------------------------------', typeof(obj) ));
	for (i in obj)
	{
			$D(sprintf("Property (%s) %s = %s", typeof(obj[i]), i, (typeof(obj[i]) == 'function' ? '{function}' : obj[i]) ));
	}
	$D('End Dump');
}

clear_debug = function()
{
	for (i = 0; i < 15; i++)
		$D('');
	$D('---------------------------------------------');
}

clear_debug();


function writeYear() {
	RightNow = new Date();
	var TheYear = RightNow.getYear()
	
	if (TheYear >= 100 && TheYear <= 1999)
	{TheYear=TheYear + 1900}
	else
	{TheYear=TheYear}
	document.write(TheYear)
}


function confirmCancel(confirmWhat)	{
	return confirm("Are you sure you want to " + confirmWhat + "?");
}