function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}


function changeStyle(id, newClass){
                document.getElementById(id).className = newClass;
}

function checkUncheckAll(theElement) {
    var theForm = theElement.form, z = 0;
	 for(z=0; z<theForm.length;z++){
     if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
	  theForm[z].checked = theElement.checked;
	  }
    }
}
