var Constants = {
		isIE : navigator.appName.toLowerCase().indexOf("explorer") > -1,
		isMoz : !this.isIE,
		ViewMode: {Target:0, Avg:1}
}

function onLoadFunction()
{
	return
}

function FormatDate(value) {
	if (value.replace(/ /, "") == "") return "01/01/05";
	return value.replace(/[\d]{2}([\d]{2})([\d]{2})([\d]{2})/, "$3/$2/$1");
}

function isNullOrUndefined(obj)
{
	return ((obj==null) || (obj==undefined) || (typeof(obj)=="undefined"));
}

function notNullOrUndefined(obj)
{
	return !isNullOrUndefined(obj)
}

function swapImgSrc(id)
{
	with (document.getElementById(id))
	{
		attributes["altsrc"].value;
		var saveSrc = src;
		src = attributes["altsrc"].value;
		attributes["altsrc"].value = saveSrc;
	}
}