function focusForm() {
// Place cursor on first item of second form, if there is one
// Otherwise place cursor on first item of first form, if there is one
	if (document.forms.length > 1) {
		if (document.forms(1).length > 0){
			document.forms(1).item(0).focus();
		}else
		if (document.forms(0).length > 0){
			document.forms(0).item(0).focus();
		} //end if
		document.forms(1).item(0).focus();
	}else 
	if (document.forms.length > 0) {
		if (document.forms(0).length > 0){
			document.forms(0).item(0).focus();
		} //end if
	} //end if
} //end function
