function win_open(url, w, h, scrol)
{
	try
	{
		win.close();
	}
	catch (e) {}
	win = window.open(url, "", "width="+w+",height="+h+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scrol+",resizable=no,copyhistory=no");
}

function del_item(url, confirm_message)
{
	//self.event.returnValue = false;
	if (confirm(confirm_message)) location.replace(url);
}

function submit_item(id, confirm_message)
{
	//self.event.returnValue = false;
	var d = document.getElementById(id);
	var f_id= d.form.id;
	var f = document.getElementById(f_id);
	if (confirm(confirm_message)) f.submit();
}

function ch_select(id)
{
	var d = document.getElementById(id);
	var option = d.options[d.selectedIndex].value;
	var d_value = d.value;
	d.value = option;

	var f_id= d.form.id;
	var f = document.getElementById(f_id);
	f.submit();
}

function ch_box(id)
{
	var d = document.getElementById(id);
	var f_id= d.form.id;
	var f = document.getElementById(f_id);
	f.submit();
}

function r_ch(id)
{
	var d = document.getElementById(id);
	d.checked = checked;
	var f_id= d.form.id;
	var f = document.getElementById(f_id);
	f.action = f.action + '&' + d.id + '=' + d.value;	
}