function writeQueryXML(platNo)
{
	//var platNo;
	//alert("platNo aimsQuery.js " + platNo);
	
	var theString = '<ARCXML version="1.1">' +
						'<REQUEST>' +
							'<GET_FEATURES featurelimit="25" beginrecord="0" outputmode="xml" geometry="false" envelope="true" >' +
								'<LAYER id="2" />' +
								'<SIMPLERENDERER>' +
										'<SIMPLEPOLYGONSYMBOL fillcolor="255,255,0" />' +
									'</SIMPLERENDERER>' +
									//'<SPATIALQUERY subfields="#ALL#" where="PlatNo = ' + "'980026'" + ' ">' +
									'<SPATIALQUERY subfields="#ALL#" where="PlatNo = ' + "'" + platNo + "'" + ' ">' +
									'</SPATIALQUERY>' +
							'</GET_FEATURES>' +
						'</REQUEST>' +
					'</ARCXML>';
				
	//alert("aimsQuery.js " + theString);
	
	var tempString = "//geo1/website/plattracking/viewer.asp?" + theString;
	
	//window.open(tempString);
	window.open(tempString, "", "height=800, left=1 resizable, top=1, width=800");
	//sendToServer(imsURL, theString, 3);
}

/*
'<ARCXML version="1.1">' +
						'<REQUEST>' +
							'<GET_IMAGE>' +
								'<PROPERTIES>' +
								'</PROPERTIES>' +
								'<LAYER type="featureclass" name="temp" id="temp" visible="true">' +
									'<DATASET fromlayer="2" />' +
									'<SPATIALQUERY where="PlatNo =  ' + "'" + platNo + "'" + ' " />' +
									'<SIMPLERENDERER>' +
										'<SIMPLEPOLYGONSYMBOL fillcolor="255,255,0" />' +
									'</SIMPLERENDERER>' +
								'</LAYER>' +
							'</GET_IMAGE>' +
						'</REQUEST>' +
						'</ARCXML>';
*/