function externalLinks()
{
	if( !document.getElementsByTagName )
	{
		return;
	}

	var anchors = document.getElementsByTagName("input");

	for( var i=0; i<anchors.length; i++ )
	{
		var anchor = anchors[i];

		if( anchor.getAttribute("type") == "submit" )
		{

			cursor_on = function()
			{
				this.style.cursor = 'pointer';

			}

			cursor_off = function()
			{
				this.style.cursor = 'default';
				
			}

			addEvent(anchor, "onmouseover", cursor_on);
			addEvent(anchor, "onmouseout", cursor_off);
		}
	}
}

window.onload = externalLinks;



function addEvent( elem, type, func )
{
	var newfunc = func;

	if( elem[type] )
	{
		var oldfunc = elem[type];

		newfunc = 	function(event)
					{
						var ret1 = oldfunc(event);
						var ret2 = func(event);
						
						return ret1 && ret2;
					}
	}

	elem[type] = newfunc;
}



