


function getSelectTwo(str){
var destination=	document.getElementById("sparediv");	
	if(str!=''){

	 var doc = null; 

// Make a new XMLHttp object

   if (typeof window.ActiveXObject != 'undefined' ) 
   { 
       doc = new ActiveXObject("Microsoft.XMLHTTP"); 
   } 
   else 
   { 
       doc = new XMLHttpRequest(); 
   }
	 
// Load the result from the response page
// Note the response page can be any page that returns the right result. 
// I used ASP. PHP, PERL... etc could acheive the same result

// ** As far a I know firefox will only load a document on the SAME domain!!

		if (doc){ 	 
		
		 doc.open("GET", "/msg_send.asp?to="+str, false);
	   doc.send(null);

// Write the response to the div 		
			
			destination.innerHTML = doc.responseText;
			destination.className='showdiv';
		}else{
		
			destination.innerHTML = 'Browser unable to create XMLHttp Object';
		}
		
}else{
// Return the next select box back to the default
destination.className='hidediv';

}


}




//three i.e. CHANGE FRIEND


function getSelectThree(str){
var destination=	document.getElementById("sparediv");	
	if(str!=''){

	 var doc = null; 

// Make a new XMLHttp object

   if (typeof window.ActiveXObject != 'undefined' ) 
   { 
       doc = new ActiveXObject("Microsoft.XMLHTTP"); 
   } 
   else 
   { 
       doc = new XMLHttpRequest(); 
   }
	 
// Load the result from the response page
// Note the response page can be any page that returns the right result. 
// I used ASP. PHP, PERL... etc could acheive the same result

// ** As far a I know firefox will only load a document on the SAME domain!!

		if (doc){ 	 
		
		 doc.open("GET", "/friend_ajax.asp?who="+str, false);
	   doc.send(null);

// Write the response to the div 		
			
			destination.innerHTML = doc.responseText;
			destination.className='showdiv';
		}else{
		
			destination.innerHTML = 'Browser unable to create XMLHttp Object';
		}
		
}else{
// Return the next select box back to the default
destination.className='hidediv';

}


}


