function ajaxAddTrip(){
		var xmlHttp;
		try  
		{
			xmlHttp=new XMLHttpRequest();  
		}
		catch (e)
  		{
			try
    		{
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
  			catch (e)
			{    
				try
	      		{
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 
				}
    			catch (e)
	      		{
					alert("Your browser does not support AJAX!");
					return false;      
				}    
			}  
		}
		
  		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4) { 
				/*success!*/ 
				location.reload(true);
			}
			else { /*failure!*/ }
		}
		
		var tripName = document.getElementById('tripname').value;
		var tripDesc = document.getElementById('tripdescrip').value;
		var tripShare = document.getElementById('tripshare').checked;
		var tripSharePublic = document.getElementById('tripshareOptPublic').checked;
		var tripShareProtected = document.getElementById('tripshareOptProtected').checked;
		var tripPassword = document.getElementById('trippass').value;
		
		var tripProtection

		//alert(tripShare);
		if (tripShare) {
			if (tripSharePublic) {
				//public
				tripProtection = 0
			} else {
				//protected
				tripProtection = 1
			}
		} else {
			//private
			tripProtection = 2
		}
		
		var url = "../tripplanner/ajax/ajaxSaveTrip.aspx?";
		url += "name="+tripName;
		url += "&desc="+tripDesc;
		url += "&protection="+tripProtection;
		url += "&pword="+tripPassword;
		url += "&sid="+Math.random()
		
		//alert(url);
		
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
}