function giveFocus()
{
	if (document.getElementById)
	{
		//add popup handlers to video links
		var _fields = document.getElementsByTagName('input');
		for (x=0; x<_fields.length; x++)
		{
			var _field = _fields[x];
			if (_field.className.indexOf("defaultfocus") > -1)
			{
				_field.focus();
			}
		}
	}
}

if (window.addEventListener)
{
	window.addEventListener('load',giveFocus,false)
}
else if (window.attachEvent)
{
	window.attachEvent('onload',giveFocus)
}
