
try{var testCommons=new MQObject();testCommons=null;}catch(error){throw"You must include mqcommon.js or toolkit api script prior to mqobjects.js.";}
function mqIsClass(strClassName,newObj,allowNull){
	if(newObj!==null){
		try{newObj.getClassName();}
		catch(error){throw"InvalidClassException";}
		if(newObj.getClassName()===strClassName){return true;}
		else{throw"InvalidClassException";}}
		else if(allowNull){return true;}
		throw"NullPointerException";};
function MQConstants(){
	this.MQDISTANCEUNITS_MILES=0;
	this.MQDISTANCEUNITS_KILOMETERS=1;
	this.MQLATLNG_RADIANS=0.01745329251994;
	this.MQLATLNG_INVALID=314159.265358;
	this.MQLATLNG_TOLERANCE=0.000001;
	this.MQPOINT_INVALID=32767;
	this.PI=3.14159265358979323846;
	this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT=68.9;
	this.MQSEARCHCRITERIA_DEGREES_LAT_PER_MILE=(1/this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT);
	this.DISTANCEAPPROX_MILES_PER_LATITUDE=69.170976;
	this.DISTANCEAPPROX_KILOMETERS_PER_MILE=1.609347;
	this.MQROUTETYPE_FASTEST=0;
	this.MQROUTETYPE_SHORTEST=1;
	this.MQROUTETYPE_PEDESTRIAN=2;
	this.MQROUTETYPE_OPTIMIZED=3;
	this.MQROUTETYPE_SELECT_DATASET_ONLY=4;
	this.MQNARRATIVETYPE_DEFAULT=0;
	this.MQNARRATIVETYPE_HTML=1;
	this.MQNARRATIVETYPE_NONE=-1;
	this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_LIMITED_ACCESS="Limited Access";
	this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_TOLL_ROAD="Toll Road";
	this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_FERRY="Ferry";
	this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_UNPAVED_ROAD="Unpaved";
	this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_SEASONAL="Approximate seasonal closure";
	this.MQROUTEOPTIONS_LANGUAGE_ENGLISH="English";
	this.MQROUTEOPTIONS_LANGUAGE_FRENCH="French";
	this.MQROUTEOPTIONS_LANGUAGE_GERMAN="German";
	this.MQROUTEOPTIONS_LANGUAGE_ITALIAN="Italian";
	this.MQROUTEOPTIONS_LANGUAGE_SPANISH="Spanish";
	this.MQROUTEOPTIONS_LANGUAGE_DANISH="Danish";
	this.MQROUTEOPTIONS_LANGUAGE_DUTCH="Dutch";
	this.MQROUTEOPTIONS_LANGUAGE_NORWEGIAN="Norwegian";
	this.MQROUTEOPTIONS_LANGUAGE_SWEDISH="Swedish";
	this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_SPANISH="Iberian Spanish";
	this.MQROUTEOPTIONS_LANGUAGE_BRITISH_ENGLISH="British English";
	this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_PORTUGUESE="Iberian Portuguese";
	this.MQROUTERESULTSCODE_NOT_SPECIFIED=-1;
	this.MQROUTERESULTSCODE_SUCCESS=0;
	this.MQROUTERESULTSCODE_INVALID_LOCATION=1;
	this.MQROUTERESULTSCODE_ROUTE_FAILURE=2;
	this.MQROUTERESULTSCODE_NO_DATASET_FOUND=3;
	this.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED=-1;
	this.MQROUTEMATRIXRESULTSCODE_SUCCESS=0;
	this.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION=1;
	this.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE=2;
	this.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND=3;
	this.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION=4;
	this.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS=5;
	this.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS=6;
	this.MQMANEUVER_HEADING_NULL=0;
	this.MQMANEUVER_HEADING_NORTH=1;
	this.MQMANEUVER_HEADING_NORTH_WEST=2;
	this.MQMANEUVER_HEADING_NORTH_EAST=3;
	this.MQMANEUVER_HEADING_SOUTH=4;
	this.MQMANEUVER_HEADING_SOUTH_EAST=5;
	this.MQMANEUVER_HEADING_SOUTH_WEST=6;
	this.MQMANEUVER_HEADING_WEST=7;
	this.MQMANEUVER_HEADING_EAST=8;
	this.MQMANEUVER_TURN_TYPE_STRAIGHT=0;
	this.MQMANEUVER_TURN_TYPE_SLIGHT_RIGHT=1;
	this.MQMANEUVER_TURN_TYPE_RIGHT=2;
	this.MQMANEUVER_TURN_TYPE_SHARP_RIGHT=3;
	this.MQMANEUVER_TURN_TYPE_REVERSE=4;
	this.MQMANEUVER_TURN_TYPE_SHARP_LEFT=5;
	this.MQMANEUVER_TURN_TYPE_LEFT=6;
	this.MQMANEUVER_TURN_TYPE_SLIGHT_LEFT=7;
	this.MQMANEUVER_TURN_TYPE_RIGHT_UTURN=8;
	this.MQMANEUVER_TURN_TYPE_LEFT_UTURN=9;
	this.MQMANEUVER_TURN_TYPE_RIGHT_MERGE=10;
	this.MQMANEUVER_TURN_TYPE_LEFT_MERGE=11;
	this.MQMANEUVER_TURN_TYPE_RIGHT_ON_RAMP=12;
	this.MQMANEUVER_TURN_TYPE_LEFT_ON_RAMP=13;
	this.MQMANEUVER_TURN_TYPE_RIGHT_OFF_RAMP=14;
	this.MQMANEUVER_TURN_TYPE_LEFT_OFF_RAMP=15;
	this.MQMANEUVER_TURN_TYPE_RIGHT_FORK=16;
	this.MQMANEUVER_TURN_TYPE_LEFT_FORK=17;
	this.MQMANEUVER_TURN_TYPE_STRAIGHT_FORK=18;
	this.MQMANEUVER_ATTRIBUTE_PORTIONS_TOLL=1;
	this.MQMANEUVER_ATTRIBUTE_PORTIONS_UNPAVED=2;
	this.MQMANEUVER_ATTRIBUTE_POSSIBLE_SEASONAL_ROAD_CLOSURE=4;
	this.MQMANEUVER_ATTRIBUTE_GATE=8;
	this.MQMANEUVER_ATTRIBUTE_FERRY=16;
	this.MQCOORDINATETYPE_GEOGRAPHIC=1;
	this.MQCOORDINATETYPE_DISPLAY=2;
	this.MQDRAWTRIGGER_BEFORE_POLYGONS=3585;
	this.MQDRAWTRIGGER_AFTER_POLYGONS=3586;
	this.MQDRAWTRIGGER_BEFORE_TEXT=3588;
	this.MQDRAWTRIGGER_AFTER_TEXT=3618;
	this.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT=3616;
	this.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT=3617;
	this.MQPENSTYLE_SOLID=0;
	this.MQPENSTYLE_DASH=1;
	this.MQPENSTYLE_DOT=2;
	this.MQPENSTYLE_DASH_DOT=3;
	this.MQPENSTYLE_DASH_DOT_DOT=4;
	this.MQPENSTYLE_NONE=5;
	this.MQCOLORSTYLE_INVALID=0xffffffff;
	this.MQCOLORSTYLE_BLACK=0;
	this.MQCOLORSTYLE_BLUE=16711680;
	this.MQCOLORSTYLE_CYAN=16776960;
	this.MQCOLORSTYLE_DARK_GRAY=4210752;
	this.MQCOLORSTYLE_GRAY=8421504;
	this.MQCOLORSTYLE_GREEN=65280;
	this.MQCOLORSTYLE_LIGHT_GRAY=12632256;
	this.MQCOLORSTYLE_MAGENTA=16711935;
	this.MQCOLORSTYLE_ORANGE=51455;
	this.MQCOLORSTYLE_PINK=11513855;
	this.MQCOLORSTYLE_RED=255;
	this.MQCOLORSTYLE_WHITE=16777215;
	this.MQCOLORSTYLE_YELLOW=65535;
	this.MQFILLSTYLE_SOLID=0;
	this.MQFILLSTYLE_BDIAGONAL=1;
	this.MQFILLSTYLE_CROSS=2;
	this.MQFILLSTYLE_DIAG_CROSS=3;
	this.MQFILLSTYLE_FDIAGONAL=4;
	this.MQFILLSTYLE_HORIZONTAL=5;
	this.MQFILLSTYLE_VERTICAL=6;
	this.MQFILLSTYLE_NONE=7;
	this.MQSYMBOLTYPE_RASTER=0;
	this.MQSYMBOLTYPE_VECTOR=1;
	this.MQTEXTALIGNMENT_CENTER=1;
	this.MQTEXTALIGNMENT_LEFT=2;
	this.MQTEXTALIGNMENT_RIGHT=4;
	this.MQTEXTALIGNMENT_BASELINE=8;
	this.MQTEXTALIGNMENT_BOTTOM=16;
	this.MQTEXTALIGNMENT_TOP=32;
	this.MQFONTSTYLE_INVALID=-1;
	this.MQFONTSTYLE_NORMAL=0;
	this.MQFONTSTYLE_BOLD=1;
	this.MQFONTSTYLE_BOXED=2;
	this.MQFONTSTYLE_OUTLINED=4;
	this.MQFONTSTYLE_ITALICS=8;
	this.MQFONTSTYLE_UNDERLINE=16;
	this.MQFONTSTYLE_STRIKEOUT=32;
	this.MQFONTSTYLE_THIN=64;
	this.MQFONTSTYLE_SEMIBOLD=128;
	this.MQFONTSTYLE_MAX_VALUE=256;
	this.MQBASEDTSTYLE_DT_NULL=65532;
	this.MQBASEDTSTYLE_CT_ROAD=0;
	this.MQBASEDTSTYLE_CT_LINE=1;
	this.MQBASEDTSTYLE_CT_POLYGON=2;
	this.MQBASEDTSTYLE_CT_POINT=3;
	this.MQBASEDTSTYLE_CT_POI=4;
	this.MQBASEDTSTYLE_CT_SEED=5;
	this.MQBASEDTSTYLE_CT_DISPLAYLIST=6;
	this.MQBASEDTSTYLE_CT_APP=7;
	this.MQBASEDTSTYLE_CT_XA=8;
	this.MQBASEDTSTYLE_BT_LINE=0;
	this.MQBASEDTSTYLE_BT_POLYGON=1;
	this.MQBASEDTSTYLE_BT_POINT=2;
	this.MQBASEDTSTYLE_BT_OTHER=3;
	this.MQBASEDTSTYLE_BT_XA=4;
	this.MQFEATURESPECIFERATTRIBUTETYPE_GEFID=0;
	this.MQFEATURESPECIFERATTRIBUTETYPE_NAME=1;
	this.MQMATCHTYPE_LOC=0;
	this.MQMATCHTYPE_INTR=1;
	this.MQMATCHTYPE_NEARBLK=2;
	this.MQMATCHTYPE_REPBLK=3;
	this.MQMATCHTYPE_BLOCK=4;
	this.MQMATCHTYPE_AA1=5;
	this.MQMATCHTYPE_AA2=6;
	this.MQMATCHTYPE_AA3=7;
	this.MQMATCHTYPE_AA4=8;
	this.MQMATCHTYPE_AA5=9;
	this.MQMATCHTYPE_AA6=10;
	this.MQMATCHTYPE_AA7=11;
	this.MQMATCHTYPE_PC1=12;
	this.MQMATCHTYPE_PC2=13;
	this.MQMATCHTYPE_PC3=14;
	this.MQMATCHTYPE_PC4=15;
	this.MQMATCHTYPE_POI=16;
	this.MQQUALITYTYPE_EXACT=0;
	this.MQQUALITYTYPE_GOOD=1;
	this.MQQUALITYTYPE_APPROX=2;
}
var MQCONSTANT=new MQConstants();
function MQErrors(){
	this.RECORDSET_GETFIELD_1="failure in getField -- m_curRec is not Pointing to an existing Record";
	this.RECORDSET_GETFIELD_2="failure in getField -- could not find strFieldName";
	this.RECORDSET_MOVEFIRST_1="failure in moveFirst -- Error Moving Cursor, RecordSet is Empty.";
	this.RECORDSET_MOVELAST_1="Error Moving Cursor, RecordSet is Empty.";
	this.RECORDSET_MOVENEXT_1="Error Moving Cursor, EOF was true.";
	this.RECORDSET_MOVENEXT_2="Error Moving Cursor, Unknown Error.";
	this.RECORDSET_MOVENEXT_3="Error Moving Cursor, RecordSet is Empty.";
}
var MQERROR=new MQErrors();
MQSign.prototype=new MQObject();
MQSign.prototype.constructor=MQSign;
function MQSign(){
	MQObject.call(this);
	this.setM_Xpath("Sign");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSIGN()));
}
MQSign.prototype.getClassName=function(){return"MQSign";};
MQSign.prototype.getObjectVersion=function(){return 0;};
MQSign.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQSign.prototype.loadXmlFromNode=function(node){this.setM_XmlDoc(mqCreateXMLDocImportNode(node));};
MQSign.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQSign.prototype.clear=function(){
	this.setType(0);
	this.setText("");
	this.setExtraText("");
	this.setDirection(MQCONSTANT.MQMANEUVER_HEADING_NULL);
};
MQSign.prototype.setType=function(type){this.setProperty("Type",type);};
MQSign.prototype.getType=function(){return this.getProperty("Type");};
MQSign.prototype.setText=function(text){this.setProperty("Text",text);};
MQSign.prototype.getText=function(){return this.getProperty("Text");};
MQSign.prototype.setExtraText=function(extraText){this.setProperty("ExtraText",extraText);};
MQSign.prototype.getExtraText=function(){return this.getProperty("ExtraText");};
MQSign.prototype.setDirection=function(direction){this.setProperty("Direction",direction);};
MQSign.prototype.getDirection=function(){return this.getProperty("Direction");};
MQFeature.prototype=new MQObject();
MQFeature.prototype.constructor=MQFeature;function MQFeature(){MQObject.call(this);}
MQFeature.prototype.getClassName=function(){return"MQFeature";};
MQFeature.prototype.getObjectVersion=function(){return 0;};
MQFeature.prototype.getDistance=function(){return this.getProperty("Distance");};
MQFeature.prototype.setDistance=function(dblDistance){this.setProperty("Distance",dblDistance);};
MQFeature.prototype.getName=function(){return this.getProperty("Name");};
MQFeature.prototype.setName=function(strName){this.setProperty("Name",strName);};
MQFeature.prototype.getSourceLayerName=function(){return this.getProperty("SourceLayerName");};
MQFeature.prototype.setSourceLayerName=function(strSourceLayerName){this.setProperty("SourceLayerName",strSourceLayerName);};
MQFeature.prototype.getKey=function(){return this.getProperty("Key");};
MQFeature.prototype.setKey=function(strKey){this.setProperty("Key",strKey);};
MQFeature.prototype.setGEFID=function(intGEFID){this.setProperty("GEFID",intGEFID);};
MQFeature.prototype.getGEFID=function(){return this.getProperty("GEFID");};
MQFeature.prototype.setDT=function(intDT){this.setProperty("DT",intDT);};
MQFeature.prototype.getDT=function(){return this.getProperty("DT");};
MQPointFeature.prototype=new MQFeature();
MQPointFeature.prototype.constructor=MQPointFeature;
function MQPointFeature(){
	MQObject.call(this);
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOINTFEATURE()));
	this.setM_Xpath("PointFeature");
	this.m_CenterLatLng=new MQLatLng("CenterLatLng");
	this.m_CenterPoint=new MQPoint("CenterPoint");
}
MQPointFeature.prototype.getClassName=function(){return"MQPointFeature";};
MQPointFeature.prototype.getObjectVersion=function(){return 0;};
MQPointFeature.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var latlng=this.getCenterLatLng();
	var point=this.getCenterPoint();
	var lnode=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng");var pnode=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint");
	if(lnode!==null)
		latlng.loadXmlFromNode(lnode);
	if(pnode!==null)
		point.loadXmlFromNode(pnode);
};
MQPointFeature.prototype.loadXmlFromNode=function(node){
	this.setM_XmlDoc(mqCreateXMLDocImportNode(node));
	this.getCenterLatLng().setLatLng(this.getProperty("CenterLatLng/Lat"),this.getProperty("CenterLatLng/Lng"));
	var x=this.getProperty("CenterPoint/X");
	if(x!=="")
		this.getCenterPoint().setXY(x,this.getProperty("CenterPoint/Y"));
};
MQPointFeature.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenterLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterLatLng"));
	newNode=mqCreateXMLDoc(this.getCenterPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQPointFeature.prototype.getCenterLatLng=function(){return this.m_CenterLatLng;};
MQPointFeature.prototype.setCenterLatLng=function(latLng){this.m_CenterLatLng.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
MQPointFeature.prototype.getCenterPoint=function(){return this.m_CenterPoint;};
MQPointFeature.prototype.setCenterPoint=function(Point){this.m_CenterPoint.setXY(Point.getX(),Point.getY());};
MQPolygonFeature.prototype=new MQPointFeature();
MQPolygonFeature.prototype.constructor=MQPolygonFeature;function MQPolygonFeature(){
	MQPointFeature.call(this);
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOLYGONFEATURE()));
	this.setM_Xpath("PolygonFeature");
	var m_LatLngs=new MQLatLngCollection();
	m_LatLngs.setM_Xpath("LatLngs");
	this.getLatLngs=function(){return m_LatLngs;};
	this.setLatLngs=function(latLngs){
		if(latLngs.getClassName()==="MQLatLngCollection"){
			m_LatLngs.removeAll();m_LatLngs.append(latLngs);
		}else{
			alert("failure in setLatLngs");
			throw"failure in setLatLngs";
		}
	};
	var m_Points=new MQPointCollection();
	m_Points.setM_Xpath("Points");
	this.getPoints=function(){return m_Points;};
	this.setPoints=function(pts){
		m_Points.removeAll();
		m_Points.append(pts);
	};
}
MQPolygonFeature.prototype.getClassName=function(){return"MQPolygonFeature";};
MQPolygonFeature.prototype.getObjectVersion=function(){return 0;};
MQPolygonFeature.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var latlng=this.getCenterLatLng();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null)
		latlng.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));
	var point=this.getCenterPoint();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null)
		point.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));
	var latlngs=this.getLatLngs();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null)
		latlngs.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));
	var points=this.getPoints();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null)
		points.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));
};
MQPolygonFeature.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenterLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterLatLng"));
	newNode=mqCreateXMLDoc(this.getCenterPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	newNode=mqCreateXMLDoc(this.getLatLngs().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LatLngs"));
	newNode=mqCreateXMLDoc(this.getPoints().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Points"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQLineFeature.prototype=new MQPolygonFeature();
MQLineFeature.prototype.constructor=MQLineFeature;function MQLineFeature(){
	MQPolygonFeature.call(this);
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLINEFEATURE()));
	this.setM_Xpath("LineFeature");
}
MQLineFeature.prototype.getClassName=function(){return"MQLineFeature";};
MQLineFeature.prototype.getObjectVersion=function(){return 0;};
MQLineFeature.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var latlng=this.getCenterLatLng();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null)
		latlng.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));
	var point=this.getCenterPoint();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null)
		point.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));
	var latlngs=this.getLatLngs();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null)
		latlngs.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));
	var points=this.getPoints();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null)
		points.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));
};
MQLineFeature.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenterLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterLatLng"));
	newNode=mqCreateXMLDoc(this.getCenterPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	newNode=mqCreateXMLDoc(this.getLatLngs().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LatLngs"));
	newNode=mqCreateXMLDoc(this.getPoints().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Points"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQLineFeature.prototype.getLeftPostalCode=function(){return this.getProperty("LeftPostalCode");};
MQLineFeature.prototype.setLeftPostalCode=function(strVal){this.setProperty("LeftPostalCode",strVal);};
MQLineFeature.prototype.getRightPostalCode=function(){return this.getProperty("RightPostalCode");};
MQLineFeature.prototype.setRightPostalCode=function(strVal){this.setProperty("RightPostalCode",strVal);};
MQLineFeature.prototype.getLeftAddressHi=function(){return this.getProperty("LeftAddressHi");};
MQLineFeature.prototype.setLeftAddressHi=function(strVal){this.setProperty("LeftAddressHi",strVal);};
MQLineFeature.prototype.getRightAddressHi=function(){return this.getProperty("RightAddressHi");};
MQLineFeature.prototype.setRightAddressHi=function(strVal){this.setProperty("RightAddressHi",strVal);};
MQLineFeature.prototype.getLeftAddressLo=function(){return this.getProperty("LeftAddressLo");};
MQLineFeature.prototype.setLeftAddressLo=function(strVal){this.setProperty("LeftAddressLo",strVal);};
MQLineFeature.prototype.getRightAddressLo=function(){return this.getProperty("RightAddressLo");};
MQLineFeature.prototype.setRightAddressLo=function(strVal){this.setProperty("RightAddressLo",strVal);};
MQLocation.prototype=new MQObject();
MQLocation.prototype.constructor=MQLocation;function MQLocation(){
	MQObject.call(this);
	this.setM_Xpath("Location");
}
MQLocation.prototype.getClassName=function(){return"MQLocation";};
MQLocation.prototype.getObjectVersion=function(){return 0;};
MQLocation.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQLocation.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQAddress.prototype=new MQLocation();
MQAddress.prototype.constructor=MQAddress;function MQAddress(){
	MQLocation.call(this);
	this.setM_Xpath("Address");
	if(this.getClassName()==="MQAddress"){
		this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getADDRESS()))
	}
}
MQAddress.prototype.getClassName=function(){return"MQAddress";};
MQAddress.prototype.getObjectVersion=function(){return 0;};
MQAddress.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQAddress.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQAddress.prototype.getAdminArea=function(intIndex){return this.getProperty("AdminArea"+intIndex);};
MQAddress.prototype.setAdminArea=function(intIndex,strAdminArea){this.setProperty("AdminArea"+intIndex,strAdminArea);};
MQAddress.prototype.getCountry=function(){return this.getProperty("AdminArea1");};
MQAddress.prototype.setCountry=function(strCountry){this.setProperty("AdminArea1",strCountry);};
MQAddress.prototype.getCounty=function(){return this.getProperty("AdminArea4");};
MQAddress.prototype.setCounty=function(strCounty){this.setProperty("AdminArea4",strCounty);};
MQAddress.prototype.getCity=function(){return this.getProperty("AdminArea5");};
MQAddress.prototype.setCity=function(strCity){this.setProperty("AdminArea5",strCity);};
MQAddress.prototype.getPostalCode=function(){return this.getProperty("PostalCode");};
MQAddress.prototype.setPostalCode=function(strPostalCode){this.setProperty("PostalCode",strPostalCode);};
MQAddress.prototype.getState=function(){return this.getProperty("AdminArea3");};
MQAddress.prototype.setState=function(strState){this.setProperty("AdminArea3",strState);};
MQAddress.prototype.setStreet=function(strStreet){this.setProperty("Street",strStreet);};
MQAddress.prototype.getStreet=function(){return this.getProperty("Street");};
MQSingleLineAddress.prototype=new MQLocation();
MQSingleLineAddress.prototype.constructor=MQSingleLineAddress;
function MQSingleLineAddress(){
	MQLocation.call(this);
	this.setM_Xpath("SingleLineAddress");
	if(this.getClassName()==="MQSingleLineAddress"){
		this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSINGLELINEADDRESS()));
	}
}
MQSingleLineAddress.prototype.getClassName=function(){return"MQSingleLineAddress";};
MQSingleLineAddress.prototype.getObjectVersion=function(){return 0;};
MQSingleLineAddress.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQSingleLineAddress.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQSingleLineAddress.prototype.setAddress=function(strAddress){this.setProperty("Address",strAddress);};
MQSingleLineAddress.prototype.getAddress=function(){return this.getProperty("Address");};
MQSingleLineAddress.prototype.setCountry=function(strCountry){this.setProperty("Country",strCountry);};
MQSingleLineAddress.prototype.getCountry=function(){return this.getProperty("Country");};
MQGeoAddress.prototype=new MQAddress();
MQGeoAddress.prototype.constructor=MQGeoAddress;
function MQGeoAddress(){
	MQAddress.call(this);
	this.setM_Xpath("GeoAddress");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOADDRESS()));
	var m_MQLatLng=new MQLatLng();
	this.getMQLatLng=function(){return m_MQLatLng;};
	this.setMQLatLng=function(latLng){m_MQLatLng=latLng;};
}
MQGeoAddress.prototype.getClassName=function(){return"MQGeoAddress";};
MQGeoAddress.prototype.getObjectVersion=function(){return 0;};
MQGeoAddress.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var lat=this.getProperty("LatLng/Lat");
	var lng=this.getProperty("LatLng/Lng");
	this.getMQLatLng().setLatLng(lat,lng);
};
MQGeoAddress.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getMQLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LatLng"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQGeoAddress.prototype.setDistAlong=function(dblDistAlong){this.setProperty("DistAlong",dblDistAlong);};
MQGeoAddress.prototype.getDistAlong=function(){return this.getProperty("DistAlong");};
MQGeoAddress.prototype.setGEFID=function(intGEFID){this.setProperty("GEFID",intGEFID);};
MQGeoAddress.prototype.getGEFID=function(){return this.getProperty("GEFID");};
MQGeoAddress.prototype.setResultCode=function(strResultCode){this.setProperty("ResultCode",strResultCode);};
MQGeoAddress.prototype.getResultCode=function(){return this.getProperty("ResultCode");};
MQGeoAddress.prototype.setSourceId=function(strSourceId){this.setProperty("SourceId",strSourceId);};
MQGeoAddress.prototype.getSourceId=function(){return this.getProperty("SourceId");};
MQManeuver.prototype=new MQObject();
MQManeuver.prototype.constructor=MQManeuver;
function MQManeuver(){
	MQObject.call(this);
	this.setM_Xpath("Maneuver");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getMANEUVER()));
	var m_Streets=new MQStringCollection("Item");
	m_Streets.setM_Xpath("Streets");
	this.getStreets=function(){return m_Streets;};
	this.setStreets=function(streets){m_Streets.removeAll();m_Streets.append(streets);};
	var m_ShapePoints=new 		
	MQLatLngCollection();
	m_ShapePoints.setM_Xpath("ShapePoints");
	this.getShapePoints=function(){return m_ShapePoints;};
	this.setShapePoints=function(shapePoints){
		if(shapePoints.getClassName()==="MQLatLngCollection"){
			m_ShapePoints.removeAll();
			m_ShapePoints.append(shapePoints);
		}else{
			alert("failure in setShapePoints");
			throw"failure in setShapePoints";
		}
	};
	var m_GEFIDs=new MQIntCollection("Item");
	m_GEFIDs.setM_Xpath("GEFIDs");
	this.getGEFIDs=function(){return m_GEFIDs;};
	this.setGEFIDs=function(GEFIDs){m_GEFIDs.removeAll();m_GEFIDs.append(GEFIDs);};
	var m_Signs=new MQSignCollection("Sign");
	m_Signs.setM_Xpath("Signs");
	this.getSigns=function(){return m_Signs;};
	this.setSigns=function(signs){m_Signs.removeAll();m_Signs.append(signs);};
}	
MQManeuver.prototype.getClassName=function(){return"MQManeuver";};
MQManeuver.prototype.getObjectVersion=function(){return 1;};
MQManeuver.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var streets=this.getStreets();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets")!==null)
		streets.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets"));
	var shapes=this.getShapePoints();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints")!==null)
		shapes.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints"));
	var gefids=this.getGEFIDs();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")!==null)
		gefids.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")));
	var signs=this.getSigns();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs")!==null)
		signs.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs"));
};
MQManeuver.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getStreets().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Streets"));
	newNode=mqCreateXMLDoc(this.getShapePoints().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"ShapePoints"));
	newNode=mqCreateXMLDoc(this.getGEFIDs().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"GEFIDs"));
	newNode=mqCreateXMLDoc(this.getSigns().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Signs"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQManeuver.prototype.setTurnType=function(type){this.setProperty("TurnType",type);};
MQManeuver.prototype.getTurnType=function(){return this.getProperty("TurnType");};
MQManeuver.prototype.setDistance=function(distance){this.setProperty("Distance",distance);};
MQManeuver.prototype.getDistance=function(){return this.getProperty("Distance");};
MQManeuver.prototype.setTime=function(seconds){this.setProperty("Time",seconds);};
MQManeuver.prototype.getTime=function(){return this.getProperty("Time");};
MQManeuver.prototype.setDirection=function(direction){this.setProperty("Direction",direction);};
MQManeuver.prototype.getDirection=function(){return this.getProperty("Direction");};
MQManeuver.prototype.getDirectionName=function(){
	switch(parseInt(this.getDirection()))
	{
		case MQCONSTANT.MQMANEUVER_HEADING_NORTH:
			return"North";
		case MQCONSTANT.MQMANEUVER_HEADING_NORTH_WEST:
			return"Northwest";
		case MQCONSTANT.MQMANEUVER_HEADING_NORTH_EAST:
			return"Northeast";
		case MQCONSTANT.MQMANEUVER_HEADING_SOUTH:
			return"South";
		case MQCONSTANT.MQMANEUVER_HEADING_SOUTH_EAST:
			return"Southeast";
		case MQCONSTANT.MQMANEUVER_HEADING_SOUTH_WEST:
			return"Southwest";
		case MQCONSTANT.MQMANEUVER_HEADING_WEST:
			return"West";
		case MQCONSTANT.MQMANEUVER_HEADING_EAST:
			return"East";
		default:return"";
	}
};
MQManeuver.prototype.setAttributes=function(attributes){this.setProperty("Attributes",attributes);};
MQManeuver.prototype.getAttributes=function(){return this.getProperty("Attributes");};
MQManeuver.prototype.setNarrative=function(narrative){this.setProperty("Narrative",narrative);};
MQManeuver.prototype.getNarrative=function(){return this.getProperty("Narrative");};
MQTrekRoute.prototype=new MQObject();
MQTrekRoute.prototype.constructor=MQTrekRoute;
function MQTrekRoute(){
	MQObject.call(this);
	this.setM_Xpath("TrekRoute");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getTREKROUTE()));
	var maneuverList=new MQManeuverCollection("Maneuver");
	maneuverList.setM_Xpath("Maneuvers");
	this.getManeuvers=function(){return maneuverList;};
	var shapePoints=null;
	this.getShapePoints=function(){
		if(shapePoints===null){
			distance=0.0;
			time=0;
			shapePoints=new MQLatLngCollection();
			shapePoints.setM_Xpath("ShapePoints");
			for(var man=0;man<this.getManeuvers().getSize();man++){
				shapePoints.append(this.getManeuvers().get(man).getShapePoints());
				distance+=parseFloat(this.getManeuvers().get(man).getDistance());
				time+=parseInt(this.getManeuvers().get(man).getTime());
			}
		}
		return shapePoints;
	};
	var distance=null;
	this.getDistance=function(){
		if(distance===null){
			distance=0.0;
			time=0;
			shapePoints=new MQLatLngCollection();
			shapePoints.setM_Xpath("ShapePoints");
			for(var man=0;man<this.getManeuvers().getSize();man++){
				shapePoints.append(this.getManeuvers().get(man).getShapePoints());
				distance+=parseFloat(this.getManeuvers().get(man).getDistance());
				time+=parseInt(this.getManeuvers().get(man).getTime());
			}
		}
		return distance;
	};
	var time=null;
	this.getTime=function(){
		if(time===null){
			distance=0.0;
			time=0;
			shapePoints=new MQLatLngCollection();
			shapePoints.setM_Xpath("ShapePoints");
			for(var man=0;man<this.getManeuvers().getSize();man++){
				shapePoints.append(this.getManeuvers().get(man).getShapePoints());
				distance+=parseFloat(this.getManeuvers().get(man).getDistance());
				time+=parseInt(this.getManeuvers().get(man).getTime());
			}
		}
		return time;
	};
}
MQTrekRoute.prototype.getClassName=function(){return"MQTrekRoute";};
MQTrekRoute.prototype.getObjectVersion=function(){return 0;};
MQTrekRoute.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var maneuvers=this.getManeuvers();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")!==null)
		maneuvers.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")));
};
MQTrekRoute.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getManeuvers().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Maneuvers"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQGeocodeOptions.prototype=new MQObject();
MQGeocodeOptions.prototype.constructor=MQGeocodeOptions;function MQGeocodeOptions(){
	MQObject.call(this);
	this.setM_Xpath("GeocodeOptions");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOCODEOPTIONS()));
	var m_MatchType=new MQMatchType(0);
	this.getMatchType=function(){return m_MatchType;};
	this.setMatchType=function(MatchType){m_MatchType=MatchType;};
	var m_QualityType=new MQQualityType(0);
	this.getQualityType=function(){return m_QualityType;};
	this.setQualityType=function(QualityType){m_QualityType=QualityType;};
};
MQGeocodeOptions.prototype.getClassName=function(){return"MQGeocodeOptions";};
MQGeocodeOptions.prototype.getObjectVersion=function(){return 0;};
MQGeocodeOptions.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	this.setMatchType(new MQMatchType(Math.floor(this.getProperty("MatchType"))));
	this.getQualityType(new MQQualityType(Math.floor(this.getProperty("QualityType"))));
};
MQGeocodeOptions.prototype.saveXml=function(){
	this.setProperty("MatchType",this.getMatchType().intValue());
	this.setProperty("QualityType",this.getQualityType().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQGeocodeOptions.prototype.setCoverageName=function(newCoverageName){this.setProperty("CoverageName",newCoverageName);};
MQGeocodeOptions.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};
MQGeocodeOptions.prototype.setMaxMatches=function(nMax){this.setProperty("MaxMatches",nMax);};
MQGeocodeOptions.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches");};
MQRouteOptions.prototype=new MQObject();
MQRouteOptions.prototype.constructor=MQRouteOptions;
function MQRouteOptions(){
	MQObject.call(this);
	this.setM_Xpath("RouteOptions");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getROUTEOPTIONS()));
	var m_AvoidAttrList=new MQStringCollection();
	m_AvoidAttrList.setM_Xpath("AvoidAttributeList");
	this.getAvoidAttrList=function(){return m_AvoidAttrList;};
	this.setAvoidAttrList=function(avoidAttrList){m_AvoidAttrList.removeAll();m_AvoidAttrList.append(avoidAttrList);};
	var m_AvoidGefIdList=new MQIntCollection();
	m_AvoidGefIdList.setM_Xpath("AvoidGefIdList");
	this.getAvoidGefIdList=function(){return m_AvoidGefIdList;};
	this.setAvoidGefIdList=function(avoidGefIdList){
		m_AvoidGefIdList.removeAll();
		m_AvoidGefIdList.append(avoidGefIdList);
	};
	var m_AvoidAbsGefIdList=new MQIntCollection();
	m_AvoidAbsGefIdList.setM_Xpath("AvoidAbsoluteGefIdList");
	this.getAvoidAbsGefIdList=function(){return m_AvoidAbsGefIdList;};
	this.setAvoidAbsGefIdList=function(avoidAbsGefIdList){
		m_AvoidAbsGefIdList.removeAll();
		m_AvoidAbsGefIdList.append(avoidAbsGefIdList);
	};
	var m_AutoRouteCovSwitch=new MQAutoRouteCovSwitch("CovSwitcher");
	this.getAutoRouteCovSwitch=function(){return m_AutoRouteCovSwitch;};
	this.setAutoRouteCovSwitch=function(autoRouteCovSwitch){m_AutoRouteCovSwitch=autoRouteCovSwitch;};
	var m_RouteType=new MQRouteType(0);
	this.getRouteType=function(){return m_RouteType;};
	this.setRouteType=function(routeType){m_RouteType=routeType;};
	var m_NarrativeType=new MQNarrativeType(0);
	this.getNarrativeType=function(){return m_NarrativeType;};
	this.setNarrativeType=function(narrativeType){m_NarrativeType=narrativeType;};
	var m_DistanceUnits=new MQDistanceUnits(0);
	this.getDistanceUnits=function(){return m_DistanceUnits;};
	this.setDistanceUnits=function(distanceUnits){m_DistanceUnits=distanceUnits;};
};
MQRouteOptions.prototype.getClassName=function(){return"MQRouteOptions";};
MQRouteOptions.prototype.getObjectVersion=function(){return 3;};
MQRouteOptions.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var avoidAttributeList=this.getAvoidAttrList();
	avoidAttributeList.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAttributeList")));
	var avoidGefIdList=this.getAvoidGefIdList();
	avoidGefIdList.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidGefIdList")));	
	var avoidAbsoluteGefIdList=this.getAvoidAbsGefIdList();
	avoidAbsoluteGefIdList.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAbsoluteGefIdList")));
	var covSwitcher=this.getAutoRouteCovSwitch();
	covSwitcher.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CovSwitcher")));
	this.setRouteType(new MQRouteType(Math.floor(this.getProperty("RouteType"))));
	this.getNarrativeType(new MQNarrativeType(Math.floor(this.getProperty("NarrativeType"))));
