//финкции при въвеждане на полета - продължение
//Христо Марков Христов - 21 Март 2007 г.

//alert("zarejdam f1.js palen");


function scusstart(){ return 1;}

function scusbwclick(ff) //при натискане на бутон от BW
{
//	alert(ff.scusst);
	ret=0;
	if(typeof(ff.scusform)=="undefined") //бутони от bw
	{
		usl=1;
		if(typeof(ff.scususl)!="undefined") usl=scusform.scusf(ff.scususl);
		if(+usl)
		{
			if(typeof(ff.scusst)!="undefined") scusform.scusf(ff.scusst);
		}
		else if(typeof(ff.scuserr)!="undefined")
		{
			err=scusform.scusf(ff.scuserr);
			if(+err)
			{
				if(typeof(ff.scustexterr)!="undefined")	alert(scusform.scusf(ff.scustexterr));
				else("INVALID VALUE");
				ret=err;
			}
		}
	}
	else //бутони от ms
	{
		scusonkeydown1(ff,13); //натиснат ENTER
	}
	return ret;
}

var actionbutton=0;

function scusfocusbutton(ff)
{
	scusab=ff;
	scusactionbutton();
}
function scusactionbutton()
{
	actionbutton=(actionbutton==0);
	if(actionbutton)
	{
		scusab.style.border='2px outset green';
	}
	else
	{
		scusab.style.border='2px outset white';
	}

	clearTimeout(scusab.timeout);
	scusab.timeout=setTimeout('scusactionbutton()',1000);

}
