// JavaScript Document
document.write('<script src="/js/UI.blockUI.js" charset="gb2312"></script>');



//unescape(json[i].size);
function ShowCourse(id,type,Period)
{

	$.getJSON("ShowCourse.asp?type="+type+"&Period="+Period,function (json){
		if(json){
			
			var showCourse;
			// alert(isTea);
			showCourse = "<table width=\"560\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
			for(i=0;i<json.length;i++)
			{
				
				
				showCourse =showCourse + "<tr>";
				showCourse =showCourse + "<td width=\"133\" height=\"30\" align=\"center\" background=\"images/kecheng07.jpg\">"+unescape(json[i].TimeBegin)+"£¨"+unescape(json[i].week)+"£©</td>";
				showCourse =showCourse + "<td width=\"97\" align=\"center\" background=\"images/kecheng07.jpg\">"+unescape(json[i].Time)+"</td>";
				showCourse =showCourse + "<td width=\"261\" align=\"center\" background=\"images/kecheng07.jpg\">"+unescape(json[i].Course)+"<br /></td>";

				showCourse =showCourse + "</tr>";
				
			}
			
			showCourse =showCourse + "</TABLE>";
			document.getElementById("td_"+id).innerHTML=showCourse;
			document.getElementById("txt"+id).innerHTML=unescape(json[0].issue);
			
		}
											   });

}



function typeContent(typename)
{
		
	 var id = $("#type").val();
	
	 $.getJSON("typeContent.asp?id="+id,function(json){
	 if(json){
		
		$("#typename").empty();
	
		for(var i=0; i<json.length; i++){
	
			var option = document.createElement("option");
			option.value = unescape(json[i].type);
			if(unescape(json[i].type)==typename){option.selected = true;}
			option.innerHTML =unescape(json[i].type);
			$("#typename").append(option);
			
	}
		
	  }
	  
   }
   );
}


