// select first text field
// variable to state which form
var frmNum = 1;
function firstSelect ()	{
	if (typeof document.forms[frmNum] != 'undefined') {
		if (document.forms[0].getElementsByTagName ('input').length > 0) {
			var input = document.forms[frmNum].getElementsByTagName ('input');

			// get first text input
			for (i = 0; i < input.length; i ++)	{
				if (input[i].type == 'text') {
					input[i].focus ();
					break;
				}
			}
		}
	}
}

window.onload = firstSelect;


