function navigatequestionof(month,year,mydate) {
		var presentmonth=month;
		var presentyear=year;
		var presentday=mydate;
		if((presentmonth)<10){
		var modifiedmonth="0"+presentmonth;	
		}else {
		var modifiedmonth=presentmonth;
		}
		
		if((presentday)<10){
		var modifiedday="0"+presentday;	
		}else {
		var modifiedday=presentday;
		}
		var questiondate=presentyear+"-"+modifiedmonth+"-"+modifiedday;
		
		
		document.getElementById("mydateselect").value=questiondate
}



var xmlhttp
function navigatequestionofget(month,year,mydate){
	xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }



var presentmonth=month;
		var presentyear=year;
		var presentday=mydate;
		if((presentmonth)<10){
		var modifiedmonth="0"+presentmonth;	
		}else {
		var modifiedmonth=presentmonth;
		}
		
		if((presentday)<10){
		var modifiedday="0"+presentday;	
		}else {
		var modifiedday=presentday;
		}
		
		var se=mymaxvalue=document.getElementById("txtQuestion1").value;
		document.getElementById("charcount").innerHTML=se.length;
		var questiondate=presentyear+"-"+modifiedmonth+"-"+modifiedday;
		var displaydate=modifiedday+"-"+modifiedmonth+"-"+presentyear
		
		
		
		
document.getElementById("datenewforsave").innerHTML="Selected Date:"+displaydate;
var url="messagequestionadded.php";
url=url+"?what="+questiondate;




xmlhttp.onreadystatechange=featurededitgodata
xmlhttp.open("POST",url,true);
xmlhttp.send(null);
}

function featurededitgodata(){
	
	if (xmlhttp.readyState==4)
  {
	
	
	//alert(xmlhttp.responseText);
    var strin=xmlhttp.responseText;
	chan = strin.split("`lo`");

    document.getElementById("updatedidis").value=chan[0];
	document.getElementById("txtQuestion1").value=chan[1];
	document.getElementById("txtQuestion1").innerHTML=chan[1];
	document.getElementById("myhiddenquesionadde").value=chan[1];
	var clear=chan[1].replace(/\s+$/,"");
	var clearcs= clear.replace(/^\s+/,"");
	
//	document.getElementById("charcount").innerHTML=700 - chan[1].length;	
	if(clearcs=="No Question"){
	
	document.getElementById("charcount").innerHTML=150;
	}else {
	document.getElementById("charcount").innerHTML=150 - clearcs.length -2;	
	}	
//	} 
	 
  }
	
	
}


