function cb_clear(){ 
	var inputlist = document.getElementsByTagName("input");
	for (i = 0; i < inputlist.length; i++) {
		if ( inputlist[i].getAttribute("type") == 'checkbox' ) {
			inputlist[i].checked = false
		}
	}
}

function cb_check() {
	var inputlist = document.getElementsByTagName("input");
	for (i = 0; i < inputlist.length; i++) {
		if ( inputlist[i].getAttribute("type") == 'checkbox' ) {
				inputlist[i].checked = true;
		}
	}
}
function cb_toggle() 	{
	var inputlist = document.getElementsByTagName("input");
	for (i = 0; i < inputlist.length; i++) {
		if ( inputlist[i].getAttribute("type") == 'checkbox' ) {
			if (inputlist[i].checked)	inputlist[i].checked = false
			else	
				inputlist[i].checked = true;
		}
	}
}
function text_focus(){
if (document.forms.length > 0) {
var field = document.forms[0];
	for (i = 0; i < field.length; i++) {
		if (field.elements[i].type == "text") {
		document.forms[0].elements[i].focus();
		break;
         }
      }
   }
}

function id_focus(el){
document.getElementById(el).select();
document.getElementById(el).focus();
}

