<!--
function getCookie(sName) {
	var cookie = "" + document.cookie;
	var start = cookie.indexOf(sName);
	if (cookie == "" || start == -1) 
		return "";
	var end = cookie.indexOf(';',start);
	if (end == -1)
		end = cookie.length;
	return unescape(cookie.substring(start+sName.length + 1,end));
}
function setCookie(sName, value) {
	document.cookie = sName + "=" + escape(value) + ";path=/;expires=Fri, 1 Jan 2010 00:00:00 GMT;";
}
function ShowEditBlock(block) {
	block.style.borderColor = "red";
}
function HideEditBlock(block) {
	block.style.borderColor = "white";
}

function stCheckAllBoxes() {
	void(d=document);
	void(el=d.getElementsByTagName('INPUT'));
	for(i=0;i<el.length;i++)
		void(el[i].checked=1) 
}

function stUnCheckAllBoxes() {
	void(d=document);
	void(el=d.getElementsByTagName('INPUT'));
	for(i=0;i<el.length;i++)
		void(el[i].checked=0)  
}

function RowSetBackgroundColor(row, color) {
    if (row!=null){
        row.style.backgroundColor = color;
    }
}

function RowSetBackgroundColorOnCheck(checkbox, rowid, color_checked, color_unchecked) {
   if ((checkbox)!=null){        
		if (checkbox.checked==true){
			RowSetBackgroundColor(document.getElementById(rowid), color_checked);
		} else {
			RowSetBackgroundColor(document.getElementById(rowid), color_unchecked);					
		}
	}    
}


//-->

