			
			function triggerevent()
			{
			
					fname = document.sajax_frm.value_keyword.value
					//fname11 = document.sajax_frm.date_value.value
					fname = fname.toLowerCase()
					aryText = fname.length;
					if(aryText > 1)
					{
							//sayHello(fname,fname11);
							sayHello(fname);
					}
			}


			//Gets the browser specific XmlHttpRequest Object
			function getXmlHttpRequestObject() {
				if (window.XMLHttpRequest) {
					return new XMLHttpRequest(); //Not IE
				} else if(window.ActiveXObject) {
					return new ActiveXObject("Microsoft.XMLHTTP"); //IE
				} else {
					//Display your error message here. 
					//and inform the user they might want to upgrade
					//their browser.
					alert("Your browser doesn't support the XmlHttpRequest object.  Better upgrade to Firefox.");
				}
			}			
			//Get our browser specific XmlHttpRequest object.
			var receiveReq = getXmlHttpRequestObject();		
			//Initiate the asyncronous request.
			
			function sayHello(value,value1) {
			
				//alert(value);
				//If our XmlHttpRequest object is not in the middle of a request, start the new asyncronous call.
				if (receiveReq.readyState == 4 || receiveReq.readyState == 0) {
					//Setup the connection as a GET call to SayHello.html.
					//True explicity sets the request to asyncronous (default).
					//receiveReq.open("GET", 'http://localhost/goa_new/searching_event.php?cal_id='+value1+'&keywords='+value, true);
					receiveReq.open("GET", '../searching_event.php?keywords='+value, true);
					//Set the function that will be called when the XmlHttpRequest objects state changes.
					receiveReq.onreadystatechange = handleSayHello; 
					//Make the actual request.
					receiveReq.send(null);
				}			
			}
			//Called every time our XmlHttpRequest objects state changes.
			function handleSayHello() {
				//Check to see if the XmlHttpRequests state is finished.
				if (receiveReq.readyState == 4) {
					//Set the contents of our span element to the result of the asyncronous call.
					////visibility:hidden;
					/// this hides the layer if ajax is used
					document.getElementById('search_option_id').style.visibility="hidden";
					
					document.getElementById('span_result').innerHTML = receiveReq.responseText;
				}
			}