function checkColor(ID, status){
	var element = document.getElementById(ID);
	if(status==true){
		element.style.background='#6589C5';
	}else{
		element.style.background='#FF5D00';
	}
}


function checkColor2(ID, name, status){
	var element = document.getElementById(ID);
	if(status==true){
		element.style.background='#6589C5';
	}else{
		element.style.background='#FF5D00';
	}
}

function setClr(color, ID){
	var element = document.editRecord["colorValue"+ID];
	element.value = color;

	var element2 = document.getElementById('color_cell'+ID);
	element2.style.background = color;
}
				
function checkHeight(object){
	var height = Math.round(parseFloat(object.value.length)/45)+3;
	object.rows = height;
}

function insertAnother(){
	document.insertForm.insert_another.checked=true
}



function setDefaultValues(){
	var action = document.getElementById('action');
	action.value = "set_default";
	document.insertForm.submit();
}
