function createQCObject()
{
var http = false;
try
  {
    http = new XMLHttpRequest(); /* e.g. Firefox */
  }
catch(err1)
  {
  try
    {
    http = new ActiveXObject("Msxml2.XMLHTTP");
  /* some versions IE */
    }
  catch(err2)
    {
    try
      {
      http = new ActiveXObject("Microsoft.XMLHTTP");
  /* some versions IE */
      }
      catch(err3)
        {
        http = false;
        }
    }
  }
return http;
}


// Make the XMLHttpRequest object quickCalender 
var http = createQCObject(); 

function Prev(yearmonth) {
	var ran_no=+ new Date().getTime();
	
	http.open("GET", 'pod_cal.php?yearmonth='+yearmonth+'&ran='+ran_no, true);
   	http.onreadystatechange = function() {
		if(http.readyState == 4) {
        // if server HTTP response is "OK"
        if(http.status == 200) {
             document.getElementById("calendar").innerHTML = http.responseText;
        } else {
            // issue an error message for any
            // other HTTP response
            alert("An error has occurred: " + http.statusText);
        }
    }/*else {     // if readyState has changed
                 // but readyState <> 4
           document.getElementById('quickCalender').innerHTML = '';
    }*/
		
		/*if(http.readyState == 4 && http.status == 200) { 
      		var response = http.responseText;
      		if(response) { 
				document.getElementById("quickCalender").innerHTML = http.responseText; 
      		} 
   		}*/ 
	} 
   	http.send(null); 
}
function Next(yearmonth) {
	var ran_no=+ new Date().getTime();
	
	http.open("GET", 'pod_cal.php?yearmonth='+yearmonth+'&ran='+ran_no, true);
   	http.onreadystatechange = function() {
		if(http.readyState == 4) {
        // if server HTTP response is "OK"
        if(http.status == 200) {
             document.getElementById("calendar").innerHTML = http.responseText;
        } else {
            // issue an error message for any
            // other HTTP response
            alert("An error has occurred: " + http.statusText);
        }
    }/*else {     // if readyState has changed
                 // but readyState <> 4
           document.getElementById('quickCalender').innerHTML = '';
    }*/
		
		/*if(http.readyState == 4 && http.status == 200) { 
      		var response = http.responseText;
      		if(response) { 
				document.getElementById("quickCalender").innerHTML = http.responseText; 
      		} 
   		}*/ 
	} 
   	http.send(null); 
}//onkeyup="SendQuery(this.value)"

function SendQuery(qty){
	var qty = document.getElementById("qty").value;
	 var nominations=document.getElementById('nominations');
		nominations.innerHTML='';
			for (i=1; i<=qty; i++){ 
			 nominations.innerHTML +="Name["+ i +"]:<input type='text' name='namem[]' size='15' />";
			 nominations.innerHTML +="Designation["+ i +"]:<input type='text' name='designationm[]' size='4' />";
			 nominations.innerHTML +="Email["+ i +"]:<input type='text' name='emailm[]' size='8' />";
			 nominations.innerHTML +="Phone["+ i +"]:<input type='text' name='phonem[]' size='8' /><br /><br />";
			 
			}
		        }