
function DoPostComment(id){
	var myDiv = document.getElementById("Comment");
	myDiv.style.display="";
	SetValue("BlogId", id) ;

}
function DoComment(id){
	var td = document.getElementById("CommentList");
	if(td.style.display=="none")
		td.style.display="";
	else
		td.style.display="none";

}
function DoCancel(){
	var myDiv = document.getElementById("Comment");
	myDiv.style.display="none";

}
function DoPublish(){
	var myDiv = document.getElementById("Comment");
	myDiv.style.display="none";

	var param = "list=S|"+GetValue("BlogId")+"|"+escape(GetValue("PostComments"));
	//alert(param);
	getResponseWithScript('DetailsBlog',param,'LoadingPanel','/blog/viewer.aspx');
}
function DoGrid(){


}
function ViewBlog(id){
	var param = "list=V|"+id+"|";
	//alert(param);
	getResponseWithScript('DetailsBlog',param,'LoadingPanel','/blog/viewer.aspx');
}

      function flatCalendarCallback(cal) {
        if (cal.dateClicked) {
          //var url = 'http://www.mydomain.com/' + cal.date.print('%m/%d/%Y/');
          //alert('Jumping to: “' + url + '” (not really).');
 	var param = "list=C|"+cal.date.print('%m/%d/%Y')+"|";
	getResponseWithScript('DetailsBlog',param,'LoadingPanel','/blog/viewer.aspx');         
        //  ViewBlog(0);
          
          
          // uncomment the following line to actually jump:
          // window.location = url;
        }
      };

