/*	Scripts in this file may not be used anywhere else without
	written consent from SmartWin Technology.
	Copyright 1997-2000 SmartWin Technology. All rights reserved. */

//General functions
function setBrowse(sTable, sSQL, sFeature)
{
var i, frm = null;
	for (i = 0; i < document.forms.length; i++)
	{
		if (document.forms[i].name == sTable)
		{
			frm = document.forms[i];
			break;
		}
	}
	if (frm != null)
	{
		frm.SQL.value = sSQL;
		frm.Feature.value = sFeature;
		frm.Move.value = "";
		if (window.sessionid) frm.ID.value = sessionid;
		if (window.submitform) submitform(sTable, '');
		else frm.submit();
	}
	else
		alert("Cannot find Form " + sTable + "!");
}
