// Use it in the body tag
// OnLoad="formfocus()"
function formfocus() {
	if (document.forms.length > 0) {
	var field = document.forms[0];
	for (i = 0; i < field.length; i++) {
		if ((field.elements[i].type == "text") || (field.elements[i].type == "password") || (field.elements[i].type == "file") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {
		document.forms[0].elements[i].focus();
		break;
         }
      }
   }
}

function PopupWindow(mypage,winprops) {
	win = window.open(mypage, 'EDIT', winprops);
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// onclick="PopupWindow(this.href);return false;"

// This function is used for the Suckerfish (flyout) menus

