/*-----------------------------------------------------------------------

 (c) 2001 e-point S.A.          http://www.e-point.pl/

  $Id: setFormsElements.js,v 1.1.1.1 2009/07/14 11:39:36 viper Exp $
-----------------------------------------------------------------------*/

function setCh(formName, fieldName, fieldIndex) {
	to = eval("document." + formName + "." + fieldName);
	if(to.type && to.type == "checkbox") {
		to.checked = !to.checked;
	} else
	if(to.length && to.length > 0 && to[fieldIndex] && to[fieldIndex].type == "checkbox" ) {
		to[fieldIndex].checked = !to[fieldIndex].checked;
	}
}

function setRadio(formName, fieldName, fieldIndex) {
	to = eval("document." + formName + "." + fieldName + "[" + fieldIndex + "]");
	to.checked = true;
}

