function GetSubTypes(tid,checked){
	if(!checked){
		$('sub_type_'+tid).innerHTML = '';
		return false;
	}
var get_srt = 'get_sub_types='+tid;
new Ajax.Request('http://'+document.location.host+'/public/ajax/search.php',
  { method:'get',
    parameters: get_srt,
    onSuccess: function(originalRequest){	
    	var val = originalRequest.responseText;
		$('sub_type_'+tid).innerHTML = val;
    },
    onFailure: function(){ 
    	alert('Something went wrong...')
     }
  }
  );	
}
