<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function fnDoCheck(flgChk,objID)
{
  if (flgChk)
  {
     //document.GForm.City.options[objID].selected = true;
	 //document.GForm.City.selectedIndex = objID
	 mktRc = document.GForm.ARep;
	 for (i=1;i<mktRc.options.length;i++){
		mktRc.options[i].selected = true;
	 }
	 //document.all('floater').style.visibility=''
	 document.GForm.Action.value = "Search";
     document.GForm.submit() 
  }
}
//============================================================
function createMarker(point, N) {
   var marker = new GMarker(point);
   GEvent.addListener(marker, "click", function() {
         marker.openInfoWindowHtml(Info[N]);
		 document.GForm.BuDrop.options[N].selected = true; //--add by jiang
      }
   );
  return marker;
}
function createIMarker(Lo,La,N){
	var point = new GPoint(Lo,La);
	var marker = new GMarker(point)
	map.addOverlay(marker);
	map.removeOverlay(marker);
	marker.openInfoWindowHtml(Info[N]);
	return false;
}
    //]]>
function DropClick(){
	//document.all("chkAdd")[0].checked=false; //add by jiang 2006-03-28 

	var mktBu = document.GForm.BuDrop.value;
	var mktSp = mktBu.split(",")
	var point = new GPoint(mktSp[0],mktSp[1]);
	var marker = new GMarker(point);
	map.addOverlay(marker);
	map.removeOverlay(marker);
	marker.openInfoWindowHtml(Info[mktSp[2]]);
	return false;
}
function StateC(){
var iItems = document.GForm.State.options.length
var mktCity=document.GForm.City
f = document.GForm.State.value
	if (f == "")
		{ document.GForm.City.disabled = true; 
			for (p = City.options.length-1; p > 0; p--){
				mktCity.options[p] = null
			}
		}
	else 
		{ 
		document.GForm.City.disabled = false; 
		for (p = mktCity.options.length-1; p > 0; p--){
			mktCity.options[p] = null
		}
			mktCity.options[0] = new Option(iItem[0][0].value, iItem[0][0].text)
		for (q = 1; q < iItem[f].length; q++) {
			mktCity.options[q] = new Option(iItem[f][q].value, iItem[f][q].text)
		}
		mktCity.options[0].selected = true
	}
}
function Submit(){
if (document.GForm.State.value == ""){
	alert("Please select State.");
	document.GForm.State.focus();
	return false;
	}
if (document.GForm.City.value == ""){
	alert("Please select city.");
	document.GForm.City.focus();
	return false;
	}
	mktRep = document.GForm.ARep;
	for (i=1;i<mktRep.options.length;i++){
		mktRep.options[i].selected = true;
	}
	document.GForm.Action.value = "Search";
	document.GForm.submit();
}
function Search(){
	mktRep = document.GForm.ARep;
	for (i=1;i<mktRep.options.length;i++){
		mktRep.options[i].selected = true;
	}
	document.GForm.Action.value = "Search";
	document.GForm.submit();
}
function CheckInfo(J){
	mktRc = document.GForm.ARep;
	for (i=0;i<mktRc.options.length;i++){
		if (mktRc.options[i].value == RepL[J].text){mktRc.options[i].selected = true;break;}
		}
	if (i == mktRc.options.length){
		//eval("mktRc.options.add(new Option("+N+","+N+"));");
		mktRc.options.add(new Option(RepL[J].value, RepL[J].text));
	}
	return false;
}



//-->