var g_strVersion="v3.0";
var g_latlon_correct=true;
var g_lang = "en";
var m_nCurscale=12;
var m_dCenterLat=30.428790;  
var m_dCenterLon=114.888270;
var m_nPopupWidth=250;
var m_nPopupHeight=100;
var m_nMaxHistory=3;
var m_nDriftDelay=30;//km
var g_tp="TP1";
var myServletCallData="../targetsdeamon";
var myServletDownload="../tracedownload";
var strurltrack="..";




function getStr( strName ){
	switch( g_lang ){
		case "cn" : {
			return strName.cn;
		}
		case "en" : {
			return strName.en;
		}
	}
	return strName.cn;
}	

var s_Caption_company= {cn:"广州市驭捷科技有限公司",en:"Free road" };
var s_Caption_title= {cn:"GPS车辆定位查询系统",en:"GPS Vehicle Tracking System" };
var s_Caption_Longitude 		= {cn:"经度",    			en:"Longitude" };
var s_Caption_Latitude 		= {cn:"纬度",    			en:"Latitude" };
var s_Caption_Left_Top 		= {cn:"左上",    			en:"Left-Top" };
var s_Caption_Right_Bottom 		= {cn:"右下",    			en:"Right-Bottom" };
var s_Caption_DBClick_End 		= {cn:"提示:鼠标双击结束.",    			en:"Remark:double click to end." };
var s_Caption_TotalLength 		= {cn:"总长度",    			en:"Total length" };
var s_Caption_KM 		= {cn:"公里",    			en:"km" };
var s_Caption_Time 		= {cn:"时间",    			en:"Time" };
var s_Caption_Speed 		= {cn:"速度",    			en:"Speed" };
var s_Caption_KMH 		= {cn:"公里/小时",    			en:"km/h" };
var s_Caption_AlarmTarget 		= {cn:"目标",    			en:"Target" };
var s_Caption_AlarmClearIcon 		= {cn:"提示:鼠标双击清除目标.",    			en:"Remark:Double click to clear the icon." };
var s_Caption_VehicleNumber 		= {cn:"车牌号码",    			en:"Vehicle number" };
var s_Caption_Group 		= {cn:"组别",    			en:"Group" };
var s_Caption_Heading 		= {cn:"方向",    			en:"Heading" };
var s_Caption_HeadingTo 		= {cn:"度",    			en:"degree" };
var s_Caption_Area 		= {cn:"地址",    			en:"Address" };
var s_Caption_Location 		= {cn:"位置",    			en:"Location" };
var s_Caption_Location_View 		= {cn:"查看",    			en:"Locate" };
var s_Caption_Status 		= {cn:"状态",    			en:"Status" };
var s_Caption_Status_Normal 		= {cn:"正常",    			en:"Normal" };
var s_Caption_Power 		= {cn:"电量",    			en:"Power" };
var s_Caption_MoveDialog 		= {cn:"提示:可用鼠标拖动标题栏移动窗口",    			en:"" };
var s_Caption_TraceQuery 		= {cn:"历史轨迹查询",    			en:"TraceQuery" };
var s_Caption_AreaSet 		= {cn:"区域设防设置",    			en:"Regional defense set up" };
var s_Caption_AreaDraw 		= {cn:"说明:点击'区域选择'，然后用鼠标在地图上单击要绘制区域的左上角，拖动图标绘制矩形区域.鼠标双击图标清除图形。", en:"Remark:Click the button 'Area',then use the mouse to click on the map to draw the upper left corner of the region, and then use the mouse to drag the cursor drawing a rectangular area.  Double click the cursor to clear the setting." };
var s_Caption_TrackingSet 		= {cn:"连续定位设置",    			en:"Tracking set" };
var s_Caption_SpeedLimited 		= {cn:"限速设定",    			en:"Speed limitation setting" };
var s_Caption_ChangePass 		= {cn:"用户密码修改",    			en:"Change Password" };
var s_Caption_NoTrace 		= {cn:"没有查询到轨迹数据",    			en:"No trace" };
var s_Caption_AlarmQuery 		= {cn:"报警查询",    			en:"Alarm Query" };
var s_Caption_SelectTarget 		= {cn:"请用鼠标选择目标",    			en:"Please select a vehicle" };
var s_Caption_Alarm 		= {cn:"报警",    			en:"Alarm" };
var s_Caption_AlarmType 		= {cn:"报警类型",    			en:"Alarm Type" };
var s_Caption_Alarm_SOS 		= {cn:"紧急",    			en:"SOS" };
var s_Caption_Alarm_abMoving 		= {cn:"非法移动",    			en:"Moving abnormally" };
var s_Caption_Alarm_abstartup 		= {cn:"非法点火",    			en:"Startup abnormally" };
var s_Caption_Alarm_5000km 		= {cn:"5000公里",    			en:"5000km" };
var s_Caption_Alarm_OutofArea 		= {cn:"出区域",    			en:"Out of area" };
var s_Caption_Alarm_IntoArea 		= {cn:"入区域",    			en:"Into area" };
var s_Caption_Alarm_OverSpeed 		= {cn:"超速",    			en:"Over speed" };
var s_Caption_Alarm_NoPower 		= {cn:"缺电",    			en:"No power" };
var s_Caption_Alarm_abOpeningDoor		= {cn:"非法开门",    			en:"opening door abnormally" };
var s_Caption_NoAlarm 		= {cn:"没有查询到报警数据",    			en:"No alarm" };
var s_Caption_IsAlarming 		= {cn:"发生报警",    			en:"is alarming" };
var s_Caption_View 		= {cn:"查看",    			en:"View" };
var s_Caption_Remark 		= {cn:"提醒",    			en:"Remark" };
var s_Caption_NoAuth 		= {cn:"尚未开通，无法更新位置!",    			en:"is not authorized" };
var s_Caption_Tracking_Tip 		= {cn:"注意:定位设备将会按照设定的距离间隔进行连续定位,确认连续定位吗?",    			en:"Remark:are you sure to track by this distance?" };
var s_Caption_ProtectSelf 		= {cn:"设防",    			en:"Protect" };
var s_Caption_ProtectSelfCancel 		= {cn:"撤防",    			en:"Protect None" };
var s_Caption_GPSValid 		= {cn:"定位",    			en:"Y" };
var s_Caption_GPSInValid 		= {cn:"未定位",    			en:"N" };
var s_Caption_GPS 		= {cn:"定位状态",    			en:"GPS" };
var s_Caption_Alert_Position 		= {cn:"单次定位:可寻找到车辆最新位置信息.", en:"Positioning:can get the last location."}
var s_Caption_Alert_ToGoogle 		= {cn:"请切换到卫星地图模式",    			en:"Please select satellite map" };
var s_Caption_Alert_NoInput 		= {cn:"输入不能为空",    	en:"Please input" };
var s_Caption_Alert_CannotInput 		= {cn:"不能输入%,&,+字符,请重新输入",    			en:"Can not input %,&,+" };
var s_Caption_Alert_PassSubError 		= {cn:"密码确认不正确",    			en:"Please be sure your password" };
var s_Caption_contact_us 		= {cn:"联系我们",    			en:"Contact us" };
var s_Caption_about_system 		= {cn:"关于系统",    			en:"About system" };
var s_Caption_about_us 		= {cn:"关于我们",    			en:"About us" };
var s_Caption_print= {cn:"打印",en:"Print" };
var s_Caption_help= {cn:"操作说明",en:"Help" };
var s_Caption_drawrect= {cn:"区域选择",en:"Area" };
var s_Caption_measure= {cn:"距离测量",en:"Measure" };
var s_Caption_zoomout= {cn:"点击缩小",en:"Zoom out" };
var s_Caption_zoomin= {cn:"点击放大",en:"Zoom In" };
var s_Caption_pan= {cn:"鼠标平移",en:"Pan" };
var s_Caption_sat= {cn:"卫星地图",en:"Satellite" };
var s_Caption_map= {cn:"交通地图",en:"Map" };
var s_Caption_mapselect= {cn:"地图区域",en:"Select Map" };
var s_Caption_waiting= {cn:"正在申请,请稍等...",en:"Sending,please wait..." };
var s_Caption_fastlocation= {cn:"快速定位",en:"Goto" };
var s_Caption_hide= {cn:"隐藏",en:"Hide" };
var s_Caption_show= {cn:"显示",en:"Show" };
var s_Caption_fasthelp_view= {cn:"在地图上查看车辆位置",en:"View vehicle" };
var s_Caption_fasthelp_view_1= {cn:"1、点击车牌号码，该车辆的位置会在右侧的地图上居中显示，详细信息出现在左下方的详细信息栏;",en:"1.click one vehicle's number to select the vehicle,and the vehicle will show in map;" };
var s_Caption_fasthelp_view_2= {cn:"2、点击'点击放大'按钮放大地图，点击'点击缩小'按钮缩小地图。",en:"2.click 'Zoom in' to zoom in the map,click 'Zoom out' to zoom out the map." };
var s_Caption_fasthelp_vehicle= {cn:"对车辆进行功能操作",en:"Operation" };
var s_Caption_fasthelp_vehicle_1= {cn:"1、在需要操作的车牌号码上单击鼠标，选中目标;",en:"1.click one vehicle's number;" };
var s_Caption_fasthelp_vehicle_2= {cn:"2、用鼠标单击功能操作栏的操作按钮，对车辆进行操作。",en:"2.click the buttons to operate the vehicle:tracking,etc." };
var s_Caption_detail= {cn:"详细信息",en:"Details" };
var s_Caption_setstatus= {cn:"设置状态",en:"Set Status" };
var s_Caption_exit= {cn:"注销登陆",en:"Logout" };
var s_Caption_Manager= {cn:"管理系统",en:"Management System" };
var s_Caption_VehicleInfo= {cn:"车辆信息",en:"Vehicles" };
var s_Caption_ChangePass= {cn:"密码修改",en:"Change Pass" };
var s_Caption_StopLimited= {cn:"取消限速",en:"Cancel Limit" };
var s_Caption_SpeedLimited= {cn:"限速设定",en:"Speed Limit" };
var s_Caption_TraceClear= {cn:"清除历史",en:"Trace Clear" };
var s_Caption_Trace= {cn:"历史轨迹",en:"History Trace" };
var s_Caption_StopDefend= {cn:"终止设防",en:"Cancel Defend" };
var s_Caption_Areadefend= {cn:"区域设防",en:"Region Defend" };
var s_Caption_Hidetrace= {cn:"隐藏轨迹",en:"Hide Trace" };
var s_Caption_Showtrace= {cn:"显示轨迹",en:"Show Trace" };
var s_Caption_StopTrack= {cn:"终止定位",en:"Cancel Track" };
var s_Caption_Tracking= {cn:"连续定位",en:"Tracking" };
var s_Caption_Positioning= {cn:"位置查询",en:"Positioning" };
var s_Caption_FocusNone= {cn:"解除锁定",en:"Normal Show" };
var s_Caption_Focus= {cn:"锁定显示",en:"Auto Center" };
var s_Caption_Operation= {cn:"功能操作",en:"Operation" };
var s_Caption_VehicleList= {cn:"车辆列表",en:"Vehicle List" };
var s_Caption_Function= {cn:"目标操作",en:"Function" };
var s_Caption_SimpleHelp= {cn:"快速帮助",en:"Simple Help" };
var s_Caption_AboutSystem= {cn:"关于系统",en:"About the system" };
var s_Caption_AboutUs= {cn:"关于我们",en:"About us" };
var s_Caption_ContactUs= {cn:"联系我们",en:"Contact us" };
var s_Caption_InfoTip= {cn:"信息提示框",en:"Information" };
var s_Caption_Sure= {cn:"确 定",en:"Sure" };
var s_Caption_Cancel= {cn:"取 消",en:"Cancel" };
var s_Caption_Tracking_Confirm= {cn:"注意:终止连续定位设定,恢复成出厂时的定位模式,确认终止定位吗?",en:"Notice:to stop tracking,trace are not saved,are you sure?" };
var s_Caption_OldPass= {cn:"旧密码",en:"Old Pass" };
var s_Caption_NewPass= {cn:"新密码",en:"New Pass" };
var s_Caption_NewPass_Confirm= {cn:"新密码确认",en:"Confirm" };
var s_Caption_SpeedLimit_Notice= {cn:"注意：当启用限速设定后，设备将默认为限速设防状态，如不使用时请选择取消限速，以节省设备SIM卡的短信费用。",en:"Notice:when the function is activated, the device will automatically enter into the speed threshold mode.  If the function is not required, it is recommended that the function is to be switched off for minimising the cost of SMS text message. " };
var s_Caption_SendSet= {cn:"启用设定",en:"Send the set" };
var s_Caption_SendQuery= {cn:"查询",en:"Query" };
var s_Caption_Export= {cn:"导出",en:"Export" };
var s_Caption_AreaSet= {cn:"绘制区域",en:"Draw Region" };
var s_Caption_AreaSet_Remark= {cn:"注意:当启用区域设防后，设备将默认为区域设防状态，如不使用时请选择终止设防，以节省设备SIM卡的短信费用。",en:"Notice:When Geo-fencing function is activated, the device will automatically enter into the surveillance mode.  If the function is not required, it is recommended that the function is to be switched off for minimising the cost of SMS text message." };
var s_Caption_AreaSet_Type= {cn:"设防类型",en:"Type" };
var s_Caption_AreaSet_Out= {cn:"出区域",en:"Outoff" };
var s_Caption_AreaSet_In= {cn:"入区域",en:"Into" };
var s_Caption_SelectDate= {cn:"请选择查询日期",en:"Please select date" };
var s_Caption_Date= {cn:"日期",en:"Date" };
var s_Caption_Time= {cn:"时间",en:"Time" };
var s_Caption_From= {cn:"从",en:"From" };
var s_Caption_To= {cn:"到",en:"To" };
var s_Caption_Year= {cn:"年",en:"Y" };
var s_Caption_Month= {cn:"月",en:"M" };
var s_Caption_Day= {cn:"日",en:"D" };
var s_Caption_SelectDate_Start= {cn:"起始时间",en:"Start Time" };
var s_Caption_SelectDate_End= {cn:"终止时间",en:"End Time" };
var s_Caption_Tracking_Desc= {cn:"说明：按距离(50－999米)或按时间(20-3600秒)回传数据.",en:"Remark: Reporting the position of the vehicle in accordance with the pre-determined distance ranged from 50 to 999 meters or time ranged from 20 to 3600 seconds." };
var s_Caption_Tracking_Remark= {cn:"注意：当启用连续定位后，可自定义设定上传跟踪数值，如不使用时请选择终止定位，以节省设备SIM卡的GPRS费用.",en:"Notice: If the continuous positioning is not required, it not recommended that the function is to be switched off for minimising the cost of SMS text message." };
var s_Caption_Tracking_Distance= {cn:"距离间隔",en:"Distance" };
var s_Caption_Tracking_m= {cn:"米",en:"m" };
var s_Caption_pass_submit= {cn:"提交修改",en:"Submit" };
var s_Caption_Clear= {cn:"清除",en:"Clear" };
var s_Caption_FirstPage= {cn:"首页",en:"First" };
var s_Caption_PrevPage= {cn:"上页",en:"Prev" };
var s_Caption_NextPage= {cn:"下页",en:"Next" };
var s_Caption_EndPage= {cn:"尾页",en:"End" };
var s_Caption_Play= {cn:"回放",en:"Play" };
var s_Caption_SatNo= {cn:"卫星地图不支持此功能",en:"This function is not surpported on satellite map" };
var s_Caption_MapSearch= {cn:"地图查询",en:"Map Search" };
var s_Caption_MapResult= {cn:"查询结果",en:"Results" };
var s_Caption_MapOpt_Default= {cn:"操作提示：您可以在地图上按住鼠标移动地图，松开鼠标终止移动；滚动鼠标滚轮可以放大、缩小地图。",en:"Description:you can press mouse to move map." };
var s_Caption_MapOpt_Map= {cn:"交通地图：单击'交通地图'按钮，地图切换成交通地图模式",en:"Description:the road map will be showed" };
var s_Caption_MapOpt_Sat= {cn:"卫星地图：单击'卫星地图'按钮，地图切换成卫星地图模式，您可看到卫星拍摄的实景",en:"Description:the satellite images will be showed" };
var s_Caption_MapOpt_Traffic= {cn:"交通流量：单击'交通流量'按钮，切换是否显示交通流量图，只有支持交通流量的区域才会显示流量图。",en:"Description:click 'Traffic', the traffic map will be showed"};
var s_Caption_MapOpt_Zoomin= {cn:"放大地图：单击'点击放大'按钮，地图放大",en:"Description:click 'ZoomIn',the map will zoom in"};
var s_Caption_MapOpt_Zoomout= {cn:"缩小地图：单击'点击缩小'按钮，地图缩小",en:"Description:click 'ZoomOut', the map will zoom out"};
var s_Caption_MapOpt_Measure= {cn:"距离测量：单击'距离测量'按钮之后，在需要测量的位置单击鼠标左键，双击鼠标左键结束",en:"Description:click 'Measure',then click the position that will be measured on the map,dbclick to end."};
var s_Caption_MapOpt_Area= {cn:"区域选择：单击'区域选择'按钮，在地图上单击鼠标左键，地图上会出现红色的图标，拖动图标选择区域，在图标上双击鼠标结束。",en:"Description:click 'Area', then click on the map to draw the upper left corner of the region, and then use the mouse to drag the cursor drawing a rectangular area.  Double click the cursor to end."};
var s_Caption_MapOpt_Help= {cn:"操作说明：单击'操作说明'按钮，弹出操作说明窗口，详细介绍本系统的使用方法。",en:"Description:click 'Help', the help document will be showed"};
var s_Caption_MapOpt_Print= {cn:"打印：单击'打印'按钮，本窗口内容将会被打印。",en:"Description:click 'Print', the window's content will be printed"};
var s_Caption_Set_Done= {cn:"已设置",en:"Setted" };
var s_Caption_Set_No= {cn:"未设置",en:"Nothing" };
var s_Caption_ACC={cn:"ACC",en:"ACC" };
var s_Caption_Traffic={cn:"交通流量",en:"Traffic" };
var s_Caption_TrackingType={cn:"定位类型",en:"Tracking Type" };
var s_Caption_TrackingByDistance={cn:"距离间隔(米)",en:"By Distance(meters)" };
var s_Caption_TrackingByTime={cn:"时间间隔(秒)",en:"By Time(seconds)" };
var s_Caption_TrackingDelay={cn:"间隔参数",en:"Value" };
var s_Caption_CarControl={cn:"熄火设定",en:"Engine Flameout" };
var s_Caption_CarControl_Cancel={cn:"取消熄火",en:"Cancel Engine Flameout" };
var s_Caption_CarControl_Desc={cn:"说明：当启动远程熄火功能后，车辆将会自动关闭发动机引擎。",en:"Note: When you are using the remote flameout, the vehicle will automatically shut down the engine" };
var s_Caption_CarControl_Remark={cn:"注意：如用户因使用启动远程熄火功能，车辆在行驶过程中所发生的一切事故及责任与本公司无关，请注意慎用。",en:"Remark: If user using the remote flameout, in the process any happening and responsibilities of the accident has nothing to do with our company, please note that caution." };
var s_Caption_CarControl_Cancel_Desc={cn:"说明：取消远程熄火设置。",en:"Note:Cancel the remote flameout" };
var s_Caption_CarControl_Cancel_Remark={cn:"注意：取消之前设置的远程熄火操作。",en:"Remark:Cancel the remote flameout"};
var s_Caption_GPSPass={cn:"设备密码",en:"Device password" };
var s_Caption_GPSPassSure={cn:"密码确认",en:"Confirm password" };
var s_Caption_CarControl_Status={cn:"熄火",en:"Flameout" };
var s_Caption_CarControl_Tip={cn:"车辆远程熄火已设定",en:"Vehicle Remote flameout has been set" };
var s_Caption_CarControlCancel_Tip={cn:"车辆远程熄火已取消",en:"Vehicle Remote flameout has been canceled" };
var s_Caption_PassInvalid={cn:"密码无效,请重新输入",en:"Password is invalid,Please input again"};
var s_Caption_Height={cn:"高度",en:"Height"};
var s_Caption_ClearArea={cn:"清除区域",en:"Clear Area"};
var s_Caption_SignGood={cn:"信号强",en:"Good"};
var s_Caption_SignBad={cn:"信号弱",en:"Bad"};
var s_Caption_SignNone={cn:"没有信号",en:"None"};
var s_Caption_Report={cn:"统计分析",en:"Report"};
var s_Caption_Distance={cn:"里程统计",en:"Distance"};
var s_Caption_Driving={cn:"行车统计",en:"Driving"};
var s_Caption_OverHistory={cn:"超出时间段限制,请重新选择",en:"Time is too long"};
var s_Caption_Should={cn:"<=",en:"<="};
var s_Caption_DayOther={cn:"天",en:"Days"};
var s_Caption_SeaSpeedUnit={cn:"节",en:"nm/h"};
var s_Caption_SeaUnit={cn:"海里",en:"nm"};
