/*	
	fmc.js
	(c) 2004 Winfried Huslik, winfried@huslik.de
	version 2004-05-02
*/

function init() {
	if(top!=self) top.location=self.location;

	if (window.focus)
		if (document.forms)
			if (document.forms[0])
				if (document.forms[0].elements[0])
					document.forms[0].elements[0].focus();}
	
function gofield(form, field) {
	field = 'fo[' + field + ']' ;
	if (window.focus)
		if (document.forms)
			if (document.forms[form])
				if (document.forms[form].elements[field])
					document.forms[form].elements[field].focus();}
	

//if (document.layers) document.captureEvents(Event.MOUSEMOVE);
//document.onmousemove = mm;

document.onkeypress=function k(evt){ /* submit on enter (c)Huslik */
	var k=document.all?window.event.keyCode:evt.which;
	if(k==3){
		document.forms[0].submit();
		return false;
	}
}

//if (top != self) top.location = location;
//if (top.frames.length) top.location.href = self.location;

// end of fmc.js
