/*
 *    for trim .....
 */
      
   function trim(stringToTrim){
	   return stringToTrim.replace(/^\s+|\s+$/g,"");
	}

/*
 * Function to allow one JavaScript file to be included by another.
 * Copyright (C) 2006-08 www.cryer.co.uk
 */ 

    function IncludeJavaScript(jsFile){
      document.write('<script type="text/javascript" src="'
        + jsFile + '"></scr' + 'ipt>'); 
    }

/*
 *    calling another javascript file from this script...
 */

	IncludeJavaScript('js/ajax.js');
	IncludeJavaScript('js/modal-message.js');
	IncludeJavaScript('js/ajax-dynamic-content.js');
	
/*
 *    creating class for select menu
 */

function searchrestaurant (){
	
	  	this.id_seperator = '';
		this.name_seperator = '';
		this.ingredient_amount  = 0;
		this.I_ID    = 0;
		this.R_ID    = 0;
		this.U_ID    = 0;
		this.I_Name  = '';
		this.I_Price = 0;
		this.checkRadio = 0;

		
/*
 *   call to the ajax function.
 */

  this.ajaxCall = function (url,functionName){		  			
			 AJAXLIB.makeGetRequest(url,functionName);
       }

///////////////////////////////////////////// Add To Section ///////////////////////////////////////////////////

/*
 *    buulding ajax url to call
 */	 
 
		
		this.submitmiles = function() {
	//alert(document.getElementById('radiusSelect').value);
	//document.searchmenu.submit();
	}
} // end of select menu class...

/*
 *    creating object of class select menu
 */

var oSearchrestaurant = new searchrestaurant();


