function form_focus(tbl, fld)
{
	eval("document." + tbl + "." + fld + ".focus()");
}

function select_menu(tar, sel)
{
	loc = sel.options[sel.selectedIndex].value
	eval(tar+".location='"+loc+"'");
}

function open_window(url, w, h, name)
{
	var newWindow;
	newWindow = window.open(url, name, 'resizable=yes,width=' + w + ',height=' + h + ',scrollbars=yes');
	newWindow.window.focus();
}

function add_favorite(url, title)
{
	if (window.external) {
		window.external.AddFavorite(url, title);
	} else if (window.sidebar) {
		window.sidebar.addPanel(title, url, "");
	} else {
		alert("Press Control-D To Bookmark");
	}
}

function close_newwindow(path)
{
	window.top.close();
	var newWindow;
	newWindow = window.open(path, 'GSMfileWINDOW');
	newWindow.window.focus();

}

function close_redirect(path)
{
	window.top.close();
	window.top.opener.location = path;
}

function max_length(object, maximum)
{
	return (object.value.length <= maximum);
}