this.getDistanceUnits(new MQDistanceUnits(Math.floor(this.getProperty("NarrativeDistanceUnitType"))));
};
MQRouteOptions.prototype.saveXml=function(){
	var newNode=null;
	this.setProperty("RouteType",this.getRouteType().intValue());
	this.setProperty("NarrativeType",this.getNarrativeType().intValue());
	this.setProperty("NarrativeDistanceUnitType",this.getDistanceUnits().getValue());
	newNode=mqCreateXMLDoc(this.getAutoRouteCovSwitch().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CovSwitcher"));
	newNode=mqCreateXMLDoc(this.getAvoidAttrList().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"AvoidAttributeList"));
	newNode=mqCreateXMLDoc(this.getAvoidGefIdList().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"AvoidGefIdList"));
	newNode=mqCreateXMLDoc(this.getAvoidAbsGefIdList().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"AvoidAbsoluteGefIdList"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQRouteOptions.prototype.setMaxShapePointsPerManeuver=function(nCount){this.setProperty("MaxShape",nCount);};
MQRouteOptions.prototype.getMaxShapePointsPerManeuver=function(){return this.getProperty("MaxShape");};
MQRouteOptions.prototype.setMaxGEFIDsPerManeuver=function(nCount){this.setProperty("MaxGEFID",nCount);};
MQRouteOptions.prototype.getMaxGEFIDsPerManeuver=function(){return this.getProperty("MaxGEFID");};
MQRouteOptions.prototype.setLanguage=function(strLanguage){this.setProperty("Language",strLanguage);};
MQRouteOptions.prototype.getLanguage=function(){return this.getProperty("Language");};
MQRouteOptions.prototype.setCoverageName=function(newCoverageName){this.setProperty("CoverageName",newCoverageName);};
MQRouteOptions.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};
MQRouteOptions.prototype.setStateBoundaryDisplay=function(bFlag){
	this.setProperty("StateBoundaryDisplay",(bFlag===true)?1:0);
};
MQRouteOptions.prototype.getStateBoundaryDisplay=function(){
	return(this.getProperty("StateBoundaryDisplay")==1)?true:false;
};
MQRouteOptions.prototype.setCountryBoundaryDisplay=function(bFlag){
	this.setProperty("CountryBoundaryDisplay",(bFlag===true)?1:0);
};
MQRouteOptions.prototype.getCountryBoundaryDisplay=function(){
	return(this.getProperty("CountryBoundaryDisplay")==1)?true:false;
};
MQRouteResults.prototype=new MQObject();
MQRouteResults.prototype.constructor=MQRouteResults;
function MQRouteResults(){
	MQObject.call(this);
	this.setM_Xpath("RouteResults");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getROUTERESULTS()));
	var m_Locations=new MQLocationCollection();
	m_Locations.setM_Xpath("Locations");
	this.getLocations=function(){return m_Locations;};
	var m_TrekRoutes=new MQTrekRouteCollection("TrekRoute");
	m_TrekRoutes.setM_Xpath("TrekRoutes");
	this.getTrekRoutes=function(){return m_TrekRoutes;};
	var m_ResultCode=new MQRouteResultsCode(MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED);
	this.getResultCode=function(){return m_ResultCode;};
	this.setResultCode=function(resultCode){m_ResultCode=resultCode;};
	var m_ResultMessages=new MQStringCollection("Item");
	m_ResultMessages.setM_Xpath("ResultMessages");
	this.getResultMessages=function(){return m_ResultMessages;};
	var shapePoints=null;
	this.getShapePoints=function(){
		if(shapePoints===null){
			distance=0.0;
			time=0;
			shapePoints=new MQLatLngCollection();
			shapePoints.setM_Xpath("ShapePoints");
			for(var tr=0;tr<this.getTrekRoutes().getSize();tr++){
				var trek=this.getTrekRoutes().get(tr);
				for(var man=0;man<trek.getManeuvers().getSize();man++){
					shapePoints.append(trek.getManeuvers().get(man).getShapePoints());
					distance+=parseFloat(trek.getManeuvers().get(man).getDistance());
					time+=parseInt(trek.getManeuvers().get(man).getTime());
				}
			}
		}
		return shapePoints;
	};
	var distance=-1.0;
	this.getDistance=function(){
		if(distance===-1.0){
			distance=0.0;
			time=0;
			shapePoints=new MQLatLngCollection();
			shapePoints.setM_Xpath("ShapePoints");
			for(var tr=0;tr<this.getTrekRoutes().getSize();tr++){
				var trek=this.getTrekRoutes().get(tr);
				for(var man=0;man<trek.getManeuvers().getSize();man++){
					shapePoints.append(trek.getManeuvers().get(man).getShapePoints());
					distance+=parseFloat(trek.getManeuvers().get(man).getDistance());
					time+=parseInt(trek.getManeuvers().get(man).getTime());
				}
			}
		}
		return distance;
	};
	var time=-1;
	this.getTime=function(){
		if(time===-1){
			distance=0.0;
			time=0;
			shapePoints=new MQLatLngCollection();
			shapePoints.setM_Xpath("ShapePoints");
			for(var tr=0;tr<this.getTrekRoutes().getSize();tr++){
				var trek=this.getTrekRoutes().get(tr);
				for(var man=0;man<trek.getManeuvers().getSize();man++){
					shapePoints.append(trek.getManeuvers().get(man).getShapePoints());
					distance+=parseFloat(trek.getManeuvers().get(man).getDistance());
					time+=parseInt(trek.getManeuvers().get(man).getTime());
				}
			}
		}
		return time;
	};
}
MQRouteResults.prototype.getClassName=function(){return"MQRouteResults";};
MQRouteResults.prototype.getObjectVersion=function(){return 1;};
MQRouteResults.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var locs=this.getLocations();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")!==null)
		locs.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")));
	var trek=this.getTrekRoutes();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")!==null)
		trek.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")));
	var mesgs=this.getResultMessages();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null)
		mesgs.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")));
	this.setResultCode(new MQRouteResultsCode(Math.floor(this.getProperty("ResultCode"))));
};
MQRouteResults.prototype.saveXml=function(){
	this.setProperty("ResultCode",this.getResultCode().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQRouteResults.prototype.setCoverageName=function(strName){this.setProperty("CoverageName",strName);};
MQRouteResults.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};
MQRouteMatrixResults.prototype=new MQObject();
MQRouteMatrixResults.prototype.constructor=MQRouteMatrixResults;
function MQRouteMatrixResults(){
	MQObject.call(this);
	this.setM_Xpath("RouteMatrixResults");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getROUTEMATRIXRESULTS()));
	var m_LocationCount=-1;
	var m_Distance=null;
	this.setDistance=function(col){
		if(col){
			if(col.getClassName()==="MQIntCollection"){
				if(m_Distance!==null){
					m_Distance.removeAll();
					m_Distance.append(col);
				}else{
					m_Distance=col;
				}
			}else{
				alert("failure in setDistance -- col is not MQIntCollection type");
				throw"failure in setDistance -- col is not MQIntCollection type";
			}
		}else{
			alert("failure in setDistance -- col is null");
			throw"failure in setDistance -- col is null";
		}
	};
	this.getDistance=function(from,to){
		if(m_LocationCount===-1){m_LocationCount=this.getProperty("LocationCount");}
		var pos=((from*m_LocationCount)+to);
		return(m_Distance.get(pos)/1000.0).toFixed(6);
	};
	var m_Time=null;
	this.setTime=function(col){
		if(col){
			if(col.getClassName()==="MQIntCollection"){
				if(m_Time!==null){
					m_Time.removeAll();
					m_Time.append(col);
				}else{
					m_Time=col;
				}
			}else{
				alert("failure in setTime -- col is not MQIntCollection type");
				throw"failure in setTime -- col is not MQIntCollection type";
			}
		}else{
			alert("failure in setTime -- col is null");
			throw"failure in setTime -- col is null";
		}
	};
	this.getTime=function(from,to){
		if(m_LocationCount===-1){m_LocationCount=this.getProperty("LocationCount");}
		var pos=((from*m_LocationCount)+to);
		return m_Time.get(pos);
	};
	var m_ResultCode=new MQRouteMatrixResultsCode(MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED);
	this.getResultCode=function(){return m_ResultCode;};
	this.setResultCode=function(rc){
		if(rc){
			if(rc.getClassName()==="MQRouteMatrixResultsCode"){
				m_ResultCode=rc;
			}else{
				alert("failure in setResultsCode -- rc is not MQRouteMatrixResultsCode type");
				throw"failure in setResultsCode -- rc is not MQRouteMatrixResultsCode type";
			}
		}else{
			alert("failure in setResultsCode -- rc is null");
			throw"failure in setResultsCode -- rc is null";
		}
	};
	var m_ResultMessages=null;
	this.setResultMessages=function(col){
		if(col){
			if(col.getClassName()==="MQStringCollection"){
				if(m_ResultMessages!==null){
					m_ResultMessages.removeAll();
					m_ResultMessages.append(col);
				}else{
					m_ResultMessages=col;
				}
			}else{
				alert("failure in setResultMessages -- col is not MQStringCollection type");
				throw"failure in setResultMessages -- col is not MQStringCollection type";
			}
		}else{
			alert("failure in setResultMessages -- col is null");
			throw"failure in setResultMessages -- col is null";
		}
	};
	this.getResultsMessages=function(){return m_ResultMessages;};
}
MQRouteMatrixResults.prototype.getClassName=function(){return"MQRouteMatrixResults";};
MQRouteMatrixResults.prototype.getObjectVersion=function(){return 0;};
MQRouteMatrixResults.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var dis=new MQIntCollection();
	dis.setM_Xpath("DistanceMatrix");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")!==null)
		dis.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")));
	this.setDistance(dis);
	var tim=new MQIntCollection();
	tim.setM_Xpath("TimeMatrix");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")!==null)
		tim.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")));
	this.setTime(tim);
	var mes=new MQStringCollection();
	mes.setM_Xpath("ResultMessages");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null)
		mes.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")));
	this.setResultMessages(mes);
	this.setResultCode(new MQRouteMatrixResultsCode(Math.floor(this.getProperty("ResultCode"))));
};
MQRouteMatrixResults.prototype.saveXml=function(){
	this.setProperty("ResultCode",this.getResultCode().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQRouteMatrixResults.prototype.setCoverageName=function(newCoverageName){this.setProperty("CoverageName",newCoverageName);};
MQRouteMatrixResults.prototype.getCoverageName=function(){return this.getProperty("CoverageName");};
MQRouteMatrixResults.prototype.getAllToAllFlag=function(){return(this.getProperty("AllToAll")==1)?true:false;}
MQRecordSet.prototype=new MQObject();
MQRecordSet.prototype.constructor=MQRecordSet;
function MQRecordSet(){
	MQObject.call(this);
	this.setM_Xpath("RecordSet");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECORDSET()));
	var m_EOF=true;
	var m_BOF=true;
	var m_recCnt=0;
	var m_curRec=-1;
	var m_Fields=new MQStringCollection();
	m_Fields.setM_Xpath("Fields");
	var m_Records=new MQStrColCollection("Record");
	m_Records.setM_Xpath("Records");
	m_Records.setValidClassName("MQStringCollection");
	this.moveFirst=function(){
		if(m_Records.getSize()!==0){
			m_EOF=false;
			m_BOF=false
			;m_curRec=0;
		}else{
			alert(MQERROR.RECORDSET_MOVEFIRST_1);
			throw MQERROR.RECORDSET_MOVEFIRST_1;
		}
	};
	this.moveLast=function(){
		if(m_Records.getSize()!==0){
			m_EOF=false;
			m_BOF=false;
			m_curRec=m_Records.getSize()-1;
		}else{
			alert(MQERROR.RECORDSET_MOVELAST_1);
			throw MQERROR.RECORDSET_MOVELAST_1;
		}
	};
	this.moveNext=function(){
		var numRecs=m_Records.getSize();
		if(numRecs!==0){
			if(m_curRec<numRecs-1){
				m_curRec++;
				m_BOF=false;
				m_EOF=false;
			}else if(m_curRec===numRecs-1){
				m_curRec++;
				m_BOF=false;
				m_EOF=true;
			}else if(m_EOF){
				alert(MQERROR.RECORDSET_MOVENEXT_1);
				throw MQERROR.RECORDSET_MOVENEXT_1;
			}else{
				alert(MQERROR.RECORDSET_MOVENEXT_2);
				throw MQERROR.RECORDSET_MOVENEXT_2;
			}
		}else{
			alert(MQERROR.RECORDSET_MOVENEXT_3);
			throw MQERROR.RECORDSET_MOVENEXT_3;
		}
	};
	this.isBOF=function(){return m_BOF;};
	this.isEOF=function(){return m_EOF;};
	this.getFieldNames=function(){return m_Fields;};
	this.getField=function(strFieldName){
		if(!(0<=m_curRec&&m_curRec<m_recCnt)){
			alert(MQERROR.RECORDSET_GETFIELD_1);
			throw MQERROR.RECORDSET_GETFIELD_1;
		}
		var pos=-1;
		for(var i=0;i<m_Fields.getSize();i++){
			if(m_Fields.get(i)===strFieldName){pos=i;break;}
		}
		if(pos===-1){
			alert(MQERROR.RECORDSET_GETFIELD_2);
			throw MQERROR.RECORDSET_GETFIELD_2;
		}
		return m_Records.get(m_curRec).get(pos);
	};
	this.loadXml=function(strXml){
		var xmlDoc=mqCreateXMLDoc(strXml);
		this.setM_XmlDoc(xmlDoc);
		m_Fields.loadXml(mqXmlToStr(mqGetNode(xmlDoc,"/"+this.getM_Xpath()+"/Fields")));
		if(xmlDoc!==null){
			var root=xmlDoc.documentElement;
			var nodes=root.childNodes;
			var maxCount=nodes.length;
			maxCount=(maxCount<32678)?maxCount:32678;
			var minCount=0;
			var col=null;
			m_Records.removeAll();
			for(var count=minCount;count<maxCount;count++){
				if(nodes[count].nodeName==="Record"){
					col=new MQStringCollection();
					col.setM_Xpath("Record");
					col.loadXml(mqXmlToStr(nodes[count]));
					m_Records.add(col);
				}
			}
		}
		m_recCnt=this.getProperty("RecordCount");
		if(m_recCnt>0){
			m_curRec=0;
			m_BOF=false;
			m_EOF=false;
		}
	};
};
MQRecordSet.prototype.getClassName=function(){return"MQRecordSet";};
MQRecordSet.prototype.getObjectVersion=function(){return 0;};
MQRecordSet.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQMapState.prototype=new MQObject();
MQMapState.prototype.constructor=MQMapState;
function MQMapState(){
	MQObject.call(this);
	this.setM_Xpath("MapState");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getMAPSTATE()));
	var m_MQLatLng=new MQLatLng("Center");
	this.getCenter=function(){return m_MQLatLng;};
	this.setCenter=function(latLng){m_MQLatLng.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
}
MQMapState.prototype.getClassName=function(){return"MQMapState";};
MQMapState.prototype.getObjectVersion=function(){return 0;};
MQMapState.prototype.initObject=function(){
	this.setProperty("Scale",0);
	this.setCenter(new MQLatLng(0,0));
	this.setProperty("Width",-1.0);
	this.setProperty("Height",-1.0);
	this.setProperty("MapName","");
	this.setProperty("CoverageName","");
}
MQMapState.prototype.equals=function(comparator){
	if(comparator){
		try{
			if(comparator.getClassName()==="MQMapState"){
				return m_nScale==other.m_nScale&&m_strMapName===other.m_strMapName&&m_strCoverageName===other.m_strCoverageName&&m_llCenter.equals(other.m_llCenter)&&m_dMapWidth===other.m_dMapWidth&&m_dMapHeight===other.m_dMapHeight;
			}
		}
		catch(error){}
	}
	return false;
};
MQMapState.prototype.setMapName=function(strName){this.setProperty("MapName",strName);}
MQMapState.prototype.getMapName=function(){this.getProperty("MapName");}
MQMapState.prototype.setCoverageName=function(strCovId){this.setProperty("CoverageName",strCovId);}
MQMapState.prototype.getCoverageName=function(){this.getProperty("CoverageName");}
MQMapState.prototype.setWidthInches=function(dWidth){this.setProperty("Width",dWidth);}
MQMapState.prototype.getWidthInches=function(){return this.getProperty("Width");}
MQMapState.prototype.setHeightInches=function(dHeight){this.setProperty("Height",dHeight);}
MQMapState.prototype.getHeightInches=function(){return this.getProperty("Height");}
MQMapState.prototype.setWidthPixels=function(iWidth,dpi){
	if(dpi){
		this.setProperty("Width",parseFloat(iWidth)/parseFloat(dpi));
	}else{
		this.setProperty("Width",parseFloat(iWidth)/parseFloat(72));
	}
}
MQMapState.prototype.getWidthPixels=function(dpi){
	if(dpi){
		return Math.ceil(this.getProperty("Width")*dpi);
	}else{
		return Math.ceil(this.getProperty("Width")*72);
	}
}
MQMapState.prototype.setHeightPixels=function(iHeight,dpi){
	if(dpi){
		this.setProperty("Height",parseFloat(iHeight)/parseFloat(dpi));
	}else{
		this.setProperty("Height",parseFloat(iHeight)/parseFloat(72));
	}
}
MQMapState.prototype.getHeightPixels=function(dpi){
	if(dpi){
		return Math.ceil(this.getProperty("Height")*dpi);
	}else{
		return Math.ceil(this.getProperty("Height")*72);
	}
}
MQMapState.prototype.setMapScale=function(nNewScale){this.setProperty("Scale",nNewScale);}
MQMapState.prototype.getMapScale=function(){return this.getProperty("Scale");}
MQMapState.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var lat=this.getProperty("Center/Lat");
	var lng=this.getProperty("Center/Lng");
	this.getCenter().setLatLng(lat,lng);
};
MQMapState.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenter().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Center"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQSearchCriteria.prototype=new MQObject();
MQSearchCriteria.prototype.constructor=MQSearchCriteria;
function MQSearchCriteria(){MQObject.call(this);}
MQSearchCriteria.prototype.getClassName=function(){return"MQSearchCriteria";};
MQSearchCriteria.prototype.getObjectVersion=function(){return 0;};
MQSearchCriteria.prototype.setMaxMatches=function(nMax){this.setProperty("MaxMatches",nMax);};
MQSearchCriteria.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches");};
MQRadiusSearchCriteria.prototype=new MQSearchCriteria();
MQRadiusSearchCriteria.prototype.constructor=MQRadiusSearchCriteria;
function MQRadiusSearchCriteria(){
	MQObject.call(this);
	this.setM_Xpath("RadiusSearchCriteria");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRADIUSSEARCHCRITERIA()));
	var m_MQLatLng=new MQLatLng("CenterLatLng");
	this.getCenter=function(){return m_MQLatLng;};
	this.setCenter=function(latLng){m_MQLatLng.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
}
MQRadiusSearchCriteria.prototype.getClassName=function(){return"MQRadiusSearchCriteria";};
MQRadiusSearchCriteria.prototype.getObjectVersion=function(){return 0;};
MQRadiusSearchCriteria.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var lat=this.getProperty("CenterLatLng/Lat");
	var lng=this.getProperty("CenterLatLng/Lng");
	this.getCenter().setLatLng(lat,lng);
};
MQRadiusSearchCriteria.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenter().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterLatLng"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQRadiusSearchCriteria.prototype.setRadius=function(radius,lUnits){
	if(lUnits){
		mqIsClass("MQDistanceUnits",lUnits,false);
	}else{
		lUnits=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);
	}
	if(lUnits.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)
		radius=radius/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;
	this.setProperty("Radius",radius);
};
MQRadiusSearchCriteria.prototype.getRadius=function(lUnits){
	if(lUnits){
		mqIsClass("MQDistanceUnits",lUnits,false);
	}else{
		lUnits=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);
	}
	var radius=this.getProperty("Radius");
	if(lUnits.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)
		radius=radius*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;
	return radius;
};
MQRectSearchCriteria.prototype=new MQSearchCriteria();
MQRectSearchCriteria.prototype.constructor=MQRectSearchCriteria;
function MQRectSearchCriteria(mqRectLL){
	MQObject.call(this);
	this.setM_Xpath("RectSearchCriteria");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECTSEARCHCRITERIA()));
	var m_UpperLeft=new MQLatLng("UpperLeftLatLng");
	this.getUpperLeft=function(){return m_UpperLeft;};
	this.setUpperLeft=function(latLng){m_UpperLeft.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
	var m_LowerRight=new MQLatLng("LowerRightLatLng");
	this.getLowerRight=function(){return m_LowerRight;};
	this.setLowerRight=function(latLng){m_LowerRight.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
	if(mqRectLL){
		m_UpperLeft.setLatLng(mqRectLL.getUpperLeft().getLat(),mqRectLL.getUpperLeft().getLng());
		m_LowerRight.setLatLng(mqRectLL.getLowerRight().getLat(),mqRectLL.getLowerRight().getLng());
	}
}
MQRectSearchCriteria.prototype.getClassName=function(){return"MQRectSearchCriteria";};
MQRectSearchCriteria.prototype.getObjectVersion=function(){return 0;};
MQRectSearchCriteria.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var lat=this.getProperty("UpperLeftLatLng/Lat");
	var lng=this.getProperty("UpperLeftLatLng/Lng");
	this.getUpperLeft().setLatLng(lat,lng);
	lat=this.getProperty("LowerRightLatLng/Lat");
	lng=this.getProperty("LowerRightLatLng/Lng");
	this.getLowerRight().setLatLng(lat,lng);
};
MQRectSearchCriteria.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getUpperLeft().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"UpperLeftLatLng"));
	newNode=mqCreateXMLDoc(this.getLowerRight().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LowerRightLatLng"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQPolySearchCriteria.prototype=new MQSearchCriteria();
MQPolySearchCriteria.prototype.constructor=MQPolySearchCriteria;
function MQPolySearchCriteria(){
	MQObject.call(this);
	this.setM_Xpath("PolySearchCriteria");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOLYSEARCHCRITERIA()));
	var m_LatLngs=new MQLatLngCollection();
	m_LatLngs.setM_Xpath("LatLngs");
	this.getShapePoints=function(){return m_LatLngs;};
	this.setShapePoints=function(latLngs){
		if(latLngs.getClassName()==="MQLatLngCollection"){
			m_LatLngs.removeAll();
			m_LatLngs.append(latLngs);
		}else{
			alert("failure in setShapePoints");
			throw"failure in setShapePoints";
		}
	};
}
MQPolySearchCriteria.prototype.getClassName=function(){return"MQPolySearchCriteria";};
MQPolySearchCriteria.prototype.getObjectVersion=function(){return 0;};
MQPolySearchCriteria.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var latlngs=this.getShapePoints();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null)
		latlngs.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));
};
MQPolySearchCriteria.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getShapePoints().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LatLngs"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQCorridorSearchCriteria.prototype=new MQPolySearchCriteria();
MQCorridorSearchCriteria.prototype.constructor=MQCorridorSearchCriteria;
function MQCorridorSearchCriteria(){
	MQPolySearchCriteria.call(this);
	this.setM_Xpath("CorridorSearchCriteria");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCORRIDORSEARCHCRITERIA()));
}
MQCorridorSearchCriteria.prototype.getClassName=function(){return"MQCorridorSearchCriteria";};
MQCorridorSearchCriteria.prototype.getObjectVersion=function(){return 0;};
MQCorridorSearchCriteria.prototype.setCorrExactLinks=function(bExactLinks){this.setProperty("ExactLinks",(bExactLinks===true)?1:0);};
MQCorridorSearchCriteria.prototype.getCorrExactLinks=function(){return(this.getProperty("ExactLinks")==1)?true:false;};
MQCorridorSearchCriteria.prototype.setCorridorWidth=function(dCorrWidth,lUnits){
	if(lUnits){
		mqIsClass("MQDistanceUnits",lUnits,false);
	}else{
		lUnits=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);
	}
	if(lUnits.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)
		dCorrWidth=dCorrWidth/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;
	this.setProperty("CorridorWidth",dCorrWidth);
};
MQCorridorSearchCriteria.prototype.getCorridorWidth=function(lUnits){
	if(lUnits){
		mqIsClass("MQDistanceUnits",lUnits,false);
	}else{
		lUnits=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);
	}
	var width=this.getProperty("CorridorWidth");
	if(lUnits.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)
		width=width*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;
	return width;
};
MQCorridorSearchCriteria.prototype.setCorridorBufferWidth=function(dBufferWidth,lUnits){
	if(lUnits){
		mqIsClass("MQDistanceUnits",lUnits,false);
	}else{
		lUnits=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);
	}
	if(lUnits.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)
		dBufferWidth=dBufferWidth/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;
	this.setProperty("CorridorBufferWidth",dBufferWidth);
};
MQCorridorSearchCriteria.prototype.getCorridorBufferWidth=function(lUnits){
	if(lUnits){
		mqIsClass("MQDistanceUnits",lUnits,false);
	}else{
		lUnits=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES);
	}
	var width=this.getProperty("CorridorBufferWidth");
	if(lUnits.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS)
		width=width*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE;
	return width;
};
MQDBLayerQuery.prototype=new MQObject();
MQDBLayerQuery.prototype.constructor=MQDBLayerQuery;
function MQDBLayerQuery(){
	MQObject.call(this);
	this.setM_Xpath("DBLayerQuery");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDBLAYERQUERY()));
};
MQDBLayerQuery.prototype.getClassName=function(){return"MQDBLayerQuery";};
MQDBLayerQuery.prototype.getObjectVersion=function(){return 0;};
MQDBLayerQuery.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQDBLayerQuery.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQDBLayerQuery.prototype.setDBLayerName=function(strName){this.setProperty("LayerName",strName);};
MQDBLayerQuery.prototype.getDBLayerName=function(){return this.getProperty("LayerName");};
MQDBLayerQuery.prototype.setExtraCriteria=function(strQuery){this.setProperty("ExtraCriteria",strQuery);};
MQDBLayerQuery.prototype.getExtraCriteria=function(){return this.getProperty("ExtraCriteria");};
MQPrimitive.prototype=new MQObject();
MQPrimitive.prototype.constructor=MQPrimitive;
function MQPrimitive(){
	MQObject.call(this);
	var m_DrawTrigger=new MQDrawTrigger(MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT);
	this.getDrawTrigger=function(){return m_DrawTrigger;};
	this.setDrawTrigger=function(dt){
		if(dt){
			if(dt.getClassName()==="MQDrawTrigger"){
				m_DrawTrigger=dt;
			}
		}
	};
	var m_CoordinateType=new MQCoordinateType(MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC);
	this.getCoordinateType=function(){return m_CoordinateType;};
	this.setCoordinateType=function(dt){
		if(dt){
			if(dt.getClassName()==="MQCoordinateType"){
				m_CoordinateType=dt;
			}
		}
	};
};
MQPrimitive.prototype.getClassName=function(){return"MQPrimitive";};
MQPrimitive.prototype.getObjectVersion=function(){return 2;};
MQPrimitive.prototype.setKey=function(strKey){this.setProperty("Key",strKey);};
MQPrimitive.prototype.getKey=function(){return this.getProperty("Key");}
MQPrimitive.prototype.setOpacity=function(strOpacity){this.setProperty("Opacity",strOpacity);};
MQPrimitive.prototype.getOpacity=function(){return this.getProperty("Opacity");}
MQLinePrimitive.prototype=new MQPrimitive();
MQLinePrimitive.prototype.constructor=MQLinePrimitive;
function MQLinePrimitive(){
	MQPrimitive.call(this);
	this.setM_Xpath("LinePrimitive");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLINEPRIMITIVE()));
	var m_Color=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);
	this.getColor=function(){return m_Color;};
	this.setColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_Color=obj;
			}
		}
	};
	var m_Style=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);
	this.getStyle=function(){return m_Style;};
	this.setStyle=function(obj){
		if(obj){
			if(obj.getClassName()==="MQPenStyle"){
				m_Style=obj;
			}
		}
	};
	var m_XYArray=new MQPointCollection();
	m_XYArray.setM_Xpath("Points");
	this.getPoints=function(){return m_XYArray;};
	var m_LLArray=new MQLatLngCollection();
	m_LLArray.setM_Xpath("LatLngs");
	this.getLatLngs=function(){return m_LLArray;};
	this.setLatLngs=function(obj){
		if(obj){
			if(obj.getClassName()==="MQLatLngCollection"){
				m_LLArray.removeAll();
				m_LLArray.append(obj);
			}
		}
	};
};
MQLinePrimitive.prototype.getClassName=function(){return"MQLinePrimitive";};
MQLinePrimitive.prototype.getObjectVersion=function(){return 0;};
MQLinePrimitive.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var ll=new MQLatLngCollection();
	ll.setM_Xpath("LatLngs");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null)
		ll.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));
	this.setLatLngs(ll);
	var pt=new MQPointCollection();
	pt.setM_Xpath("Points");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null)
		pt.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));
	this.setPoints(ll);
	this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));
	this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));
	this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));
	this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));
};
MQLinePrimitive.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getLatLngs().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LatLngs"));
	newNode=mqCreateXMLDoc(this.getPoints().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Points"));
	this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());
	this.setProperty("CoordinateType",this.getCoordinateType().intValue());
	this.setProperty("Color",this.getColor().intValue());
	this.setProperty("Style",this.getStyle().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQLinePrimitive.prototype.setWidth=function(width){this.setProperty("Width",width);};
MQLinePrimitive.prototype.getWidth=function(){return this.getProperty("Width");}
MQPolygonPrimitive.prototype=new MQLinePrimitive();
MQPolygonPrimitive.prototype.constructor=MQPolygonPrimitive;
function MQPolygonPrimitive(){
	MQLinePrimitive.call(this);
	this.setM_Xpath("LinePrimitive");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOLYGONPRIMITIVE()));
	var m_FillColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);
	this.getFillColor=function(){return m_FillColor;};
	this.setFillColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_FillColor=obj;
			}
		}
	};
	var m_FillStyle=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);
	this.getFillStyle=function(){return m_FillStyle;};
	this.setFillStyle=function(obj){
		if(obj){
			if(obj.getClassName()==="MQFillStyle"){
				m_FillStyle=obj;
			}
		}
	};
};
MQPolygonPrimitive.prototype.getClassName=function(){return"MQPolygonPrimitive";};
MQPolygonPrimitive.prototype.getObjectVersion=function(){return 0;};
MQPolygonPrimitive.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var ll=new MQLatLngCollection();
	ll.setM_Xpath("LatLngs");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null)
		ll.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));
	this.setLatLngs(ll);
	var pt=new MQPointCollection();
	pt.setM_Xpath("Points");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null)
		pt.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")));
	this.setPoints(ll);
	this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));
	this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));
	this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));
	this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));
	this.setFillColor(new MQColorStyle(Math.floor(this.getProperty("FillColor"))));
	this.setFillStyle(new MQFillStyle(Math.floor(this.getProperty("FillStyle"))));
};
MQPolygonPrimitive.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getLatLngs().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LatLngs"));
	newNode=mqCreateXMLDoc(this.getPoints().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"Points"));
	this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());
	this.setProperty("CoordinateType",this.getCoordinateType().intValue());
	this.setProperty("Color",this.getColor().intValue());
	this.setProperty("Style",this.getStyle().intValue());
	this.setProperty("FillColor",this.getFillColor().intValue());
	this.setProperty("FillStyle",this.getFillStyle().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQRectanglePrimitive.prototype=new MQPrimitive();
MQRectanglePrimitive.prototype.constructor=MQRectanglePrimitive;
function MQRectanglePrimitive(){
	MQPrimitive.call(this);
	this.setM_Xpath("RectanglePrimitive");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getRECTANGLEPRIMITIVE()));
	var m_Color=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);
	this.getColor=function(){return m_Color;};
	this.setColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_Color=obj;
			}
		}
	};
	var m_Style=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);
	this.getStyle=function(){return m_Style;};
	this.setStyle=function(obj){
		if(obj){
			if(obj.getClassName()==="MQPenStyle"){
				m_Style=obj;
			}
		}
	};
	var m_FillColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);
	this.getFillColor=function(){return m_FillColor;};
	this.setFillColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_FillColor=obj;
			}
		}
	};
	var m_FillStyle=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);
	this.getFillStyle=function(){return m_FillStyle;};
	this.setFillStyle=function(obj){
		if(obj){
			if(obj.getClassName()==="MQFillStyle"){
				m_FillStyle=obj;
			}
		}
	};
	var m_UpperLeftLL=new MQLatLng("UpperLeftLatLng");
	this.getUpperLeftLatLng=function(){return m_UpperLeftLL;};
	this.setUpperLeftLatLng=function(latLng){m_UpperLeftLL.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
	var m_LowerRightLL=new MQLatLng("LowerRightLatLng");
	this.getLowerRightLatLng=function(){return m_LowerRightLL;};
	this.setLowerRightLatLng=function(latLng){m_LowerRightLL.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
	var m_UpperLeftPT=new MQPoint("UpperLeftPoint");
	this.getUpperLeftPoint=function(){return m_UpperLeftPT;};
	this.setUpperLeftPoint=function(point){m_UpperLeftPT.setXY(point.getX(),point.getY());};
	var m_LowerRightPT=new MQPoint("LowerRightPoint");
	this.getLowerRightPoint=function(){return m_LowerRightPT;};
	this.setLowerRightPoint=function(point){m_LowerRightPT.setXY(point.getX(),point.getY());};
};
MQRectanglePrimitive.prototype.getClassName=function(){return"MQRectanglePrimitive";};
MQRectanglePrimitive.prototype.getObjectVersion=function(){return 0;};
MQRectanglePrimitive.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var latlng=this.getUpperLeftLatLng();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null)
		latlng.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));
	latlng=this.getLowerRightLatLng();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null)
		latlng.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));
	var point=this.getUpperLeftPoint();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null)
		point.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));
	point=this.getLowerRightPoint();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null)
		point.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")));
	this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));
	this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));
	this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));
	this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));
	this.setFillColor(new MQColorStyle(Math.floor(this.getProperty("FillColor"))));
	this.setFillStyle(new MQFillStyle(Math.floor(this.getProperty("FillStyle"))));
};
MQRectanglePrimitive.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getUpperLeftLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"UpperLeftLatLng"));
	newNode=mqCreateXMLDoc(this.getLowerRightLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LowerRightLatLng"));
	newNode=mqCreateXMLDoc(this.getUpperLeftPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"UpperLeftPoint"));
	newNode=mqCreateXMLDoc(this.getLowerRightPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LowerRightPoint"));
	this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());
	this.setProperty("CoordinateType",this.getCoordinateType().intValue());
	this.setProperty("Color",this.getColor().intValue());
	this.setProperty("Style",this.getStyle().intValue());
	this.setProperty("FillColor",this.getFillColor().intValue());
	this.setProperty("FillStyle",this.getFillStyle().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQRectanglePrimitive.prototype.setWidth=function(width){this.setProperty("Width",width);};
MQRectanglePrimitive.prototype.getWidth=function(){return this.getProperty("Width");}
MQEllipsePrimitive.prototype=new MQRectanglePrimitive();
MQEllipsePrimitive.prototype.constructor=MQEllipsePrimitive;
function MQEllipsePrimitive(){
	MQRectanglePrimitive.call(this);
	this.setM_Xpath("EllipsePrimitive");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getELLIPSEPRIMITIVE()));
}
MQEllipsePrimitive.prototype.getClassName=function(){return"MQEllipsePrimitive";};
MQEllipsePrimitive.prototype.getObjectVersion=function(){return 0;};
MQSymbolPrimitive.prototype=new MQPrimitive();
MQSymbolPrimitive.prototype.constructor=MQSymbolPrimitive;
function MQSymbolPrimitive(){
	MQPrimitive.call(this);
	this.setM_Xpath("SymbolPrimitive");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSYMBOLPRIMITIVE()));
	var m_pt=new MQPoint("CenterPoint");
	this.getCenterPoint=function(){return m_pt;};
	this.setCenterPoint=function(point){m_pt.setXY(point.getX(),point.getY());};
	var m_ll=new MQLatLng("CenterLatLng");
	this.getCenterLatLng=function(){return m_ll;};
	this.setCenterLatLng=function(latLng){m_ll.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
	var m_SymbolType=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);
	this.getSymbolType=function(){return m_SymbolType;};
	this.setSymbolType=function(obj){
		if(obj){
			if(obj.getClassName()==="MQSymbolType"){
				m_SymbolType=obj;
			}
		}
	};
}
MQSymbolPrimitive.prototype.getClassName=function(){return"MQSymbolPrimitive";};
MQSymbolPrimitive.prototype.getObjectVersion=function(){return 0;};
MQSymbolPrimitive.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var latlng=this.getCenterLatLng();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null)
		latlng.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));
	var point=this.getCenterPoint();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null)
		point.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));
	this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));
	this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));
	this.setSymbolType(new MQSymbolType(Math.floor(this.getProperty("SymbolType"))));
};
MQSymbolPrimitive.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenterLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterLatLng"));
	newNode=mqCreateXMLDoc(this.getCenterPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());
	this.setProperty("CoordinateType",this.getCoordinateType().intValue());
	this.setProperty("SymbolType",this.getSymbolType().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQSymbolPrimitive.prototype.setSymbolName=function(symbolName){this.setProperty("SymbolName",symbolName);};
MQSymbolPrimitive.prototype.getSymbolName=function(){return this.getProperty("SymbolName");}
MQTextPrimitive.prototype=new MQPrimitive();MQTextPrimitive.prototype.constructor=MQTextPrimitive;
function MQTextPrimitive(){
	MQPrimitive.call(this);
	this.setM_Xpath("TextPrimitive");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getTEXTPRIMITIVE()));
	var m_pt=new MQPoint("UpperLeftPoint");
	this.getUpperLeftPoint=function(){return m_pt;};
	this.setUpperLeftPoint=function(point){m_pt.setXY(point.getX(),point.getY());};
	var m_ll=new MQLatLng("UpperLeftLatLng");
	this.getUpperLeftLatLng=function(){return m_ll;};
	this.setUpperLeftLatLng=function(latLng){m_ll.setLatLng(latLng.getLatitude(),latLng.getLongitude());};
	var m_color=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);
	this.getColor=function(){return m_color;};
	this.setColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_color=obj;
			}
		}
	};
	var m_nStyle=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_BOXED);
	this.getStyle=function(){return m_nStyle;};
	this.setStyle=function(obj){
		if(obj){
			if(obj.getClassName()==="MQFontStyle"){
				m_nStyle=obj;
			}
		}
	};
	var m_bgdColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_WHITE);
	this.getBkgdColor=function(){return m_bgdColor;};
	this.setBkgdColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_bgdColor=obj;
			}
		}
	};
	var m_lBoxOutlineColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);
	this.getBoxOutlineColor=function(){return m_lBoxOutlineColor;};
	this.setBoxOutlineColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_lBoxOutlineColor=obj;
			}
		}
	};
	var m_lOutlineColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);
	this.getOutlineColor=function(){return m_lOutlineColor;};
	this.setOutlineColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_lOutlineColor=obj;
			}
		}
	};
}
MQTextPrimitive.prototype.getClassName=function(){return"MQTextPrimitive";};
MQTextPrimitive.prototype.getObjectVersion=function(){return 0;};
MQTextPrimitive.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var latlng=this.getUpperLeftLatLng();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null)
		latlng.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));
	var point=this.getUpperLeftPoint();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null)
		point.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));
	this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));
	this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));
	this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));
	this.setStyle(new MQFontStyle(Math.floor(this.getProperty("Style"))));
	this.setBkgdColor(new MQColorStyle(Math.floor(this.getProperty("BkgdColor"))));
	this.setBoxOutlineColor(new MQColorStyle(Math.floor(this.getProperty("BoxOutlineColor"))));
	this.setOutlineColor(new MQColorStyle(Math.floor(this.getProperty("OutlineColor"))));
};
MQTextPrimitive.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getUpperLeftLatLng().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"UpperLeftLatLng"));
	newNode=mqCreateXMLDoc(this.getUpperLeftPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"UpperLeftPoint"));
	this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());
	this.setProperty("CoordinateType",this.getCoordinateType().intValue());
	this.setProperty("Color",this.getColor().intValue());
	this.setProperty("Style",this.getStyle().intValue());
	this.setProperty("BkgdColor",this.getBkgdColor().intValue());
	this.setProperty("BoxOutlineColor",this.getBoxOutlineColor().intValue());
	this.setProperty("OutlineColor",this.getOutlineColor().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQTextPrimitive.prototype.setText=function(str){this.setProperty("Text",str);};
MQTextPrimitive.prototype.getText=function(){return this.getProperty("Text");}
MQTextPrimitive.prototype.setFontName=function(str){this.setProperty("FontName",str);};
MQTextPrimitive.prototype.getFontName=function(){return this.getProperty("FontName");}
MQTextPrimitive.prototype.setWidth=function(val){this.setProperty("Width",val);};
MQTextPrimitive.prototype.getWidth=function(){return this.getProperty("Width");}
MQTextPrimitive.prototype.setFontSize=function(val){this.setProperty("FontSize",val);};
MQTextPrimitive.prototype.getFontSize=function(){return this.getProperty("FontSize");}
MQTextPrimitive.prototype.setMargin=function(val){this.setProperty("Margin",val);};
MQTextPrimitive.prototype.getMargin=function(){return this.getProperty("Margin");}
MQTextPrimitive.prototype.setTextAlignment=function(val){this.setProperty("TextAlignment",val);};
MQTextPrimitive.prototype.getTextAlignment=function(){return this.getProperty("TextAlignment");}
MQFeatureSpecifier.prototype=new MQObject();
MQFeatureSpecifier.prototype.constructor=MQFeatureSpecifier;
function MQFeatureSpecifier(){
	MQObject.call(this);
	this.setM_Xpath("FeatureSpecifier");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getFEATURESPECIFIER()));
	var m_Type=new MQFeatureSpeciferAttributeType(MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID);
	this.getAttributeType=function(){return m_Type;};
	this.setAttributeType=function(obj){
		if(obj){
			if(obj.getClassName()==="MQFeatureSpeciferAttributeType"){
				m_Type=obj;
			}
		}
	};
};
MQFeatureSpecifier.prototype.getClassName=function(){return"MQFeatureSpecifier";};
MQFeatureSpecifier.prototype.getObjectVersion=function(){return 0;};
MQFeatureSpecifier.prototype.setAttributeValue=function(val){this.setProperty("AttributeValue",val);};
MQFeatureSpecifier.prototype.getAttributeValue=function(){return this.getProperty("AttributeValue");};
MQBaseDTStyle.prototype=new MQObject();
MQBaseDTStyle.prototype.constructor=MQBaseDTStyle;
function MQBaseDTStyle(){MQObject.call(this);};
MQBaseDTStyle.prototype.getClassName=function(){return"MQBaseDTStyle";};
MQBaseDTStyle.prototype.getObjectVersion=function(){return 0;};
MQBaseDTStyle.prototype.setDT=function(val){this.setProperty("DT",val);};
MQBaseDTStyle.prototype.getDT=function(){return this.getProperty("DT");}
MQBaseDTStyle.prototype.setHighScale=function(val){this.setProperty("HighScale",val);};
MQBaseDTStyle.prototype.getHighScale=function(){return this.getProperty("HighScale");}
MQBaseDTStyle.prototype.setLowScale=function(val){this.setProperty("LowScale",val);};
MQBaseDTStyle.prototype.getLowScale=function(){return this.getProperty("LowScale");};
MQBaseDTStyle.prototype.equals=function(type){
	if(type){
		try{
			var className=type.getClassName();
		}
		catch(error){
			alert("Invalid type for this function!");
			throw"Invalid type for this function!";
		}
		if(className===this.getClassName()){
				return(this.getDT()===type.getDT()&&this.getHighScale()===type.getHighScale()&&this.getLowScale()===type.getLowScale());
		}else{
			alert("Invalid type for this function!");
			throw"Invalid type for this function!";
		}
	}else{
		alert("An MQBaseDTStyle parameter must be provided for this function!");
		throw"An MQBaseDTStyle parameter must be provided for this function!";
	}
};
MQDTStyle.prototype=new MQBaseDTStyle();
MQDTStyle.prototype.constructor=MQDTStyle;
function MQDTStyle(){
	MQBaseDTStyle.call(this);
	this.setM_Xpath("DTStyle");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTSTYLE()));
	var m_FontColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);
	this.getFontColor=function(){return m_FontColor;};
	this.setFontColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_FontColor=obj;
			}
		}
	};
	var m_FontOutlineColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);
	this.getFontOutlineColor=function(){return m_FontOutlineColor;};
	this.setFontOutlineColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_FontOutlineColor=obj;
			}
		}
	};
	var m_FontBoxBkgdColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);
	this.getFontBoxBkgdColor=function(){return m_FontBoxBkgdColor;};
	this.setFontBoxBkgdColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_FontBoxBkgdColor=obj;
			}
		}
	};
	var m_FontBoxOutlineColor=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);
	this.getFontBoxOutlineColor=function(){return m_FontBoxOutlineColor;};
	this.setFontBoxOutlineColor=function(obj){
		if(obj){
			if(obj.getClassName()==="MQColorStyle"){
				m_FontBoxOutlineColor=obj;
			}
		}
	};
	var m_FontStyle=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_INVALID);
	this.getFontStyle=function(){return m_FontStyle;};
	this.setFontStyle=function(obj){
		if(obj){
			if(obj.getClassName()==="MQFontStyle"){
				m_FontStyle=obj;
			}
		}
	};
	var m_SymbolType=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);
	this.getSymbolType=function(){return m_SymbolType;};
	this.setSymbolType=function(obj){
		if(obj){
			if(obj.getClassName()==="MQSymbolType"){
				m_SymbolType=obj;
			}
		}
	};
};
MQDTStyle.prototype.getClassName=function(){return"MQDTStyle";};
MQDTStyle.prototype.getObjectVersion=function(){return 0;};
MQDTStyle.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	this.setFontColor(new MQColorStyle(Math.floor(this.getProperty("FontColor"))));
	this.setFontOutlineColor(new MQColorStyle(Math.floor(this.getProperty("FontOutlineColor"))));
	this.setFontBoxBkgdColor(new MQColorStyle(Math.floor(this.getProperty("FontBoxBkgdColor"))));
	this.setFontBoxOutlineColor(new MQColorStyle(Math.floor(this.getProperty("FontBoxOutlineColor"))));
	this.setFontStyle(new MQFontStyle(Math.floor(this.getProperty("FeatureSpeciferAttributeType"))));
	this.setSymbolType(new MQSymbolType(Math.floor(this.getProperty("SymbolType"))));
};
MQDTStyle.prototype.saveXml=function(){
	this.setProperty("FontColor",
	this.getFontColor().intValue());
	this.setProperty("FontOutlineColor",this.getFontOutlineColor().intValue());
	this.setProperty("FontBoxBkgdColor",this.getFontBoxBkgdColor().intValue());
	this.setProperty("FontBoxOutlineColor",this.getFontBoxOutlineColor().intValue());
	this.setProperty("FontStyle",this.getFontStyle().intValue());
	this.setProperty("SymbolType",this.getSymbolType().intValue());
	return mqXmlToStr(this.getM_XmlDoc());
};
MQDTStyle.prototype.setSymbolName=function(val){this.setProperty("SymbolName",val);};
MQDTStyle.prototype.getSymbolName=function(){return this.getProperty("SymbolName");};
MQDTStyle.prototype.setFontName=function(val){this.setProperty("FontName",val);};
MQDTStyle.prototype.getFontName=function(){return this.getProperty("FontName");};
MQDTStyle.prototype.setVisible=function(bFlag){this.setProperty("Visible",(bFlag===true)?1:0);};
MQDTStyle.prototype.getVisible=function(){return(this.getProperty("Visible")==1)?true:false;};
MQDTStyle.prototype.setLabelVisible=function(bFlag){this.setProperty("LabelVisible",(bFlag===true)?1:0);};
MQDTStyle.prototype.getLabelVisible=function(){return(this.getProperty("LabelVisible")==1)?true:false;};
MQDTStyle.prototype.setFontSize=function(val){this.setProperty("FontSize",val);};
MQDTStyle.prototype.getFontSize=function(){return this.getProperty("FontSize");}
MQDTStyle.prototype.setFontBoxMargin=function(val){this.setProperty("FontBoxMargin",val);};
MQDTStyle.prototype.getFontBoxMargin=function(){return this.getProperty("FontBoxMargin");}
MQDTStyleEx.prototype=new MQBaseDTStyle();
MQDTStyleEx.prototype.constructor=MQDTStyleEx;
function MQDTStyleEx(){
	MQBaseDTStyle.call(this);
	this.setM_Xpath("DTStyleEx");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTSTYLEEX()));
};
MQDTStyleEx.prototype.getClassName=function(){return"MQDTStyleEx";};
MQDTStyleEx.prototype.getObjectVersion=function(){return 0;};
MQDTStyleEx.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQDTStyleEx.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQDTStyleEx.prototype.setStyleString=function(val){this.setProperty("StyleString",val);};
MQDTStyleEx.prototype.getStyleString=function(){return this.getProperty("StyleString");};
MQDTFeatureStyleEx.prototype=new MQDTStyleEx();
MQDTFeatureStyleEx.prototype.constructor=MQDTFeatureStyleEx;
function MQDTFeatureStyleEx(){
	MQBaseDTStyle.call(this);
	this.setM_Xpath("DTStyleEx");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTFEATURESTYLEEX()));
	var m_Col=new MQFeatureSpecifierCollection("FeatureSpecifier");
	m_Col.setM_Xpath("FeatureSpecifierCollection");
	this.getFeatureSpecifiers=function(){return m_Col;};
	this.setFeatureSpecifiers=function(col){
		if(mqIsClass(m_Col.getClassName(),col,false)){
			m_Col.removeAll();
			m_Col.append(col);
		}
	};
};
MQDTFeatureStyleEx.prototype.getClassName=function(){return"MQDTFeatureStyleEx";};
MQDTFeatureStyleEx.prototype.getObjectVersion=function(){return 0;};
MQDTFeatureStyleEx.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQDTFeatureStyleEx.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQMapCommand.prototype=new MQObject();
MQMapCommand.prototype.constructor=MQMapCommand;
function MQMapCommand(){
	MQObject.call(this);
	this.setM_Xpath("DTStyleEx");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTFEATURESTYLEEX()));
	var m_Col=new MQFeatureSpecifierCollection("FeatureSpecifier");
	m_Col.setM_Xpath("FeatureSpecifierCollection");
	this.getFeatureSpecifiers=function(){return m_Col;};
	this.setFeatureSpecifiers=function(col){
		if(col.getClassName()==="MQFeatureSpecifierCollection")
			m_Col=col;
		else{
			alert("failure in setFeatureSpecifiers");
			throw"failure in setFeatureSpecifiers";
		}
	};
}
MQMapCommand.prototype.getClassName=function(){return"MQMapCommand";};
MQMapCommand.prototype.getObjectVersion=function(){return 0;};
MQBestFit.prototype=new MQMapCommand();
MQBestFit.prototype.constructor=MQBestFit;
function MQBestFit(){
	MQMapCommand.call(this);
	this.setM_Xpath("BestFit");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getBESTFIT()));
	var m_DisplayTypes=new MQDTCollection();
	m_DisplayTypes.setM_Xpath("DisplayTypes");
	this.getDisplayTypes=function(){return m_DisplayTypes;};
	this.setDisplayTypes=function(col){m_DisplayTypes.removeAll();
	m_DisplayTypes.append(col);};
}
MQBestFit.prototype.getClassName=function(){return"MQBestFit";};
MQBestFit.prototype.getObjectVersion=function(){return 2;};
MQBestFit.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getDisplayTypes();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")!==null)
		obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")));
};
MQBestFit.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getDisplayTypes().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"DisplayTypes"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQBestFit.prototype.setIncludePrimitives=function(bFlag){this.setProperty("IncludePrimitives",(bFlag===true)?1:0);};
MQBestFit.prototype.getIncludePrimitives=function(){return(this.getProperty("IncludePrimitives")==1)?true:false;};
MQBestFit.prototype.setKeepCenter=function(bFlag){this.setProperty("KeepCenter",(bFlag===true)?1:0);};
MQBestFit.prototype.getKeepCenter=function(){return(this.getProperty("KeepCenter")==1)?true:false;};
MQBestFit.prototype.setSnapToZoomLevel=function(bFlag){this.setProperty("SnapToZoomLevel",(bFlag===true)?1:0);};
MQBestFit.prototype.getSnapToZoomLevel=function(){return(this.getProperty("SnapToZoomLevel")==1)?true:false;};
MQBestFit.prototype.setScaleAdjustmentFactor=function(val){this.setProperty("ScaleAdjFactor",val);};
MQBestFit.prototype.getScaleAdjustmentFactor=function(){return this.getProperty("ScaleAdjFactor");}
MQBestFitLL.prototype=new MQMapCommand();MQBestFitLL.prototype.constructor=MQBestFitLL;
function MQBestFitLL(){
	MQMapCommand.call(this);
	this.setM_Xpath("BestFitLL");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getBESTFITLL()));
	var m_LatLng=new MQLatLngCollection();
	m_LatLng.setM_Xpath("LatLngs");
	this.getLatLngs=function(){return m_LatLng;};
	this.setLatLngs=function(col){
		m_LatLng.removeAll();
		m_LatLng.append(col);
	};
}
MQBestFitLL.prototype.getClassName=function(){return"MQBestFitLL";};
MQBestFitLL.prototype.getObjectVersion=function(){return 0;};
MQBestFitLL.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getLatLngs();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null)
		obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")));
};
MQBestFitLL.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getLatLngs().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LatLngs"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQBestFitLL.prototype.setKeepCenter=function(bFlag){this.setProperty("KeepCenter",(bFlag===true)?1:0);};
MQBestFitLL.prototype.getKeepCenter=function(){return(this.getProperty("KeepCenter")==1)?true:false;};
MQBestFitLL.prototype.setSnapToZoomLevel=function(bFlag){this.setProperty("SnapToZoomLevel",(bFlag===true)?1:0);};
MQBestFitLL.prototype.getSnapToZoomLevel=function(){return(this.getProperty("SnapToZoomLevel")==1)?true:false;};
MQBestFitLL.prototype.setScaleAdjustmentFactor=function(val){this.setProperty("ScaleAdjFactor",val);};
MQBestFitLL.prototype.getScaleAdjustmentFactor=function(){return this.getProperty("ScaleAdjFactor");}
MQCenter.prototype=new MQMapCommand();
MQCenter.prototype.constructor=MQCenter;
function MQCenter(){
	MQMapCommand.call(this);
	this.setM_Xpath("Center");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCENTER()));
	var m_Center=new MQPoint("CenterPoint");
	this.getCenter=function(){return m_Center;};
	this.setCenter=function(pt){
		if(mqIsClass(m_Center.getClassName(),pt,false)){
			m_Center=pt.internalCopy(m_Center);
		}
	};
}
MQCenter.prototype.getClassName=function(){return"MQCenter";};
MQCenter.prototype.getObjectVersion=function(){return 0;};
MQCenter.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getCenter();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null)
		obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));
};
MQCenter.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenter().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQCenterLatLng.prototype=new MQMapCommand();
MQCenterLatLng.prototype.constructor=MQCenterLatLng;
function MQCenterLatLng(){
	MQMapCommand.call(this);
	this.setM_Xpath("CenterLatLng");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCENTERLATLNG()));
	var m_Center=new MQLatLng("CenterLatLng");
	this.getCenter=function(){return m_Center;};
	this.setCenter=function(ll){
		if(mqIsClass(m_Center.getClassName(),ll,false)){
			m_Center=ll.internalCopy(m_Center);
		}
	};
}
MQCenterLatLng.prototype.getClassName=function(){return"MQCenterLatLng";};
MQCenterLatLng.prototype.getObjectVersion=function(){return 0;};
MQCenterLatLng.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getCenter();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null)
	obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")));
};
MQCenterLatLng.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenter().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterLatLng"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQPan.prototype=new MQMapCommand();MQPan.prototype.constructor=MQPan;
function MQPan(){
	MQMapCommand.call(this);
	this.setM_Xpath("Pan");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPAN()));
	var m_Point=new MQPoint("DeltaPoint");
	this.getPoint=function(){return m_Point;};
	this.setDeltaXY=function(dblX,dblY){m_Point.setXY(dblX,dblY);};
	this.setDeltaY=function(dblY){m_Point.setY(dblY);};
	this.setDeltaX=function(dblX){m_Point.setX(dblX);};
}
MQPan.prototype.getClassName=function(){return"MQPan";};
MQPan.prototype.getObjectVersion=function(){return 0;};
MQPan.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getPoint();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")!==null)
		obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")));
};
MQPan.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getPoint().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"DeltaPoint"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQZoomIn.prototype=new MQMapCommand();
MQZoomIn.prototype.constructor=MQZoomIn;
function MQZoomIn(){
	MQMapCommand.call(this);
	this.setM_Xpath("ZoomIn");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMIN()));
	var m_Center=new MQPoint("CenterPoint");
	this.getCenter=function(){return m_Center;};
	this.setCenter=function(pt){m_Center=pt;};
}
MQZoomIn.prototype.getClassName=function(){return"MQZoomIn";};
MQZoomIn.prototype.getObjectVersion=function(){return 0;};
MQZoomIn.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getCenter();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null)
		obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));
};
MQZoomIn.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenter().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQZoomOut.prototype=new MQMapCommand();
MQZoomOut.prototype.constructor=MQZoomOut;function MQZoomOut(){
	MQMapCommand.call(this);
	this.setM_Xpath("ZoomOut");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMOUT()));
	var m_Center=new MQPoint("CenterPoint");
	this.getCenter=function(){return m_Center;};
	this.setCenter=function(pt){m_Center=pt;};
}
MQZoomOut.prototype.getClassName=function(){return"MQZoomOut";};
MQZoomOut.prototype.getObjectVersion=function(){return 0;};
MQZoomOut.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getCenter();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null)
		obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));
};
MQZoomOut.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenter().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQZoomTo.prototype=new MQMapCommand();
MQZoomTo.prototype.constructor=MQZoomTo;
function MQZoomTo(){
	MQMapCommand.call(this);
	this.setM_Xpath("ZoomTo");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMTO()));
	var m_Center=new MQPoint("CenterPoint");
	this.getCenter=function(){return m_Center;};
	this.setCenter=function(pt){m_Center=pt;};
}
MQZoomTo.prototype.getClassName=function(){return"MQZoomTo";};
MQZoomTo.prototype.getObjectVersion=function(){return 0;};
MQZoomTo.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var obj=this.getCenter();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null)
		obj.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")));
};
MQZoomTo.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getCenter().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"CenterPoint"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQZoomTo.prototype.getZoomLevel=function(){return this.getProperty("ZoomLevel");};
MQZoomTo.prototype.setZoomLevel=function(val){this.setProperty("ZoomLevel",val);};
MQZoomToRect.prototype=new MQMapCommand();
MQZoomToRect.prototype.constructor=MQZoomToRect;
function MQZoomToRect(){
	MQMapCommand.call(this);
	this.setM_Xpath("ZoomToRect");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMTORECT()));
	var m_UpperLeft=new MQPoint("UpperLeftPoint");
	var m_LowerRight=new MQPoint("LowerRightPoint");
	this.getRect=function(ulpt,lrpt){
		ulpt.loadXml(m_UpperLeft.copy().saveXml());
		lrpt.loadXml(m_LowerRight.copy().saveXml());
	};
	this.setRect=function(ulpt,lrpt){
		if(mqIsClass(m_UpperLeft.getClassName(),ulpt,false)&&mqIsClass(m_LowerRight.getClassName(),lrpt,false)){
		m_UpperLeft=ulpt.internalCopy(m_UpperLeft);
		m_LowerRight=lrpt.internalCopy(m_LowerRight);
		}
	};
}
MQZoomToRect.prototype.getClassName=function(){return"MQZoomToRect";};
MQZoomToRect.prototype.getObjectVersion=function(){return 0;};
MQZoomToRect.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var ul=new MQPoint("UpperLeftPoint"),lr=new MQPoint("LowerRightPoint");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null)
		ul.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")));
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null)
		lr.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")));
	this.setRect(ul,lr);
};
MQZoomToRect.prototype.saveXml=function(){
	var ul=new MQPoint("UpperLeftPoint"),lr=new MQPoint("LowerRightPoint");
	this.getRect(ul,lr);
	var newNode=mqCreateXMLDoc(ul.saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"UpperLeftPoint"));
	newNode=mqCreateXMLDoc(lr.saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LowerRightPoint"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQZoomToRectLatLng.prototype=new MQMapCommand();
MQZoomToRectLatLng.prototype.constructor=MQZoomToRectLatLng;
function MQZoomToRectLatLng(){
	MQMapCommand.call(this);
	this.setM_Xpath("ZoomToRectLatLng");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getZOOMTORECTLATLNG()));
	var m_UpperLeft=new MQLatLng("UpperLeftLatLng");
	var m_LowerRight=new MQLatLng("LowerRightLatLng");
	this.getRect=function(ulll,lrll){
		ulll.loadXml(m_UpperLeft.copy().saveXml());
		lrll.loadXml(m_LowerRight.copy().saveXml());
	};
	this.setRect=function(ulll,lrll){
		if(mqIsClass(m_UpperLeft.getClassName(),ulll,false)&&mqIsClass(m_LowerRight.getClassName(),lrll,false)){
		m_UpperLeft=ulll.internalCopy(m_UpperLeft);
		m_LowerRight=lrll.internalCopy(m_LowerRight);
		}
	};
}
MQZoomToRectLatLng.prototype.getClassName=function(){return"MQZoomToRectLatLng";};
MQZoomToRectLatLng.prototype.getObjectVersion=function(){return 0;};
MQZoomToRectLatLng.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var ul=new MQLatLng("UpperLeftLatLng"),lr=new MQLatLng("LowerRightLatLng");
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null)
		ul.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")));
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null)
		lr.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")));
	this.setRect(ul,lr);
};
MQZoomToRectLatLng.prototype.saveXml=function(){
	var ul=new MQLatLng("UpperLeftLatLng"),lr=new MQLatLng("LowerRightLatLng");
	this.getRect(ul,lr);
	var newNode=mqCreateXMLDoc(ul.saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"UpperLeftLatLng"));
	newNode=mqCreateXMLDoc(lr.saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"LowerRightLatLng"));
	return mqXmlToStr(this.getM_XmlDoc());
};
function MQType(){};
MQType.prototype.equals=function(type){
	if(type){
		try{
			var className=type.getClassName();
		}
		catch(error){
			alert("Invalid type for this function!");
			throw"Invalid type for this function!";
		}
		if(className===this.getClassName()){
			return(this.intValue()===type.intValue());
		}else{
			alert("Invalid type for this function!");
			throw"Invalid type for this function!";
		}
	}else{
		alert("An MQType parameter must be provided for this function!");
		throw"An MQType parameter must be provided for this function!";
	}
};
MQRouteType.prototype=new MQType();
MQRouteType.prototype.constructor=MQRouteType;
function MQRouteType(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQROUTETYPE_FASTEST:
			value=val;
			break;
		case MQCONSTANT.MQROUTETYPE_SHORTEST:
			value=val;
			break;
		case MQCONSTANT.MQROUTETYPE_PEDESTRIAN:
			value=val;
			break;
		case MQCONSTANT.MQROUTETYPE_OPTIMIZED:
			value=val;
			break;
		case MQCONSTANT.MQROUTETYPE_SELECT_DATASET_ONLY:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQRouteType!");
			throw val+" invalid value for MQRouteType!";
	};
	this.intValue=function(){return value;};
}
MQRouteType.prototype.getClassName=function(){return"MQRouteType";};
MQRouteType.prototype.getObjectVersion=function(){return 0;};
MQNarrativeType.prototype=new MQType();
MQNarrativeType.prototype.constructor=MQNarrativeType;
function MQNarrativeType(val){
	var value=-2;
	switch(val){
		case MQCONSTANT.MQNARRATIVETYPE_DEFAULT:
			value=val;
			break;
		case MQCONSTANT.MQNARRATIVETYPE_HTML:
			value=val;
			break;
		case MQCONSTANT.MQNARRATIVETYPE_NONE:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQNarrativeType!");
			throw val+" invalid value for MQNarrativeType!";
	};
	this.intValue=function(){return value;};
}
MQNarrativeType.prototype.getClassName=function(){return"MQNarrativeType";};
MQNarrativeType.prototype.getObjectVersion=function(){return 0;};
MQCoordinateType.prototype=new MQType();
MQCoordinateType.prototype.constructor=MQCoordinateType;
function MQCoordinateType(val){
	var value=-2;
	switch(val){
		case MQCONSTANT.MQCOORDINATETYPE_DISPLAY:
			value=val;
			break;
		case MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQCoordinateType!");
			throw val+" invalid value for MQCoordinateType!";
	};
	this.intValue=function(){return value;};
}
MQCoordinateType.prototype.getClassName=function(){return"MQCoordinateType";};
MQCoordinateType.prototype.getObjectVersion=function(){return 0;};
MQFeatureSpeciferAttributeType.prototype=new MQType();
MQFeatureSpeciferAttributeType.prototype.constructor=MQFeatureSpeciferAttributeType;
function MQFeatureSpeciferAttributeType(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID:
			value=val;
			break;
		case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_NAME:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQFeatureSpeciferAttributeType!");
			throw val+" invalid value for MQFeatureSpeciferAttributeType!";
	};
	this.intValue=function(){return value;};
}
MQFeatureSpeciferAttributeType.prototype.getClassName=function(){return"MQFeatureSpeciferAttributeType";};
MQFeatureSpeciferAttributeType.prototype.getObjectVersion=function(){return 0;};
MQSymbolType.prototype=new MQType();
MQSymbolType.prototype.constructor=MQSymbolType;
function MQSymbolType(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQSYMBOLTYPE_RASTER:
			value=val;
			break;
		case MQCONSTANT.MQSYMBOLTYPE_VECTOR:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQSymbolType!");
			throw val+" invalid value for MQSymbolType!";
	};
	this.intValue=function(){return value;};
}
MQSymbolType.prototype.getClassName=function(){return"MQSymbolType";};
MQSymbolType.prototype.getObjectVersion=function(){return 0;};
MQMatchType.prototype=new MQType();
MQMatchType.prototype.constructor=MQMatchType;
function MQMatchType(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQMATCHTYPE_LOC:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_INTR:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_NEARBLK:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_REPBLK:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_BLOCK:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_AA1:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_AA2:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_AA3:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_AA4:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_AA5:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_AA6:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_AA7:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_PC1:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_PC2:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_PC3:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_PC4:
			value=val;
			break;
		case MQCONSTANT.MQMATCHTYPE_POI:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQMatchType!");
			throw val+" invalid value for MQMatchType!";
	};
	this.intValue=function(){return value;};
}
MQMatchType.prototype.getClassName=function(){return"MQMatchType";};
MQMatchType.prototype.getObjectVersion=function(){return 0;};
MQQualityType.prototype=new MQType();
MQQualityType.prototype.constructor=MQQualityType;
function MQQualityType(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQQUALITYTYPE_EXACT:
			value=val;
			break;
		case MQCONSTANT.MQQUALITYTYPE_GOOD:
			value=val;
			break;
		case MQCONSTANT.MQQUALITYTYPE_APPROX:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQQualityType!");
			throw val+" invalid value for MQQualityType!";
	};
	this.intValue=function(){return value;};
}
MQQualityType.prototype.getClassName=function(){return"MQQualityType";};
MQQualityType.prototype.getObjectVersion=function(){return 0;};
MQDrawTrigger.prototype=new MQType();
MQDrawTrigger.prototype.constructor=MQDrawTrigger;
function MQDrawTrigger(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQDRAWTRIGGER_AFTER_POLYGONS:
			value=val;
			break;
		case MQCONSTANT.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT:
			value=val;
			break;
		case MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT:
			value=val;
			break;
		case MQCONSTANT.MQDRAWTRIGGER_BEFORE_POLYGONS:
			value=val;
			break;
		case MQCONSTANT.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT:
			value=val;
			break;
		case MQCONSTANT.MQDRAWTRIGGER_BEFORE_TEXT:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQDrawTrigger!");
			throw val+" invalid value for MQDrawTrigger!";
	};
	this.intValue=function(){return value;};
}
MQDrawTrigger.prototype.getClassName=function(){return"MQDrawTrigger";};
MQDrawTrigger.prototype.getObjectVersion=function(){return 0;};
MQPenStyle.prototype=new MQType();
MQPenStyle.prototype.constructor=MQPenStyle;
function MQPenStyle(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQPENSTYLE_DASH:
			value=val;
			break;
		case MQCONSTANT.MQPENSTYLE_DASH_DOT:
			value=val;
			break;
		case MQCONSTANT.MQPENSTYLE_DASH_DOT_DOT:
			value=val;
			break;
		case MQCONSTANT.MQPENSTYLE_SOLID:
			value=val;
			break;
		case MQCONSTANT.MQPENSTYLE_DOT:
			value=val;
			break;
		case MQCONSTANT.MQPENSTYLE_NONE:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQPenStyle!");
			throw val+" invalid value for MQPenStyle!";
	};
	this.intValue=function(){return value;};
}
MQPenStyle.prototype.getClassName=function(){return"MQPenStyle";};
MQPenStyle.prototype.getObjectVersion=function(){return 0;};
MQFontStyle.prototype=new MQType();
MQFontStyle.prototype.constructor=MQFontStyle;
function MQFontStyle(val){
	var value=-2;
	switch(val){
		case MQCONSTANT.MQFONTSTYLE_BOLD:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_BOXED:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_DOT:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_ITALICS:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_MAX_VALUE:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_NORMAL:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_OUTLINED:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_SEMIBOLD:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_STRIKEOUT:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_THIN:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_UNDERLINE:
			value=val;
			break;
		case MQCONSTANT.MQFONTSTYLE_INVALID:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQFontStyle!");
			throw val+" invalid value for MQFontStyle!";
	};
	this.intValue=function(){return value;};
}
MQFontStyle.prototype.getClassName=function(){return"MQFontStyle";};
MQFontStyle.prototype.getObjectVersion=function(){return 0;};
MQColorStyle.prototype=new MQType();
MQColorStyle.prototype.constructor=MQColorStyle;
function MQColorStyle(val){
	var value=MQCONSTANT.MQCOLORSTYLE_INVALID;
	if(val!==null){value=val;}
	this.intValue=function(){return value;};
}
MQColorStyle.prototype.getClassName=function(){return"MQColorStyle";};
MQColorStyle.prototype.getObjectVersion=function(){return 0;};
MQColorStyle.prototype.getRGB=function(){
	var rgb=-16777216;
	var a=parseInt(parseInt(this.intValue()/65536)%256);
	var b=parseInt(parseInt(parseInt(this.intValue()/256)%256)*256);
	var c=parseInt(parseInt(this.intValue()%256)*65536);
	return rgb+a+b+c;
}
MQFillStyle.prototype=new MQType();
MQFillStyle.prototype.constructor=MQFillStyle;
function MQFillStyle(val){
	var value=-1;
	switch(val){
		case MQCONSTANT.MQFILLSTYLE_SOLID:
			value=val;
			break;
		case MQCONSTANT.MQFILLSTYLE_BDIAGONAL:
			value=val;
			break;
		case MQCONSTANT.MQFILLSTYLE_CROSS:
			value=val;
			break;
		case MQCONSTANT.MQFILLSTYLE_DIAG_CROSS:
			value=val;
			break;
		case MQCONSTANT.MQFILLSTYLE_FDIAGONAL:
			value=val;
			break;
		case MQCONSTANT.MQFILLSTYLE_HORIZONTAL:
			value=val;
			break;
		case MQCONSTANT.MQFILLSTYLE_VERTICAL:
			value=val;
			break;
		case MQCONSTANT.MQFILLSTYLE_NONE:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQFillStyle!");
			throw val+" invalid value for MQFillStyle!";
	};
	this.intValue=function(){return value;};
}
MQFillStyle.prototype.getClassName=function(){return"MQFillStyle";};
MQFillStyle.prototype.getObjectVersion=function(){return 0;};
MQDistanceUnits.prototype=new MQType();
MQDistanceUnits.prototype.constructor=MQDistanceUnits;
function MQDistanceUnits(val){
	var value=0;val=val||0;
	switch(val){
		case MQCONSTANT.MQDISTANCEUNITS_MILES:
			value=val;
			break;
		case MQCONSTANT.MQDISTANCEUNITS_KILOMETERS:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQDistanceUnits!");
			throw val+" invalid value for MQDistanceUnist!";
	};
	this.getValue=function(){return value;};
}
MQDistanceUnits.prototype.getClassName=function(){return"MQDistanceUnits";};
MQDistanceUnits.prototype.getObjectVersion=function(){return 0;};
MQRouteResultsCode.prototype=new MQType();
MQRouteResultsCode.prototype.constructor=MQRouteResultsCode;
function MQRouteResultsCode(val){
	var value=-2;
	switch(val){
		case MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED:
			value=val;
			break;
		case MQCONSTANT.MQROUTERESULTSCODE_SUCCESS:
			value=val;
			break;
		case MQCONSTANT.MQROUTERESULTSCODE_INVALID_LOCATION:
			value=val;
			break;
		case MQCONSTANT.MQROUTERESULTSCODE_ROUTE_FAILURE:
			value=val;
			break;
		case MQCONSTANT.MQROUTERESULTSCODE_NO_DATASET_FOUND:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQRouteResultsCode!");
			throw val+" invalid value for MQRouteResultsCode!";
	};
	this.intValue=function(){return value;};
}
MQRouteResultsCode.prototype.getClassName=function(){return"MQRouteResultsCode";};
MQRouteResultsCode.prototype.getObjectVersion=function(){return 0;};
MQRouteMatrixResultsCode.prototype=new MQType();
MQRouteMatrixResultsCode.prototype.constructor=MQRouteMatrixResultsCode;
function MQRouteMatrixResultsCode(val){
	var value=-2;
	switch(val){
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED:
			value=val;
			break;
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_SUCCESS:
			value=val;
			break;
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION:
			value=val;
			break;
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE:
			value=val;
			break;
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND:
			value=val;
			break;
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION:
			value=val;
			break;
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS:
			value=val;
			break;
		case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS:
			value=val;
			break;
		default:
			alert(val+" is an invalid value for MQRouteMatrixResultsCode!");
			throw val+" invalid value for MQRouteMatrixResultsCode!";
	};
	this.intValue=function(){return value;};
}
MQRouteMatrixResultsCode.prototype.getClassName=function(){return"MQRouteMatrixResultsCode";};
MQRouteMatrixResultsCode.prototype.getObjectVersion=function(){return 0;};
MQLocationCollection.prototype=new MQObjectCollection(32678);
MQLocationCollection.prototype.constructor=MQLocationCollection;
function MQLocationCollection(){
	MQObjectCollection.call(this,32678);
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLOCATIONCOLLECTION()));
	this.setM_Xpath("LocationCollection");
}
MQLocationCollection.prototype.getClassName=function(){return"MQLocationCollection";};
MQLocationCollection.prototype.getObjectVersion=function(){return 0;};
MQLocationCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var loc=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].nodeName==="Address"){
				loc=new MQAddress();
				loc.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="GeoAddress"){
				loc=new MQGeoAddress();
				loc.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="SingleLineAddress"){
				loc=new MQSingleLineAddress();
				loc.loadXml(mqXmlToStr(nodes[count]));
			}
			this.add(loc);
		}
	}
};
MQLocationCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){
		strRetArray[strRetArray.length]=this.get(i).saveXml();
	}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQLocationCollection.prototype.isValidObject=function(obj){
	if(obj){
			if(obj.getClassName()==="MQGeoAddress"||obj.getClassName()==="MQAddress"||obj.getClassName()==="MQSingleLineAddress"){
			return true;
		}
	}
	return false;
};
MQLocationCollectionCollection.prototype=new MQObjectCollection(32678);
MQLocationCollectionCollection.prototype.constructor=MQLocationCollectionCollection;
function MQLocationCollectionCollection(){
	MQObjectCollection.call(this,32678);
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getLOCATIONCOLLECTIONCOLLECTION()));
	this.setM_Xpath("LocationCollectionCollection");
}
MQLocationCollectionCollection.prototype.getClassName=function(){return"MQLocationCollectionCollection";};
MQLocationCollectionCollection.prototype.getObjectVersion=function(){return 0;};
MQLocationCollectionCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var loc=null;
		for(var count=minCount;count<maxCount;count++){
			loc=new MQLocationCollection();
			loc.loadXml(mqXmlToStr(nodes[count]));
			this.add(loc);
		}
	}
};
MQLocationCollectionCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){
		strRetArray[strRetArray.length]=this.get(i).saveXml();
	}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQLocationCollectionCollection.prototype.isValidObject=function(obj){
	if(obj){
		if(obj.getClassName()==="MQLocationCollection"){
			return true;
		}
	}
	return false;
};
MQSignCollection.prototype=new MQObjectCollection(32678);
MQSignCollection.prototype.constructor=MQSignCollection;
function MQSignCollection(itemXpath){
	MQObjectCollection.call(this,32678);
	if(itemXpath){this.setM_itemXpath(itemXpath);}
	this.setValidClassName("MQSign");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSIGNCOLLECTION()));
	this.setM_Xpath("SignCollection");
}
MQSignCollection.prototype.getClassName=function(){return"MQSignCollection";};
MQSignCollection.prototype.getObjectVersion=function(){return 0;};
MQSignCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var sign=null;
		if(this.getValidClassName()==="MQSign"){
			for(var count=minCount;count<maxCount;count++){
				sign=new MQSign();
				sign.setM_Xpath(this.getM_itemXpath());
				sign.loadXml(mqXmlToStr(nodes[count]));
				this.add(sign);
			}
		}
	}
};
MQSignCollection.prototype.loadXmlFromNode=function(node){
	var xmlDoc=mqCreateXMLDocImportNode(node);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var sign=null;
		if(this.getValidClassName()==="MQSign"){
			for(var count=minCount;count<maxCount;count++){
				sign=new MQSign();
				sign.setM_Xpath(this.getM_itemXpath());
				sign.loadXmlFromNode(nodes[count]);
				this.add(sign);
			}
		}
	}
};
MQSignCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){
		strRetArray[strRetArray.length]=this.get(i).saveXml();
	}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQPointCollection.prototype=new MQObjectCollection(32678);
