
	var BASE_URL = "";
	var _ms_XMLHttpRequest_ActiveX = ""; // Holds type of ActiveX to instantiate
			
	function fnOpenPublicProfile(profileId)
	{
			myURL = "/do/publicProfileDetails?travel=publicProfileDetails&profileId="+profileId;
			newWin = window.open(myURL,"PublicProfile","HEIGHT=400,WIDTH=500,scrollbars=yes,status=yes");
   	}

	
	
	function expandAll()
	{		
		if(document.getElementById('expandMinimiseAnchor').innerHTML == 'Expand All'){
			for(var k=0;k<tpIdArray.length;k++){
				var divId = tpIdArray[k];
				if(document.getElementById(divId+"m")!=null){
					document.getElementById(divId+"m").style.display = "block";	
				}
				if(document.getElementById(divId+"p")!=null){
					document.getElementById(divId+"p").style.display = "none";
				}
				if(document.getElementById(divId+"s")!=null){
					document.getElementById(divId+"s").style.display = "block";
				}
			}
			document.getElementById('expandMinimiseAnchor').innerHTML = 'Collapse All';
		}else{
			for(var k=0;k<tpIdArray.length;k++){
				var divId = tpIdArray[k];
				if(document.getElementById(divId+"m")!=null){
					document.getElementById(divId+"m").style.display = "none";	
				}
				if(document.getElementById(divId+"p")!=null){
					document.getElementById(divId+"p").style.display = "block";
				}
				if(document.getElementById(divId+"s")!=null){
					document.getElementById(divId+"s").style.display = "none";
				}
			}
			document.getElementById('expandMinimiseAnchor').innerHTML = 'Expand All';
		}
			
	}
	
	
	function showMoreMessage(divId)
	{		
		if(document.getElementById(divId+"m")!=null)
		{
			document.getElementById(divId+"m").style.display = "block";	
		}
		if(document.getElementById(divId+"p")!=null)
		{
			document.getElementById(divId+"p").style.display = "none";	
		}
		if(document.getElementById(divId+"s")!=null)
		{
			document.getElementById(divId+"s").style.display = "block";
		}
	}
	
	function showBriefMessage(divId)
	{		
		
		if(document.getElementById(divId+"m")!=null)
		{
			document.getElementById(divId+"m").style.display = "none";
		}
		if(document.getElementById(divId+"p")!=null)
		{
			document.getElementById(divId+"p").style.display = "block";
		}
		if(document.getElementById(divId+"s")!=null)
		{
			document.getElementById(divId+"s").style.display = "none";
		}
		
	}
	
	function showMoreMessageArc(divId)
	{		
		document.getElementById(divId+"am").style.display = "block";	
		document.getElementById(divId+"ap").style.display = "none";			
		document.getElementById(divId+"as").style.display = "block";
	}
	function showBriefMessageArc(divId)
	{		
		document.getElementById(divId+"am").style.display = "none";	
		document.getElementById(divId+"ap").style.display = "block";	
		document.getElementById(divId+"as").style.display = "none";
	}
	
	function fnOpenOperatorProfile(companyId)
	{
			myURL = "/do/interestOperatorDescription?travel=interestOperatorDetailAction&companyId="+companyId;
			newWin = window.open(myURL,"PublicProfile","HEIGHT=400,WIDTH=500,scrollbars=yes,status=yes");
   	}
   	
   	function getTravelPlanByGroup(travelPlanId,travelGroupId)
   	{
   		var travelPlanForm=document.TravelPlanMainForm;
   		travelPlanForm.travelPlanId.value=travelPlanId;
   		travelPlanForm.travelGroupId.value=travelGroupId;
   		travelPlanForm.action="/do/travelPlanOverview?travel=getPlanOverview";
   		travelPlanForm.submit();
   	}
   	
   	
   	function viewTravelPlan(travelPlanId,travelGroupId)
   	{
   		var travelPlanForm=document.TravelPlanViewForm;
   		travelPlanForm.travelPlanId.value=travelPlanId;
   		travelPlanForm.travelGroupId.value=travelGroupId;
   		travelPlanForm.action="/do/travelPlanOverview?travel=getPlanOverview";
   		travelPlanForm.submit();
   	}
   	
   function viewTravelPlanSharingDetails(travelplanId,travelGroupId)
   	{
   		
   		var travelPlanForm=document.TravelPlanViewForm;
   		travelPlanForm.travelPlanId.value=travelplanId;
   		travelPlanForm.travelGroupId.value=travelGroupId;
   		travelPlanForm.action="/do/travelPlanSharing?travel=getPlanSharingDetails&travelPlanId="+travelplanId;
   		travelPlanForm.submit();
   	}
   	
   	 function fnTripContents(travelplanId,travelGroupId)
   	{
//   		document.getElementById("contentInnerId").style.display = "none";
//   		document.getElementById("progressPageId").style.display = "block";
		document.getElementById("tab_sub_frame_main_ntpext").style.display = "none";
   		document.getElementById("waitMessage").style.display = "block";
   		var travelPlanForm=document.TravelPlanViewForm;
   		travelPlanForm.travelPlanId.value=travelplanId;
   		travelPlanForm.travelGroupId.value=travelGroupId;
   		travelPlanForm.action="/do/tripContents?travel=tripContents&travelPlanId="+travelplanId;
   		travelPlanForm.submit();
   	}
   	
      	
   function fnTravelPlanTravelLogs(travelplanId,travelGroupId)
   	{
   		var travelPlanForm=document.TravelPlanViewForm;
   		travelPlanForm.travelPlanId.value=travelplanId;
   		travelPlanForm.travelGroupId.value=travelGroupId;
   		travelPlanForm.action="/do/planTripReport?travel=planTripReport&travelPlanId="+travelplanId;
   		travelPlanForm.submit();
   	}
   	
   	 function fnTravelPlanMap(travelplanId,travelGroupId)
   	{
   		var travelPlanForm=document.TravelPlanViewForm;
   		travelPlanForm.travelPlanId.value=travelplanId;
   		travelPlanForm.travelGroupId.value=travelGroupId;
   		travelPlanForm.action="/do/travelPlanMap?travel=travelPlanMap&travelPlanId="+travelplanId;
   		travelPlanForm.submit();
   	}
   	 function fnTravelPlanSchedule(travelplanId,travelGroupId)
   	{
   		document.getElementById("tab_sub_frame_main_ntpext").style.display = "none";
   		document.getElementById("waitMessage").style.display = "block";
   		var travelPlanForm=document.TravelPlanViewForm;
   		travelPlanForm.travelPlanId.value=travelplanId;
   		travelPlanForm.travelGroupId.value=travelGroupId;
   		travelPlanForm.action="/do/travelPlanSchedule?travel=travelPlanSchedule&travelPlanId="+travelplanId;
   		travelPlanForm.submit();
   	}
   	
   	function fnTravelPlanRemove(typeOfTravelPlan,type)
	{
		var elements = document.getElementsByName(typeOfTravelPlan);
		var atleastOneElementsSelected = false;
		for(var i = 0; i < elements.length; i++) 
		{
			if(elements[i].checked)
			{
				atleastOneElementsSelected = true;
				break;
			}
		}
		if(! atleastOneElementsSelected) 
		{
			document.getElementById('errors').innerHTML='<div id="msg2_error_base"><div id="msg2_error_left_01a" style="margin-top:10px">Please select any folder to remove.</div><div id="msg2_error_left_01b"></div></div>';
			return false;
		}

		document.TravelPlanMainForm.action = "/do/travelPlanList?travel=travelPlanList";
		document.TravelPlanMainForm.travelPlanType.value=type;
		document.TravelPlanMainForm.submit();
	}
	
   	function fnMoveToFolder()
	{
		var selectedItems =  document.getElementsByName("selectedTPItems");
		//var selectedItems = document.TravelPlanMainForm.selectedTPItems;
		var createCopyFlag = document.TravelPlanMainForm.createCopyFlag;
//		var targetedTravelPlanId = document.getElementsByName("targetedTravelPlanId");
		var targetedTravelPlanId = document.TravelPlanMainForm.targetedTravelPlanId;
		//var createCopyFlag = document.TravelPlanMainForm.createCopyFlag;
			var atleastOneItemSelected = false;
			for(var i = 0; i < selectedItems.length; i++) 
			{
				if(selectedItems[i].checked) 
				{
					atleastOneItemSelected = true;
					break;
				}
			}
				
				if(!atleastOneItemSelected || (targetedTravelPlanId.selectedIndex == 0))
				{
					document.getElementById('errors').innerHTML='<div id="msg2_error_base"  style=" width:320px;"><div id="msg2_error_left_01a" style="margin-top:10px">Please select any folder and an item to move.</div><div id="msg2_error_left_01b"></div></div>';
					return false;
				}else{
					document.getElementById('errors').innerHTML='';
				}
				document.TravelPlanMainForm.action = "/do/moveTPItems?travel=moveTPItems";	
				document.TravelPlanMainForm.submit();	
			
	}
  		
  		//
  		
  			var selectedTPItems = document.getElementsByName("selectedTPItems");
			
			function fnTPItemSave()
			{	
				var travelPlanMainForm=document.TravelPlanMainForm;
		   		
		   		var tempstr="";
		   		for(i=0;i<selectedTPItems.length;i++)
				{
					if(i!=0)
					{
						tempstr+="@";
					}
					tempstr+=selectedTPItems[i].value;
					
				}
		   		travelPlanMainForm.selectedTPItemsStr.value=tempstr;	
					
				document.TravelPlanMainForm.action = "/do/updateTPItems?travel=updateTPItems";
				document.TravelPlanMainForm.submit();
			} 
			
			/* Below method is to remove a loose item.
			*/
			
			function fnMyScheduleRemoveTPItems()
			{
				var tpChecked = false;
				var len = selectedTPItems.length;
				var checkedCount = 0;
				for (var indx = 0; indx <selectedTPItems.length; indx++)
					{
						if(selectedTPItems[indx].checked == true)
						{
							checkedCount++;
						}
					}
				if(checkedCount == 0)
				{
					document.getElementById('errors').innerHTML='<div id="msg2_error_base"><div id="msg2_error_left_01a" style="margin-top:10px">Please select an item to remove.</div><div id="msg2_error_left_01b"></div></div>';
					return ;
				}
				
				
				n = confirm("Are you sure you want to remove these items.", "Cancel", "Yes, Remove them");
				var tempSelectedTpItemsId = "";
				if(n)
				{
					for (var indx = 0; indx <selectedTPItems.length; indx++)
					{
						if(selectedTPItems[indx].checked == true)
						{
							var tpId = selectedTPItems[indx].value.substr(0,selectedTPItems[indx].value.indexOf('#'));
							tempSelectedTpItemsId = tempSelectedTpItemsId + selectedTPItems[indx].value + "!";
							var parentNodename = document.getElementById(tpId).parentNode;
							parentNodename.removeChild(document.getElementById(tpId));
							//parentNodename.removeChild(document.getElementById(tpId+"img"));
							tpChecked = true;
							// If an item is removed index and lenght will be reduced by one
							indx--;
							len--;
						}
						
					}
					tempSelectedTpItemsId = tempSelectedTpItemsId.substr(0,tempSelectedTpItemsId.lastIndexOf('!'));
					document.getElementById('errors').innerHTML='';
				
					if(!tpChecked)
					{
						document.getElementById('errors').innerHTML='<div id="msg2_error_base"><div id="msg2_error_left_01a" style="margin-top:10px">Please select an item to remove.</div><div id="msg2_error_left_01b"></div></div>';
					}else
					{
							var travelPlanId = window.document.TravelPlanMainForm.selectedTravelPlanId.value;
							return new generateRequest("post", BASE_URL + "/do/addTravelPlanFavorite", "travel=removeTPItems&travelPlanId=" + travelPlanId+"&selectedTPItems="+tempSelectedTpItemsId, processTravelPlanResponseData);	
					}
				}
			}
			
			
			function fnRemoveSelected()
			{
				var tpChecked = false;
				var len = selectedTPItems.length;
				var checkedCount = 0;
				for (var indx = 0; indx <selectedTPItems.length; indx++)
					{
						if(selectedTPItems[indx].checked == true)
						{
							checkedCount++;
						}
					}
				if(checkedCount == 0)
				{
					document.getElementById('errors').innerHTML='<div id="msg2_error_base"><div id="msg2_error_left_01a" style="margin-top:10px">Please select an item to remove.</div><div id="msg2_error_left_01b"></div></div>';
					return ;
				}
				
				
				n = confirm("Are you sure you want to remove these items.", "Cancel", "Yes, Remove them");
				var tempSelectedTpItemsId = "";
				if(n)
				{
					for (var indx = 0; indx <selectedTPItems.length; indx++)
					{
						if(selectedTPItems[indx].checked == true)
						{
							var tpId = selectedTPItems[indx].value.substr(0,selectedTPItems[indx].value.indexOf('#'));
							tempSelectedTpItemsId = tempSelectedTpItemsId + selectedTPItems[indx].value + "!";
							var parentNodename = document.getElementById(tpId).parentNode.parentNode;
							parentNodename.removeChild(document.getElementById(tpId).parentNode);
							parentNodename.removeChild(document.getElementById(tpId+"img"));
							tpChecked = true;
							// If an item is removed index and lenght will be reduced by one
							indx--;
							len--;
						}
						
					}
					tempSelectedTpItemsId = tempSelectedTpItemsId.substr(0,tempSelectedTpItemsId.lastIndexOf('!'));
					document.getElementById('errors').innerHTML='';
				
					if(!tpChecked)
					{
						document.getElementById('errors').innerHTML='<div id="msg2_error_base"><div id="msg2_error_left_01a" style="margin-top:10px">Please select an item to remove.</div><div id="msg2_error_left_01b"></div></div>';
					}else
					{
							var travelPlanId = window.document.TravelPlanMainForm.selectedTravelPlanId.value;
							return new generateRequest("post", BASE_URL + "/do/addTravelPlanFavorite", "travel=removeTPItems&travelPlanId=" + travelPlanId+"&selectedTPItems="+tempSelectedTpItemsId, processTravelPlanResponseData);	
					}
				}
			}
  		
  		
  		//
  	

			function processTravelPlanResponseData( myAJAX ) 
			{
    			if (myAJAX.readyState == 4) 
    			{
//    				alert("received response...");
    				if(myAJAX.status == 200) 
    				{
    					//document.getElementById("itemSucessBlock").style.display = "block";
					} else 
					{
            			//alert("There was a problem retrieving the XML data:\n" + myAJAX.statusText);
        			}
    			}
			}	
  		
  		
	
  function renameTravelPlan()
   	{
   		var travelPlanForm=document.TravelPlanForm;
   		document.getElementById('errorMsgTp').innerHTML="";
   		if(trim(travelPlanForm.travelPlanName.value)=='')
		{
			document.getElementById('errorMsgTp').innerHTML = '<div id="msg2_error_base" style="width:300px;margin:5px -5px 10px 10px;">'
								+'<div id="msg2_error_left_01a" style="margin-top:10px">'
								+'Please give the Travel plan a name.</div><div id="msg2_error_left_01b"></div></div>';
			return ;
		}
   		//travelPlanForm.travelPlanId.value=travelplanId;
   		travelPlanForm.requestTarget.value="renameTravelPlan";
   		travelPlanForm.submit();
   	}
   	
   	function updateTravelPlan()
   	{
   		
   		var travelPlanForm=document.TravelPlanForm;
   		document.getElementById('errorMsgTp').innerHTML="";
   		if(trim(travelPlanForm.travelPlanName.value)=='')
		{
			document.getElementById('errorMsgTp').innerHTML = '<div id="msg2_error_base" style="width:300px;margin:5px -5px 10px 10px;">'
								+'<div id="msg2_error_left_01a" style="margin-top:10px">'
								+'Please give the Travel plan a name.</div><div id="msg2_error_left_01b"></div></div>';
			return ;
		}
		
		if(diffDate(travelPlanForm.startDate.value,travelPlanForm.endDate.value))
		{
   		//travelPlanForm.travelPlanId.value=travelplanId;
	   		var locations=document.getElementsByName('locations');
	   		var tempstr="";
	   		for(i=0;i<locations.length;i++)
			{
				if(locations[i].value=="")
				{
					continue;				
				}
				if(i!=0)
				{
					tempstr+="-";
				}
				tempstr+=locations[i].value;
				
			}
	   		travelPlanForm.locationIdStr.value=tempstr;
	   		travelPlanForm.requestTarget.value="updateTravelPlan";
	   		travelPlanForm.submit();
		}
   	}
   	
   	function createTravelPlan()
   	{
   		var travelPlanForm=document.TravelPlanForm;
   		document.getElementById('errorMsgTp').innerHTML="";
   		if(trim(travelPlanForm.travelPlanName.value)=='')
		{
			document.getElementById('errorMsgTp').innerHTML = '<div id="msg2_error_base" style="width:300px;margin:5px -5px 10px 10px;">'
								+'<div id="msg2_error_left_01a" style="margin-top:10px">'
								+'Please give the Travel plan a name.</div><div id="msg2_error_left_01b"></div></div>';										
							
			return false;
		}
		
		if(diffDate(travelPlanForm.startDate.value,travelPlanForm.endDate.value))
		{
	   		//travelPlanForm.travelPlanId.value=travelplanId;
	   		var locations=document.getElementsByName('locations');
	   		var tempstr="";
	   		for(i=0;i<locations.length;i++)
			{
				if(locations[i].value==''){
					continue;				
				}
				if(i!=0){
					tempstr+="-";
				}
				tempstr+=locations[i].value;
				
			}
	   		travelPlanForm.locationIdStr.value=tempstr;
	   		travelPlanForm.requestTarget.value="createTravelPlan";
	   		travelPlanForm.action="/do/createNewTravelPlan?travel=updatePlanOverview";
	   		travelPlanForm.submit();
   	 }
   	}
   	
   	function createTravelPlanFromMain()
   	{
   		var travelPlanForm=document.TravelPlanForm;
   		document.getElementById('errorMsgTp').innerHTML="";
   		if(trim(travelPlanForm.travelPlanName.value)=='')
		{
			document.getElementById('errorMsgTp').innerHTML = '<div id="msg2_error_base" style="width:300px;margin:5px -5px 10px 10px;">'
								+'<div id="msg2_error_left_01a" style="margin-top:10px">'
								+'Please give the Travel plan a name.</div><div id="msg2_error_left_01b"></div></div>';										
							
			return false;
		}
		
		if(diffDate(travelPlanForm.startDate.value,travelPlanForm.endDate.value))
		{
	   		//travelPlanForm.travelPlanId.value=travelplanId;
	   		var locations=document.getElementsByName('locations');
	   		var tempstr="";
	   		for(i=0;i<locations.length;i++)
			{
				if(locations[i].value==''){
					continue;				
				}
				if(i!=0){
					tempstr+="-";
				}
				tempstr+=locations[i].value;
				
			}
	   		travelPlanForm.locationIdStr.value=tempstr;
	   		travelPlanForm.requestTarget.value="createTravelPlan";
	   		travelPlanForm.action="/do/createNewTravelPlan?travel=updatePlanOverview";
	   		travelPlanForm.submit();
   	 }
   	}
   	
    function cancelSaveTravelPlan()
   	{
   		var travelPlanForm=document.TravelPlanForm;
   		travelPlanForm.action="/do/travelPlanList?travel=travelPlanList";
   		travelPlanForm.submit();
   	}
   	
   	function cancelSaveSharingDetails()
   	{
   		var travelPlanForm=document.TravelPlanSharingForm;
   		travelPlanForm.action="/do/travelPlanList?travel=travelPlanList";
   		travelPlanForm.submit();
   	}
   	
           
   	function addLocationPopUp()
   	{
		myURL = "/do/addLocationPopUp";
		newWin = window.open(myURL,"PublicProfilePreview","HEIGHT=220,WIDTH=590,scrollbars=yes,status=yes");
   	}
   	
   	function closeAddLocationPopUp(popUpLocations)
   	{
   		var resultDivSpace = document.getElementById("locationDiv");
   		document.getElementById("locationDiv").parentNode.style.borderBottom = "1px solid #ede6c9";
   		document.getElementById("locationDiv").parentNode.style.borderTop = "1px solid #ede6c9";
   		var locations=document.getElementsByName('locations');
   		var resultData="";
//   		var locationIdArray=new Array();
//   		
//   		for(i=0;i<locations.length;i++)
//		{
//			locationIdArray[i]=locations[i].value;
//			
//		}
		
		for(i=0;i<popUpLocations.length;i++)
		{
			if(popUpLocations[i].checked==true)
			{
				sValue = popUpLocations[i].value;
				var resultValues = sValue.split('@');
				var locationId=resultValues[0];
				
				locationId = trim(locationId);
				
				if(document.getElementById('locationDivId'+locationId) == null){
					resultData+=" <div id='locationDivId"+locationId+"' name='"+resultValues[1]+"'> <div id='tp_xbase_01acont_02' style='float:left; width:240px;'><span id='rowncol_01a' style='padding:0px 0px 0px 5px'>"
						+"<input name='locations' id='"+locationId+"' type='checkbox' value='"+locationId+"' style='margin:0px;' /></span>"
						+"<span id='rowncol_01a' style='padding:2px 0px 0px 5px; width:210px;' class='gatorlinks'>"+resultValues[1]+"</span></div> <br/></div>";
				}
			}
		}
   		
   		var tempSpace=resultDivSpace.innerHTML;
   		document.getElementsByName("removeLocationButton")[0].style.display = "block";
   		resultDivSpace.innerHTML=tempSpace+resultData;
   		
   		
   	}
   	
   	function isLocationAlreadyAdded(locationId,locationIdArray){
   		
   		for(i=0;i<locationIdArray.length;i++)
		{
			if(locationIdArray[i]==locationId){
				return true;
			}
		}
		return false;
   	}
   	
   	function removeLocations()
   	{
   		var locations=document.getElementsByName('locations');
   		var msg=document.getElementById("errMessageDisp");
   		document.getElementById('errorMsgTp').innerHTML="";
   		var selected = 0;
   		var locationDivIdArray=new Array();
				
				for(i=0;i<locations.length;i++)
				{
					if(locations[i].checked==true)
					{
						locationDivIdArray[selected]="locationDivId"+locations[i].value;
						selected = selected+1;
					}
				}
				if(selected==0)
				{
					msg.innerHTML='<div id="msg2_error_base" style="width:300px" ><div id="msg2_error_left_01a" style="margin-top:10px">Please select a location to remove</div><div id="msg2_error_left_01b"></div></div>';
					
				}else{
					msg.innerHTML="";
					for(i=0;i<locationDivIdArray.length;i++)
					{
							var locationDiv=document.getElementById(locationDivIdArray[i]);
							locationDiv.innerHTML="";
							document.getElementById("locationDiv").removeChild(locationDiv);
							locationDiv.style.display="none";
					}
					// this is a global variable see script in TravelPlanView.jsp
	    			isChanged=true;
				}
				
				if(trim(document.getElementById("locationDiv").innerHTML)==''){
					document.getElementById("locationDiv").parentNode.style.borderBottom = "";
   					document.getElementById("locationDiv").parentNode.style.borderTop = "";
   					document.getElementsByName("removeLocationButton")[0].style.display = "none";
			}
	}
	
	function createSharingDetailsString(nameIdArray)
	{
		var tempStr="";
		
		for(var i=0; i < nameIdArray.length; i++)
		{
			var groupId=nameIdArray[i];
			var view=document.getElementById("viewFor"+groupId);
			var add=document.getElementById("addFor"+groupId);
			var edit=document.getElementById("editFor"+groupId);
			
			 if(i!=0)
			 {
			 	tempStr+=",";
			 }
			 
			 tempStr+=groupId;
			 
			 if(view!=null && view.checked==true)
			 {
			 	
			 	tempStr+='-V';
			 }
			 if(add!=null && add.checked==true)
			 {
			 	tempStr+='-A';
			 	
			 }
			 if(edit!=null && edit.checked==true)
			 {
			 	tempStr+='-E';
			 }
		 }
		 return tempStr;
	}
   
   function diffDate(date1,date2)
	{
		
		if(Date.parse(date1) > Date.parse(date2)){
			document.getElementById('errorMsgTp').innerHTML='<div id="rowncol_01a" style="margin:10px 0px -10px -3px; width:560px;"><div id="msg2_error_base"><div id="msg2_error_left_01a" style="margin-top:10px">Please select a Start Date that is earlier than your End Date</div><div id="msg2_error_left_01b"></div></div></div>';
			return false;
		}

		var THIRTY_DAYS = 1000 * 60 * 60 * 24 * 30 ;
		var date1_ms = new Date(date1).getTime();
		var date2_ms = new Date(date2).getTime();
	    var difference_ms = Math.abs(date2_ms - date1_ms);

	    if(difference_ms/THIRTY_DAYS > 1){
			document.getElementById('errorMsgTp').innerHTML='<div id="rowncol_01a" style="margin:10px 0px -10px -3px; width:560px;"><div id="msg2_error_base"><div id="msg2_error_left_01a" style="margin-top:10px">Please limit your Travel Plan to no more than 30 days.</div><div id="msg2_error_left_01b"></div></div></div>';
			return false;
	    }

		return true;
	}
