poolmanjim 0 Newbie Poster

I have been working a form for work to help manage our inventory and I have been running into a confusing snag. It seems that Internet Explorer 7 wants to thow "Object Expected" errors on every "on" event I specify. For example.

function checkText(elem)
        {
		if(elem.value.match(elem.name) != null)
		{
			elem.value = '';
			elem.style.color = "#000";
		}
        }
	function restoreText(elem)
	{
		if(elem.value == "" || elem.value == null || elem.value.length < 1)
		{
			elem.value = elem.name+"..."
			elem.style.color = "#ccc";
		}
	}
....
<input type="text" onfocus="checkText(this)" onblur="restoreText(this)" id="contact" class="input suggest" />

The onfoucs event throws an object expected error that links to the checkText function. Its happening with my onload function as well. Any ideas? Let me know if you need more information.

P.S. Code works perfect in FireFox.