function filllocations(sel)


{


 
		document.getElementById('DealerLocations').options.length = 0;	// Empty Locations select box
	 
 
			var index = ajax.length;
			ajax[index] = new sack();
		 

	ajax[index].requestFile = host + '/access-platforms/getmakes1.asp?startloc=2';		
		
			ajax[index].onCompletion = function(){ createlocations(index) };	// Specify function that will be executed after file has been found
			ajax[index].runAJAX();		// Execute AJAX function

 



 
}



function createlocations(index)
{
	var obj = document.getElementById('DealerLocations');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
getheight();
}





function addLoadEvent(func) {   
  var oldonload = window.onload;   
   if (typeof window.onload != 'function') {   
     window.onload = func;   
   } else {   
     window.onload = function() {   
       if (oldonload) {   
         oldonload();   
      }          func();   
     }   
   }   
 }   

var globalholder = 1;
var url =""+window.location;
var urlparts = url.split('/');
var host = urlparts[0] + '//' + urlparts[2];
 addLoadEvent(filllocations); 