function it(id)
{
var ret;
	if (document.getElementById) 
		ret = document.getElementById(id);
	else if (document.all)
		ret = document.all(id);
	else if (document.layers)
		ret = document.layers[id];
	else if (document[id])
		ret = document[id];
return ret; 
}

var theform=document.forms[0];

function SetAction(com,val,conf)
{
	var cont=true;
	if (typeof(conf)!='undefined' && trim(conf).length>0)
	{
		cont=confirm(conf);
	}
	if (cont)
	{
		it('f_source').value=com;
		it('f_value').value=val;
		it('Form1').submit();	
	}
}