MQPointCollection.prototype.constructor=MQPointCollection;
function MQPointCollection(itemXpath){
	MQObjectCollection.call(this,32678);
	if(itemXpath){this.setM_itemXpath(itemXpath);}
	this.setValidClassName("MQPoint");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPOINTCOLLECTION()));
	this.setM_Xpath("PointCollection");
}
MQPointCollection.prototype.getClassName=function(){return"MQPointCollection";};
MQPointCollection.prototype.getObjectVersion=function(){return 0;};
MQPointCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var pnt=null;
		if(this.getValidClassName()==="MQPoint"){
			for(var count=minCount;count<maxCount;count++){
				var x;
				var y;
				if(nodes[count].firstChild!==null){x=nodes[count].firstChild.nodeValue;}
				count++;
				if(nodes[count].firstChild!==null){y=nodes[count].firstChild.nodeValue;}
				pnt=new MQPoint(x,y);
				this.add(pnt);
			}
		}
	}
};
MQPointCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQDBLayerQueryCollection.prototype=new MQObjectCollection(32678);
MQDBLayerQueryCollection.prototype.constructor=MQDBLayerQueryCollection;
function MQDBLayerQueryCollection(itemXpath){
	MQObjectCollection.call(this,32678);
	if(itemXpath){this.setM_itemXpath(itemXpath);}
	this.setValidClassName("MQDBLayerQuery");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSIGNCOLLECTION()));
	this.setM_Xpath("DBLayerQueryCollection");
}
MQDBLayerQueryCollection.prototype.getClassName=function(){return"MQDBLayerQueryCollection";};
MQDBLayerQueryCollection.prototype.getObjectVersion=function(){return 0;};
MQDBLayerQueryCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var sign=null;
		if(this.getValidClassName()==="MQDBLayerQuery"){
			for(var count=minCount;count<maxCount;count++){
				sign=new MQDBLayerQuery();
				sign.setM_Xpath(this.getM_itemXpath());
				sign.loadXml(mqXmlToStr(nodes[count]));
				this.add(sign);
			}
		}
	}
};
MQDBLayerQueryCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQManeuverCollection.prototype=new MQObjectCollection(32678);
MQManeuverCollection.prototype.constructor=MQManeuverCollection;
function MQManeuverCollection(itemXpath){
	MQObjectCollection.call(this,32678);
	if(itemXpath){this.setM_itemXpath(itemXpath);}
	this.setValidClassName("MQManeuver");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getMANEUVERCOLLECTION()));
	this.setM_Xpath("ManeuverCollection");
}
MQManeuverCollection.prototype.getClassName=function(){return"MQManeuverCollection";};
MQManeuverCollection.prototype.getObjectVersion=function(){return 0;};
MQManeuverCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var maneuver=null;
		if(this.getValidClassName()==="MQManeuver"){
			for(var count=minCount;count<maxCount;count++){
				maneuver=new MQManeuver();
				maneuver.setM_Xpath(this.getM_itemXpath())
				maneuver.loadXml(mqXmlToStr(nodes[count]));
				this.add(maneuver);
			}
		}
	}
};
MQManeuverCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQTrekRouteCollection.prototype=new MQObjectCollection(32678);
MQTrekRouteCollection.prototype.constructor=MQTrekRouteCollection;
function MQTrekRouteCollection(itemXpath){
	MQObjectCollection.call(this,32678);
	if(itemXpath){this.setM_itemXpath(itemXpath);}
	this.setValidClassName("MQTrekRoute");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getTREKROUTECOLLECTION()));
	this.setM_Xpath("TrekRouteCollection");
}
MQTrekRouteCollection.prototype.getClassName=function(){return"MQTrekRouteCollection";};
MQTrekRouteCollection.prototype.getObjectVersion=function(){return 0;};
MQTrekRouteCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var trek=null;
		if(this.getValidClassName()==="MQTrekRoute"){
			for(var count=minCount;count<maxCount;count++){
				trek=new MQTrekRoute();
				trek.setM_Xpath(this.getM_itemXpath());
				trek.loadXml(mqXmlToStr(nodes[count]));
				this.add(trek);
			}
		}
	}
};
MQTrekRouteCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQIntCollection.prototype=new MQObjectCollection(32678);
MQIntCollection.prototype.constructor=MQIntCollection;
function MQIntCollection(itemXpath){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("int");
	if(itemXpath){this.setM_itemXpath(itemXpath);}
	if(this.getClassName()==="MQIntCollection"){
		this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getINTCOLLECTION()));
		this.setM_Xpath("IntCollection");
	}
}
MQIntCollection.prototype.getClassName=function(){return"MQIntCollection";};
MQIntCollection.prototype.getObjectVersion=function(){return 0;};
MQIntCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var str=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].firstChild!==null){str=parseInt(nodes[count].firstChild.nodeValue);}else{str=0;}
			this.add(str);
		}
	}
};
MQIntCollection.prototype.saveXml=function(){
	var strRetArray=new Array();strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]="<"+this.getM_itemXpath()+">"+this.get(i)+"</"+this.getM_itemXpath()+">";}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQDTCollection.prototype=new MQIntCollection("Item");
