<!--
	function SetAllCheckBoxes(FormName, FieldName, CheckValue)
	{
		if(!document.forms[FormName])
			return;
		var objCheckBoxes = document.forms[FormName].getElementById(FieldName);
		if(!objCheckBoxes)
			return;
		var countCheckBoxes = objCheckBoxes.length;
		if(!countCheckBoxes)
			objCheckBoxes.checked = CheckValue;
		else
			// set the check value for all check boxes
			for(var i = 0; i < countCheckBoxes; i++)
				objCheckBoxes[i].checked = CheckValue;
	}

	 function checkAll (obj,type) 
	 {
	   var arrInput = document.getElementsByTagName("input");
	   for (i=0; i<arrInput.length; i++) 
	   {
		 if (arrInput[i].type == 'checkbox') 
		 {
		   if (type==1)		 	{ arrInput[i].checked = true; }
		   else if (type==0)	{ arrInput[i].checked = false;}
		   else					{ arrInput[i].checked = !arrInput[i].checked;}
		 }
	   }
	 }
 
 
	function fnShowProps(obj, objName)
	{
		var result = "";
		for (var i in obj) // обращение к свойствам объекта по индексу
			result += objName + "." + i + " = " + obj[i] + "<br />\n";
		document.write(result);
	}
	
	function roll(img_name, img_src)
	{
		document[img_name].src = img_src;
	}
	
	function MM_openBrWindow(theURL,winName,features)
	{
	  window.open(theURL,winName,features);
	}

	function senddata_changeval(form, champ, newval)
	{
		eval ("document."+form+"."+champ+".value='"+newval+"'");
		eval ("document."+form+".submit()");
	}
	
	function senddata_trt_gen(form, champ, newval, newaction)
	{
		eval ("document."+form+".action='"+newaction+"'");
		eval ("document."+form+"."+champ+".value='"+newval+"'");
		eval ("document."+form+".submit()");
	}

	function change(name)
	{
		if (document.getElementById(name).style.display=='none')
		{document.getElementById(name).style.display='block';}
		else
		{document.getElementById(name).style.display='none';}
	}


 -->
