<!--

function newImage(arg)
{
	if (document.images)
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages()
{
	if (document.images && (preloadFlag == true))
	{
		for (var i=0; i<changeImages.arguments.length; i+=2)
		{
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;

function isEmail(str)
{
	// are regular expressions supported?
	var supported = 0;
	if (window.RegExp)
	{
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);
		if (tempReg.test(tempStr))
		{
			supported = 1;
		}
	}
	if (!supported)
	{
		return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
	}
	var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
	return (!r1.test(str) && r2.test(str));
}

function OpenNewWindowNoScroll(pageurl,windowwidth,windowheight)
{
	window.open(pageurl, "popup", "width = " + windowwidth + ", height = " + windowheight + ", status=no" );
}

function OpenNewWindowWithScroll(pageurl,windowwidth,windowheight)
{
	window.open(pageurl, "popup", "width = " + windowwidth + ", height = " + windowheight + ", status=yes, scrollbars=yes" );
}

-->