
		//toprecipe vars
		var httpconn_toprecipes_toprecipes_url = "recipesajax.aspx";

		//request objects				
		var httpconn_toprecipes = getHTTPObject(); // My Sender Object	
		
		
		function gettoprecipes(pagenumber)
		{
			update_toprecipes(pagenumber);
			//any other display stuff here
		}
	
		//proxy function 
		function update_toprecipes(pagenumber)
		{
				getupdate_toprecipes(pagenumber);
		}
		
		function getupdate_toprecipes(pagenumber)
		{
		  if (httpconn_toprecipes.readyState == 4 || httpconn_toprecipes.readyState == 0)
		  {
			  param = '?top5=true&currentpage=' + pagenumber;
			  httpconn_toprecipes.open("GET", httpconn_toprecipes_toprecipes_url + param, true);	
			  httpconn_toprecipes.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
			  httpconn_toprecipes.onreadystatechange = handleresponse_getupdate_toprecipes; //set handler for readystatechange event
			  httpconn_toprecipes.send(param); //send query to .net page	  
		  } 
		}

		
		function handleresponse_getupdate_toprecipes()
		{
		  if (httpconn_toprecipes.readyState == 4) 
		  {
			result = httpconn_toprecipes.responseText;
			document.getElementById('top5container').innerHTML = result;
		  }
		}
		
		

