﻿function SetMyImage(myImg)
{
	if (document.images)
	{
		mySrcString = myImg + ".src";
		document.InfoText.src = eval(mySrcString);
		self.status = '';
	}
}

function ClearField(add, field, replace)
{
	if (add)
	{
		if (field.value == '' || field.value == replace)
		{
			field.value = replace;
		}
	} else
	{
		if (field.value == replace)
		{
			field.value = '';
		}
	}
}


function CheckForSubmit(e, button)
{	
	if (typeof button == 'object')
	{
		if (navigator.appName.indexOf("Netscape") > (-1))
		{
			if (e.keyCode == 13)
			{
				button.click();
				return false;
			}
		}

		if (navigator.appName.indexOf("Microsoft Internet Explorer") > (-1))
		{
			if (e.keyCode == 13)
			{
				button.click();
				return false;
			}
		}
	}
}