MQDTCollection.prototype.constructor=MQDTCollection;
function MQDTCollection(itemXpath){
	MQIntCollection.call(this,itemXpath);
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getDTCOLLECTION()));
	this.setM_Xpath("DTCollection");
};
MQDTCollection.prototype.getClassName=function(){return"MQDTCollection";};
MQDTCollection.prototype.getObjectVersion=function(){return 1;};
MQFeatureCollection.prototype=new MQObjectCollection(32678);
MQFeatureCollection.prototype.constructor=MQFeatureCollection;
function MQFeatureCollection(){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("ALL");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getFEATURECOLLECTION()));
	this.setM_Xpath("FeatureCollection");
}
MQFeatureCollection.prototype.getClassName=function(){return"MQFeatureCollection";};
MQFeatureCollection.prototype.getObjectVersion=function(){return 0;};
MQFeatureCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var feat=null;
		var nodeName="";
		for(var count=minCount;count<maxCount;count++){
			nodeName=nodes[count].nodeName;
			if(nodeName==="LineFeature"){
				feat=new MQLineFeature();
				feat.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodeName==="PointFeature"){
				feat=new MQPointFeature();
				feat.loadXmlFromNode(nodes[count]);
			}else if(nodeName==="PolygonFeature"){
				feat=new MQPolygonFeature();
				feat.loadXml(mqXmlToStr(nodes[count]));
			}
			this.add(feat);
		}
	}
};
MQFeatureCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Version=\""+this.getObjectVersion()+"\" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";var strRet=strRetArray.join("");
	return strRet;
};
MQFeatureSpecifierCollection.prototype=new MQObjectCollection(32678);
MQFeatureSpecifierCollection.prototype.constructor=MQFeatureSpecifierCollection;
function MQFeatureSpecifierCollection(){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("MQFeatureSpecifier");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getFEATURESPECIFIERCOLLECTION()));
	this.setM_Xpath("FeatureCollection");
}
MQFeatureSpecifierCollection.prototype.getClassName=function(){return"MQFeatureSpecifierCollection";};
MQFeatureSpecifierCollection.prototype.getObjectVersion=function(){return 0;};
MQFeatureSpecifierCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var feat=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].nodeName==="FeatureSpecifier"){
				feat=new MQFeatureSpecifier();
				feat.loadXml(mqXmlToStr(nodes[count]));
			}
			this.add(feat);
		}
	}
};
MQFeatureSpecifierCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQGeocodeOptionsCollection.prototype=new MQObjectCollection(32678);
MQGeocodeOptionsCollection.prototype.constructor=MQGeocodeOptionsCollection;
function MQGeocodeOptionsCollection(){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("MQGeocodeOptions");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getGEOCODEOPTIONSCOLLECTION()));
	this.setM_Xpath("GeocodeOptionsCollection");
}
MQGeocodeOptionsCollection.prototype.getClassName=function(){return"MQGeocodeOptionsCollection";};
MQGeocodeOptionsCollection.prototype.getObjectVersion=function(){return 0;};
MQGeocodeOptionsCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var geoO=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].nodeName==="GeocodeOptions"){geoO=new MQGeocodeOptions();geoO.loadXml(mqXmlToStr(nodes[count]));}
			this.add(geoO);
		}
	}
};
MQGeocodeOptionsCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQCoverageStyle.prototype=new MQObjectCollection(32678);
MQCoverageStyle.prototype.constructor=MQCoverageStyle;
function MQCoverageStyle(){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("ALL");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getCOVERAGESTYLE()));
	this.setM_Xpath("CoverageStyle");
}
MQCoverageStyle.prototype.getClassName=function(){return"MQCoverageStyle";};
MQCoverageStyle.prototype.getObjectVersion=function(){return 0;};
MQCoverageStyle.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var dt=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].nodeName==="DTStyle"){
				dt=new MQDTStyle();
				dt.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="DTStyleEx"){
				dt=new MQDTStyleEx();
				dt.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="DTFeatureStyleEx"){
				dt=new MQDTFeatureStyleEx();
				dt.loadXml(mqXmlToStr(nodes[count]));
			}
			if(dt!==null){this.add(dt);}
			dt=null;
		}
	}
};
MQCoverageStyle.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<CoverageStyle Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="<Name>"+this.getProperty("Name")+"</Name>";
	strRetArray[strRetArray.length]="</CoverageStyle>";
	var strRet=strRetArray.join("");
	return strRet;
};
MQCoverageStyle.prototype.setName=function(strName){this.setProperty("Name",strName);};
MQCoverageStyle.prototype.getName=function(){return this.getProperty("Name");};
MQPrimitiveCollection.prototype=new MQObjectCollection(32678);
MQPrimitiveCollection.prototype.constructor=MQPrimitiveCollection;
function MQPrimitiveCollection(){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("ALL");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getPRIMITIVECOLLECTION()));
	this.setM_Xpath("PrimitiveCollection");
}
MQPrimitiveCollection.prototype.getClassName=function(){return"MQPrimitiveCollection";};
MQPrimitiveCollection.prototype.getObjectVersion=function(){return 0;};
MQPrimitiveCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var prim=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].nodeName==="EllipsePrimitive"){
				prim=new MQEllipsePrimitive();
				prim.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="LinePrimitive"){
				prim=new MQLinePrimitive();
				prim.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="PolygonPrimitive"){
				prim=new MQPolygonPrimitive();
				prim.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="RectanglePrimitive"){
				prim=new MQRectanglePrimitive();
				prim.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="TextPrimitive"){
				prim=new MQTextPrimitive();
				prim.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="SymbolPrimitive"){
				prim=new MQSymbolPrimitive();
				prim.loadXml(mqXmlToStr(nodes[count]));
			}
			this.add(prim);
		}
	}
};
MQPrimitiveCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQStringCollection.prototype=new MQObjectCollection(32678);
MQStringCollection.prototype.constructor=MQStringCollection;
function MQStringCollection(itemXpath){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("String");
	if(itemXpath){this.setM_itemXpath(itemXpath);}
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSTRINGCOLLECTION()));
	this.setM_Xpath("StringCollection");
}
MQStringCollection.prototype.getClassName=function(){return"MQStringCollection";};
MQStringCollection.prototype.getObjectVersion=function(){return 0;};
MQStringCollection.prototype.loadXml=function(strXml){
	this.removeAll();
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var str=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].firstChild!==null){
				str=nodes[count].firstChild.nodeValue;
			}else{str="";}
			this.add(str);
		}
	}
};
MQStringCollection.prototype.loadXmlFromNode=function(node){
	this.setM_XmlDoc(mqCreateXMLDocImportNode(node));
	var xmlDoc=this.getM_XmlDoc();
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var str=null;
		for(var count=minCount;count<maxCount;count++){
			if(nodes[count].firstChild!==null){str=nodes[count].firstChild.nodeValue;}else{str="";}
			this.add(str);
		}
	}
};
MQStringCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]="<"+this.getM_itemXpath()+">"+this.get(i)+"</"+this.getM_itemXpath()+">";}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQStrColCollection.prototype=new MQObjectCollection(32678);
MQStrColCollection.prototype.constructor=MQStrColCollection;
function MQStrColCollection(){
	MQObjectCollection.call(this,32678);
	this.setValidClassName("MQStringCollection");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSTRCOLCOLLECTION()));
}
MQStrColCollection.prototype.getClassName=function(){return"MQStrColCollection";};
MQStrColCollection.prototype.getObjectVersion=function(){return 0;};
MQStrColCollection.prototype.saveXml=function(){
	var strRetArray=new Array();
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRet=strRetArray.join("");
	return strRet;
};
MQAutoGeocodeCovSwitch.prototype=new MQObject();
MQAutoGeocodeCovSwitch.prototype.constructor=MQAutoGeocodeCovSwitch;
function MQAutoGeocodeCovSwitch(){
	MQObject.call(this);
	this.setM_Xpath("AutoGeocodeCovSwitch");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOGEOCODECOVSWITCH()));
}
MQAutoGeocodeCovSwitch.prototype.getClassName=function(){return"MQAutoGeocodeCovSwitch";};
MQAutoGeocodeCovSwitch.prototype.getObjectVersion=function(){return 0;};
MQAutoGeocodeCovSwitch.prototype.loadXml=function(strXml){this.setM_XmlDoc(mqCreateXMLDoc(strXml));};
MQAutoGeocodeCovSwitch.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc());};
MQAutoGeocodeCovSwitch.prototype.setName=function(strName){this.setProperty("Name",strName);};
MQAutoGeocodeCovSwitch.prototype.getName=function(){return this.getProperty("Name");};
MQAutoGeocodeCovSwitch.prototype.setMaxMatches=function(lMaxMatches){this.setProperty("MaxMatches",lMaxMatches);};
MQAutoGeocodeCovSwitch.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches");};
MQAutoRouteCovSwitch.prototype=new MQObject();
MQAutoRouteCovSwitch.prototype.constructor=MQAutoRouteCovSwitch;
function MQAutoRouteCovSwitch(strXpath){
	MQObject.call(this);
	if(this.getClassName()==="MQAutoRouteCovSwitch"){
		if(strXpath){
			this.setM_Xpath(strXpath);
				this.setM_XmlDoc(mqCreateXMLDoc("<"+strXpath+"><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count=\"0\"/></"+strXpath+">"));
		}else{
			this.setM_Xpath("AutoRouteCovSwitch");
			this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOROUTECOVSWITCH()));
		}
	}
	var m_DataVendorCodes=new MQIntCollection();
	m_DataVendorCodes.setM_Xpath("DataVendorCodes");
	this.getDataVendorCodes=function(){return m_DataVendorCodes;};
}
MQAutoRouteCovSwitch.prototype.getClassName=function(){return"MQAutoRouteCovSwitch";};
MQAutoRouteCovSwitch.prototype.getObjectVersion=function(){return 0;};
MQAutoRouteCovSwitch.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var dataVendorCodes=this.getDataVendorCodes();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null)
		dataVendorCodes.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")));
};
MQAutoRouteCovSwitch.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getDataVendorCodes().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"DataVendorCodes"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQAutoRouteCovSwitch.prototype.setName=function(strName){this.setProperty("Name",strName);};
MQAutoRouteCovSwitch.prototype.getName=function(){return this.getProperty("Name");};
MQAutoRouteCovSwitch.prototype.setDataVendorCodeUsage=function(lDataVendorCodeUsage){this.setProperty("DataVendorCodeUsage",lDataVendorCodeUsage);};
MQAutoRouteCovSwitch.prototype.getDataVendorCodeUsage=function(){return this.getProperty("DataVendorCodeUsage");};
MQAutoMapCovSwitch.prototype=new MQAutoRouteCovSwitch();
MQAutoMapCovSwitch.prototype.constructor=MQAutoMapCovSwitch;
function MQAutoMapCovSwitch(strXpath){
	MQAutoRouteCovSwitch.call(this);
	if(strXpath){
		this.setM_Xpath(strXpath);
		this.setM_XmlDoc(mqCreateXMLDoc("<"+strXpath+"><Name/><Style/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count=\"0\"/><ZoomLevels Count=\"14\"><Item>6000</Item><Item>12000</Item><Item>24000</Item><Item>48000</Item><Item>96000</Item><Item>192000</Item><Item>400000</Item><Item>800000</Item><Item>1600000</Item><Item>3000000</Item><Item>6000000</Item><Item>12000000</Item><Item>24000000</Item><Item>48000000</Item></ZoomLevels></"+strXpath+">"));
	}else{
		this.setM_Xpath("AutoMapCovSwitch");
		this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getAUTOMAPCOVSWITCH()));
	}
	var m_ZoomLevels=new MQIntCollection();
	m_ZoomLevels.setM_Xpath("ZoomLevels");
	m_ZoomLevels.add(6000);
	m_ZoomLevels.add(12000);
	m_ZoomLevels.add(24000);
	m_ZoomLevels.add(48000);
	m_ZoomLevels.add(96000);
	m_ZoomLevels.add(192000);
	m_ZoomLevels.add(400000);
	m_ZoomLevels.add(800000);
	m_ZoomLevels.add(1600000);
	m_ZoomLevels.add(3000000);
	m_ZoomLevels.add(6000000);
	m_ZoomLevels.add(12000000);
	m_ZoomLevels.add(24000000);
	m_ZoomLevels.add(48000000);
	this.getZoomLevels=function(){return m_ZoomLevels;};
}
MQAutoMapCovSwitch.prototype.getClassName=function(){return"MQAutoMapCovSwitch";};
MQAutoMapCovSwitch.prototype.getObjectVersion=function(){return 0;};
MQAutoMapCovSwitch.prototype.loadXml=function(strXml){
	this.setM_XmlDoc(mqCreateXMLDoc(strXml));
	var dataVendorCodes=this.getDataVendorCodes();
	if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null)
		dataVendorCodes.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")));
};
MQAutoMapCovSwitch.prototype.saveXml=function(){
	var newNode=mqCreateXMLDoc(this.getDataVendorCodes().saveXml());
	this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),newNode,"DataVendorCodes"));
	return mqXmlToStr(this.getM_XmlDoc());
};
MQAutoMapCovSwitch.prototype.setStyle=function(strStyle){this.setProperty("Style",strStyle);};
MQAutoMapCovSwitch.prototype.getStyle=function(){return this.getProperty("Style");};
MQSession.prototype=new MQObjectCollection(32678);
MQSession.prototype.constructor=MQSession;
function MQSession(){
	MQObjectCollection.call(this,32678);
	this.setM_Xpath("Session");
	this.setM_XmlDoc(mqCreateXMLDocFromNode(MQXML.getSESSION()));
}
MQSession.prototype.getClassName=function(){return"MQSession";};
MQSession.prototype.getObjectVersion=function(){return 0;};
MQSession.prototype.loadXml=function(strXml){
	var xmlDoc=mqCreateXMLDoc(strXml);
	this.setM_XmlDoc(xmlDoc);
	if(xmlDoc!==null){
		var root=xmlDoc.documentElement;
		var nodes=root.childNodes;
		var maxCount=nodes.length;
		maxCount=(maxCount<32678)?maxCount:32678;
		var minCount=0;
		var obj=null;
		for(var count=minCount;count<maxCount;count++){
			obj=null;
			if(nodes[count].nodeName==="MapState"){
				obj=new MQMapState();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="CoverageStyle"){
				obj=new MQCoverageStyle();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="AutoMapCovSwitch"){
				obj=new MQAutoMapCovSwitch();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="DBLayerQueryCollection"){
				obj=new MQDBLayerQueryCollection();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="FeatureCollection"){
				obj=new MQFeatureCollection();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="PrimitiveCollection"){
				obj=new MQPrimitiveCollection();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="Center"){
				obj=new MQCenter();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="CenterLL"){
				obj=new MQCenterLL();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="ZoomIn"){
				obj=new MQZoomIn();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="ZoomOut"){
				obj=new MQZoomOut();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="ZoomTo"){
				obj=new MQZoomTo();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="ZoomToRect"){
				obj=new MQZoomToRect();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="ZoomToRectLL"){
				obj=new MQZoomToRectLL();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="Pan"){
				obj=new MQPan();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="BestFit"){
				obj=new MQBestFit();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}else if(nodes[count].nodeName==="BestFitLL"){
				obj=new MQBestFitLL();
				obj.loadXml(mqXmlToStr(nodes[count]));
			}
			if(obj!==null)
				this.add(obj);
		}
	}
};
MQSession.prototype.saveXml=function(){
	var strRetArray=new Array();
	strRetArray[strRetArray.length]="<"+this.getM_Xpath()+" Count=\""+this.getSize()+"\">";
	var size=this.getSize();
	for(var i=0;i<size;i++){strRetArray[strRetArray.length]=this.get(i).saveXml();}
	strRetArray[strRetArray.length]="</"+this.getM_Xpath()+">";
	var strRet=strRetArray.join("");
	return strRet;
};
MQSession.prototype.add=function(obj){return this.addOne(obj,null);}
MQSession.prototype.isMapCommandObject=function(obj){
	if(obj){
		var cls=obj.getClassName();
		if(cls==="MQCenter"||cls==="MQCenterLatLng"||cls==="MQZoomIn"||cls==="MQZoomOut"||cls==="MQZoomTo"||cls==="MQZoomToRect"||cls==="MQZoomToRectLatLng"||cls==="MQPan"||cls==="MQBestFit"||cls==="MQBestFitLL"){
			return true;
		}else{
			return false;
		}
	}
}
MQSession.prototype.addOne=function(newElement,replacedElement){
	var collectionSize=this.getSize();
	var newTypeId=newElement.getClassName();
	var newIndex=0;
	if(this.isValidObject(newElement)){
		if(this.isMapCommandObject(newElement)){
			for(newIndex=0;newIndex<collectionSize;newIndex++){
				if(isMapCommandObject(get(newIndex)))
					break;
			}
		}else{
			for(newIndex=0;newIndex<collectionSize;newIndex++){
				if(get(newIndex).getClassId()==newTypeId)
					break;
			}
		}
	}else{
		alert("Invalid object for this collection.");
		throw("Invalid object for this collection.");
	}
	if(newIndex<collectionSize){
		replacedElement=this.set(newIndex,newElement);
	}else{
		m_collection.add(newElement);
	}
	return newIndex;
}
MQSession.prototype.isValidObject=function(obj){
	if(obj){
		var cls=obj.getClassName();
		if(cls==="MQCenter"||cls==="MQCenterLatLng"||cls==="MQZoomIn"||cls==="MQZoomOut"||cls==="MQZoomTo"||cls==="MQZoomToRect"||cls==="MQZoomToRectLatLng"||cls==="MQPan"||cls==="MQBestFit"||cls==="MQBestFitLL"||cls==="MQDBLayerQueryCollection"||cls==="MQCoverageStyle"||cls==="MQFeatureCollection"||cls==="MQAutoMapCovSwitch"||cls==="MQPrimitiveCollection"||cls==="MQMapState"){
			return true;
		}else{
			return false;
		}
	}
}
function MQAuthentication(strInfo){
	var strTransactionInfo=(strInfo!=null)?strInfo:"";
	this.getInfo=function(){return strTransactionInfo;}
}
MQAuthentication.prototype.saveXml=function(){return"<Authentication Version=\""+this.getObjectVersion()+"\">"+"<TransactionInfo>"+this.getInfo()+"</TransactionInfo>"+"</Authentication>";};
MQAuthentication.prototype.getClassName=function(){return"MQAuthentication";};
MQAuthentication.prototype.getObjectVersion=function(){return 2;};
function MQXmlNodeObject(strName,strValue){
	var nodeName=strName;
	var nodeValue=strValue;
	this.saveXml=function(){return"<"+nodeName+">"+nodeValue+"</"+nodeName+">";};
}