function edit_slct_id(wind, slct_id)
{
	var loc = wind.location.href;

	var sAray = loc.split("?");
	var	sJoin;
	if (sAray.length == 1)
		sJoin = "?";
	else
	{
		loc = sAray[0];
		sJoin = "?";
		sParams = sAray[1].split("&");
		for (i=0; i < sParams.length; i++)
		{
			sParam = sParams[i].split("=");
			if (sParam[0] == "slct_id")
				break;
			else
			{
				loc += sJoin + sParams[i];
				sJoin = "&";
			}
		}
	}

	var slct_param = "slct_id=" + slct_id;
	loc =  loc + sJoin + slct_param;

	wind.location.href = loc;	// refresh!
}

/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

	function form_code_submit(d_form, d_code)
	{
		//edit.method = 'post';
		//alert(d_code);
		if (code = document.getElementById("slct_code"))
			code.value = d_code;
		
		d_form.submit();
	}
		
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

	function edit_form_submit(d_form)
	{
		//edit.method = 'post';
		//alert(d_form);
		d_form.submit();
	}
		
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

	function edit_submit_loc(dLoc)
	{
		edit.method = 'post';
		edit.action = dLoc;
		//alert(dForm + dLoc);
		edit.submit();
	}
		
/////////////////////////////////////////////////////////////////////////
