function isValid(date,path){
    
    var URL=path+"/todayTalk.do?archiveDate=" + date + 
    "&method=checkTodayTalk" + "&time=" + new Date().getTime();
	var xmlHttp=null;
	if (window.XMLHttpRequest) {  
		xmlHttp=new XMLHttpRequest(); 
	}else if (window.ActiveXObject) {  
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 
	}  
	xmlHttp.open("GET",URL,true);
	xmlHttp.onreadystatechange = function (){
		if (xmlHttp.readyState == 4){
			if(xmlHttp.status == 200){
				eval(xmlHttp.responseText);
				if(contentFlag){
					alert("该天没有内容！");
				} else {
					location.href=path+"/todayTalk.do?archiveDate=" + date + "&method=getTodayTalk";
				}
			}
		}
	}
	xmlHttp.send(null);
}

function checkNext(date,path){
    var URL=path+"/todayTalk.do?previousDay=" + date + 
    "&method=checkTodayTalk" + "&time=" + new Date().getTime();
	var xmlHttp=null;
	if (window.XMLHttpRequest) {  
		xmlHttp=new XMLHttpRequest(); 
	}else if (window.ActiveXObject) {  
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 
	}  
	xmlHttp.open("GET",URL,true);
	xmlHttp.onreadystatechange = function (){
		if (xmlHttp.readyState == 4){
			if(xmlHttp.status == 200){
				eval(xmlHttp.responseText);
				if(contentFlag){
					alert("下一天没有内容了！");
				} else {
					location.href=path+"/todayTalk.do?previousDay=" + date + "&method=getTodayTalk";
				}
			}
		}
	}
	xmlHttp.send(null);
}

function checkPrevious(date,path){
    
    var URL=path+"/todayTalk.do?nextDay=" + date + 
    "&method=checkTodayTalk" + "&time=" + new Date().getTime();
	var xmlHttp=null;
	if (window.XMLHttpRequest) {  
		xmlHttp=new XMLHttpRequest(); 
	}else if (window.ActiveXObject) {  
		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 
	}  
	xmlHttp.open("GET",URL,true);
	xmlHttp.onreadystatechange = function (){
		if (xmlHttp.readyState == 4){
			if(xmlHttp.status == 200){
				eval(xmlHttp.responseText);
				if(contentFlag){
					alert("上一天没有内容了！");
				} else {
					location.href=path+"/todayTalk.do?nextDay=" + date + "&method=getTodayTalk";
				}
			}
		}
	}
	xmlHttp.send(null);
}
