function models(gID){
var ajaxRequest1;  // The variable that makes Ajax possible!
	
 try{
   // Opera 8.0+, Firefox, Safari
   ajaxRequest1 = new XMLHttpRequest();
 }catch (e){

   // Internet Explorer Browsers
   try{
      ajaxRequest1 = new ActiveXObject("Msxml2.XMLHTTP");
   }catch (e) {
      try{
         ajaxRequest1 = new ActiveXObject("Microsoft.XMLHTTP");
      }catch (e){
         // Something went wrong
         alert("Your browser broke!");
         return false;
      }
   }
 }
 // Create a function that will receive data 
 // sent from the server and will update
 // div section in the same page.
 ajaxRequest1.onreadystatechange = function(){
	 
	 
   if(ajaxRequest1.readyState == 4){

	  

      var ajaxDisplay1 = document.getElementById('mdivID');
	  ajaxDisplay1.innerHTML = ajaxRequest1.responseText;
      
	  
   }
    if(!ajaxRequest.readyState == 4)
		 {
	   var ajaxDisplay = document.getElementById('loading');
		    ajaxDisplay.innerHTML = '<img src="images/status-loading.gif" border="0">';
		 }
  
 }
// Now get the value from user and pass it to
 // server script.
 
 
 
 var queryString = "?modelID=" + gID ;

 
 
 ajaxRequest1.open("GET", 'getmodels.php'+ queryString, true);
 ajaxRequest1.send(null); 
}

