function change(x,tid){
var obj;
var tTd;
var i=0;
for(i=1+(x-1)*7;i<=x*7;i++){
obj=document.getElementById("div"+i);
tTd=document.getElementById("t"+i);
if(parseInt(tid)+(x-1)*7==i){
tTd.style.background="#CA0016";
tTd.style.color="#ffffff";
tTd.style.fontWeight="bold";
obj.style.display="block";
}else{ 
tTd.style.background="";
tTd.style.color="#6C6C6C";
tTd.style.fontWeight="";
obj.style.display="none"; 
}
}
}

