	 function evalKeyForSubmit(event) {  
	   
	    if (event && event.which == 13)  
	       SearchFunction();  
	    else  
	       return true;  
	}  

	
	//Browser Support Code
	function SearchFunction(){

		
		var parameters = ''; 
		var ajaxRequest;  // The variable that makes Ajax possible!
		
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		//Read Data from formular
		parameters = 'searchquery=' + document.getElementById("searchquery").value + '&pageid=' + document.getElementById("pageid").value;
		document.getElementById("content").innerHTML = "<p style='height:300px;' class='loading_animation'><img class='loading_animation' alt='Loading' src='images/ajax-book.gif' /><div class='loading_zitat'><iframe width='400px' height='140px' scrolling='auto' frameborder='0' allowtransparency='true' src='http://zitate.net/zitate.html?border_color=000000&quote_background=------&image_size=120&author_fontstyle=bold&title_background=------&title_fontstyle=plain'></iframe></div></p>";
		
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				document.getElementById("content").innerHTML = ajaxRequest.responseText;
			}
		}
		ajaxRequest.open("GET", 'search.php?' + parameters, true);
		ajaxRequest.send(null); 
	}
	

	//Browser Support Code
	function PageFunction(searchquery,pageid){

		var parameters = ''; 
		var ajaxRequest;  // The variable that makes Ajax possible!
		
		try{
			// Opera 8.0+, Firefox, Safari
			ajaxRequest = new XMLHttpRequest();
		} catch (e){
			// Internet Explorer Browsers
			try{
				ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try{
					ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e){
					// Something went wrong
					alert("Your browser broke!");
					return false;
				}
			}
		}
		//Read Data from formular
		parameters = 'searchquery=' + searchquery + '&pageid=' + pageid;
		document.getElementById("content").innerHTML = "<p style='height:300px;' class='loading_animation'><img class='loading_animation' alt='Loading' src='images/ajax-book.gif' /><div class='loading_zitat'><iframe width='400px' height='140px' scrolling='auto' frameborder='0' allowtransparency='true' src='http://zitate.net/zitate.html?border_color=000000&quote_background=------&image_size=120&author_fontstyle=bold&title_background=------&title_fontstyle=plain'></iframe></div></p>";
		
		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if(ajaxRequest.readyState == 4){
				document.getElementById("content").innerHTML = ajaxRequest.responseText;
			}
		}
		ajaxRequest.open("GET", 'search.php?' + parameters, true);
		ajaxRequest.send(null); 
	}
