function S_GetDay(intDay){
    var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", 
                         "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
    }

  function S_GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
                               "April", "May", "June",
                               "July", "August", "September",
                               "October", "November", "December") 
    return MonthArray[intMonth] 	  	 
    }
  function S_getDateStrWithDOW(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = S_GetDay(today.getDay()) + ", "
    todayStr += S_GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
    }
	
function specialPropertyVar_selected(specialProperty_Var){
	if (!(specialProperty_Var=='')){
		for (i=1;i<document.getElementById("specialPropertyVar").options.length;i++){
			if (document.getElementById("specialPropertyVar").options[i].value==specialProperty_Var) {
				document.getElementById("specialPropertyVar").options[i].selected=true;
				break;
			}
		}									
	}	
}
function tipoTranS_selected(tipo_Tran_S){
	if (!(tipo_Tran_S=='')){							 	
		S_llenarPrecios(tipo_Tran_S);									
		for (i=1;i<document.getElementById("tipoTranS").options.length;i++){
			if (document.getElementById("tipoTranS").options[i].value==tipo_Tran_S) {
				document.getElementById("tipoTranS").options[i].selected=true;
				break;
			}
		}									
	}else{
		S_llenarPrecios('Sale');
	}
}								
function  create_tables(tabla_crear){
	if (tabla_crear=="zipTable"){
    	tabla_contenido.innerHTML = zip_table_str;
	}
	if (tabla_crear=="principalTable"){
		tabla_contenido.innerHTML = principalTable_str;
		S_llenar_availableCities();
	}
	if (tabla_crear=="addressTable"){
		tabla_contenido.innerHTML = addressTable_str;
		S_llenar_CityAdd();
	}
	if (tabla_crear=="mlsTable"){
		tabla_contenido.innerHTML = mlsTable_str;
	}
	if (tabla_crear=="complex_name"){
		tabla_contenido.innerHTML = complex_name_str;
		S_llenar_CityAdd_2();
	}
}

function  enviar_city_offer(ciudad,valor_ciudad){
	if (ciudad){
		if (ciudad.options){
			ciudad.options[0]=new Option('No cities selected',valor_ciudad);
			S_selectAll(ciudad);
		}else{
			ciudad.value=valor_ciudad;
		}
	}else{
		hidden_City.innerHTML ='<input type="hidden" value="'+valor_ciudad+'" name="City">';
	}
	
}

function S_ShowpageSearchI(tabla){
	document.getElementById('tdprincipalTable').className ="S_tagSearch";
	document.getElementById('tdzipTable').className="S_tagSearch";
	document.getElementById('tdaddressTable').className="S_tagSearch";
	document.getElementById('tdmlsTable').className="S_tagSearch";
	if (tabla=="principalTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="principalTable";
		document.getElementById('tdprincipalTable').className="S_tagSearchSelectI";
	}
	if (tabla=="zipTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="zipTable";
		document.getElementById('tdzipTable').className="S_tagSearchSelectI";
	}
	if (tabla=="addressTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="addressTable";
		document.getElementById('tdaddressTable').className="S_tagSearchSelectI";
	}
	if (tabla=="mlsTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="mlsTable";
		document.getElementById('tdmlsTable').className="S_tagSearchSelectI";
	}
}

function S_ShowpageSearch_mls_search(tabla){
	//document.getElementById('tdprincipalTable').className ="S_tagSearch";
	//document.getElementById('tdzipTable').className="S_tagSearch";
	//document.getElementById('tdaddressTable').className="S_tagSearch";
	//document.getElementById('tdmlsTable').className="S_tagSearch";
	if (tabla=="principalTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="principalTable";
		//document.getElementById('tdprincipalTable').className="S_tagSearchSelectI";
	}
	if (tabla=="zipTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="zipTable";
		//document.getElementById('tdzipTable').className="S_tagSearchSelectI";
	}
	if (tabla=="addressTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="addressTable";
		//document.getElementById('tdaddressTable').className="S_tagSearchSelectI";
	}
	if (tabla=="mlsTable"){
		create_tables(tabla);
		form1.tablaMostrar.value="mlsTable";
		//document.getElementById('tdmlsTable').className="S_tagSearchSelectI";
	}
	
	if (tabla=="complex_name"){
		create_tables(tabla);
		form1.tablaMostrar.value="complex_name";
		//document.getElementById('tdmlsTable').className="S_tagSearchSelectI";
	}
}

function S_llenarPrecios(tipo) 
{
	if (tipo=='Sale' || tipo=='foreclosure') 
		x=0;
	else
		x=1;
		
	for (i=1;i<S_priceSaleData[x].length;i++){
		form1.listing_price_min0.options[i]=null
		form1.listing_price_max0.options[i]=null
		form1.listing_price_min0.options[i]=new Option(S_priceSaleData[x][i].value,S_priceSaleData[x][i].text)
		form1.listing_price_max0.options[i]=new Option(S_priceSaleData[x][i].value,S_priceSaleData[x][i].text)
	}
}

function S_llenarAnios(x) 
{
	for (i=1;i<S_fechaData[x].length;i++){
		form1.year_built_from.options[i]=null
		form1.year_built_to.options[i]=null
		form1.year_built_from.options[i]=new Option(S_fechaData[x][i].value,S_fechaData[x][i].text);
		form1.year_built_to.options[i]=new Option(S_fechaData[x][i].value,S_fechaData[x][i].text);
	}
}

function S_llenar_availableCities() 
{
	for (i=0;i<(S_cities_miami_array.length-1);i++){
		
		form1.availableCities.options[i]=null
		form1.availableCities.options[i]=new Option(S_cities_miami_array[i][1],S_cities_miami_array[i][0]);
	}
}

function S_llenar_CityAdd() 
{
	for (i=1;i<S_cities_miami_array.length;i++){
		form1.CityAdd.options[i]=null
		form1.CityAdd.options[i]=new Option(S_cities_miami_array[i-1][1],S_cities_miami_array[i-1][0]);
	}
}

function S_llenar_CityAdd_2() 
{
	for (i=1;i<S_cities_miami_array.length;i++){
		form1.CityAdd_2.options[i]=null
		form1.CityAdd_2.options[i]=new Option(S_cities_miami_array[i-1][1],S_cities_miami_array[i-1][0]);
	}
}

function S_llenar_City() 
{
	for (i=1;i<S_cities_miami_array.length;i++){
		form1.City.options[i]=null
		form1.City.options[i]=new Option(S_cities_miami_array[i-1][1],S_cities_miami_array[i-1][0]);
	}
}

function S_llenarPrecios2(tipo,forma) 
{
	if (tipo=='Sale' || tipo=='foreclosure') 
		x=0;
	else
		x=1;
		
	for (i=1;i<S_priceSaleData[x].length;i++){
		forma.listing_price_min0.options[i]=null
		forma.listing_price_max0.options[i]=null
		forma.listing_price_min0.options[i]=new Option(S_priceSaleData[x][i].value,S_priceSaleData[x][i].text)
		forma.listing_price_max0.options[i]=new Option(S_priceSaleData[x][i].value,S_priceSaleData[x][i].text)
	}
}

function S_redirectOutput(frm,page,w,h) {		 	
	//selectAll(form1.City);
	frm.initialValue.value=0;
	//var w = window.open('about:blank','Popup_Window','resizable=1,scrollbars=1,width='+w+',height='+h);
	//frm.target = 'Popup_Window';
	frm.action=page;
	frm.submit();
	frm.target='';
	frm.action='';
}	

function S_actualizarcampos(forma){
	if (forma.specialPropertyVar.value=="SFR"){
		forma.property_type_orS.value=="SFR";
	}else{
		forma.property_type_orC.value=="CONDO";
	}
}

function S_selectAll(theSelect)
{
   if (theSelect) {
	   for ( var i=0,n=theSelect.options.length; i<n; i++ )
		   theSelect.options[i].selected = true;
   }
   return true;
}

var S_priceSaleData = new Array();
S_priceSaleData[0] = new Array();  //Precios Para la Venta
S_priceSaleData[1] = new Array();  // Precios Para la Renta

S_priceSaleData[0][0] = new Option('Any','Any');
S_priceSaleData[0][1] = new Option('100000','$100,000');
S_priceSaleData[0][2] = new Option('120000','$120,000');
S_priceSaleData[0][3] = new Option('130000','$130,000');
S_priceSaleData[0][4] = new Option('140000','$140,000');
S_priceSaleData[0][5] = new Option('150000','$150,000');
S_priceSaleData[0][6] = new Option('160000','$160,000');
S_priceSaleData[0][7] = new Option('170000','$170,000');
S_priceSaleData[0][8] = new Option('180000','$180,000');
S_priceSaleData[0][9] = new Option('190000','$190,000');
S_priceSaleData[0][10] = new Option('200000','$200,000');
S_priceSaleData[0][11] = new Option('225000','$225,000');
S_priceSaleData[0][12] = new Option('250000','$250,000');
S_priceSaleData[0][13] = new Option('275000','$275,000');
S_priceSaleData[0][14] = new Option('300000','$300,000');
S_priceSaleData[0][15] = new Option('325000','$325,000');
S_priceSaleData[0][16] = new Option('350000','$350,000');
S_priceSaleData[0][17] = new Option('375000','$375,000');
S_priceSaleData[0][18] = new Option('400000','$400,000');
S_priceSaleData[0][19] = new Option('450000','$450,000');
S_priceSaleData[0][20] = new Option('500000','$500,000');
S_priceSaleData[0][21] = new Option('550000','$550,000');
S_priceSaleData[0][22] = new Option('600000','$600,000');
S_priceSaleData[0][23] = new Option('650000','$650,000');
S_priceSaleData[0][24] = new Option('700000','$700,000');
S_priceSaleData[0][25] = new Option('750000','$750,000');
S_priceSaleData[0][26] = new Option('800000','$800,000');
S_priceSaleData[0][27] = new Option('850000','$850,000');
S_priceSaleData[0][28] = new Option('900000','$900,000');
S_priceSaleData[0][29] = new Option('1000000','$1,000,000');
S_priceSaleData[0][30] = new Option('1250000','$1,250,000');
S_priceSaleData[0][31] = new Option('1500000','$1,500,000');
S_priceSaleData[0][32] = new Option('1750000','$1,750,000');
S_priceSaleData[0][33] = new Option('2000000','$2,000,000');
S_priceSaleData[0][34] = new Option('2250000','$2,250,000');
S_priceSaleData[0][35] = new Option('2500000','$2,500,000');
S_priceSaleData[0][36] = new Option('2750000','$2,750,000');
S_priceSaleData[0][37] = new Option('3000000','$3,000,000');
S_priceSaleData[0][38] = new Option('4000000','$4,000,000');
S_priceSaleData[0][39] = new Option('5000000','$5,000,000');
S_priceSaleData[0][40] = new Option('10000000','$10,000,000');

S_priceSaleData[1][0] = new Option('Any','');
S_priceSaleData[1][1] = new Option('100','$100');
S_priceSaleData[1][2] = new Option('120','$120');
S_priceSaleData[1][3] = new Option('130','$130');
S_priceSaleData[1][4] = new Option('140','$140');
S_priceSaleData[1][5] = new Option('150','$150');
S_priceSaleData[1][6] = new Option('160','$160');
S_priceSaleData[1][7] = new Option('170','$170');
S_priceSaleData[1][8] = new Option('180','$180');
S_priceSaleData[1][9] = new Option('190','$190');
S_priceSaleData[1][10] = new Option('200','$200');
S_priceSaleData[1][11] = new Option('225','$225');
S_priceSaleData[1][12] = new Option('250','$250');
S_priceSaleData[1][13] = new Option('275','$275');
S_priceSaleData[1][14] = new Option('300','$300');
S_priceSaleData[1][15] = new Option('325','$325');
S_priceSaleData[1][16] = new Option('350','$350');
S_priceSaleData[1][17] = new Option('375','$375');
S_priceSaleData[1][18] = new Option('400','$400');
S_priceSaleData[1][19] = new Option('450','$450');
S_priceSaleData[1][20] = new Option('500','$500');
S_priceSaleData[1][21] = new Option('550','$550');
S_priceSaleData[1][22] = new Option('600','$600');
S_priceSaleData[1][23] = new Option('650','$650');
S_priceSaleData[1][24] = new Option('700','$700');
S_priceSaleData[1][25] = new Option('750','$750');
S_priceSaleData[1][26] = new Option('800','$800');
S_priceSaleData[1][27] = new Option('850','$850');
S_priceSaleData[1][28] = new Option('900','$900');
S_priceSaleData[1][29] = new Option('1000','$1,000');
S_priceSaleData[1][30] = new Option('1250','$1,250');
S_priceSaleData[1][31] = new Option('1500','$1,500');
S_priceSaleData[1][32] = new Option('1750','$1,750');
S_priceSaleData[1][33] = new Option('2000','$2,000');
S_priceSaleData[1][34] = new Option('2250','$2,250');
S_priceSaleData[1][35] = new Option('2500','$2,500');
S_priceSaleData[1][36] = new Option('2750','$2,750');
S_priceSaleData[1][37] = new Option('3000','$3,000');
S_priceSaleData[1][38] = new Option('4000','$4,000');
S_priceSaleData[1][39] = new Option('5000','$5,000');
S_priceSaleData[1][40] = new Option('10000','$10,000');

var S_fechaData = new Array();
S_fechaData[0] = new Array();  //Precios Para la Venta
//S_fechaData[1] = new Array();  // Precios Para la Renta

S_fechaData[0][0] = new Option('Any','Any');				              
S_fechaData[0][1] = new Option('1850','1850');
S_fechaData[0][2] = new Option('1860','1860');
S_fechaData[0][3] = new Option('1870','1870');
S_fechaData[0][4] = new Option('1880','1880');
S_fechaData[0][5] = new Option('1890','1890');
S_fechaData[0][6] = new Option('1900','1900');
S_fechaData[0][7] = new Option('1910','1910');
S_fechaData[0][8] = new Option('1920','1920');
S_fechaData[0][9] = new Option('1930','1930');
S_fechaData[0][10] = new Option('1940','1940');
S_fechaData[0][11] = new Option('1950','1950');
S_fechaData[0][12] = new Option('1960','1960');
S_fechaData[0][13] = new Option('1970','1970');
S_fechaData[0][14] = new Option('1980','1980');
S_fechaData[0][15] = new Option('1990','1990');
S_fechaData[0][16] = new Option('1995','1995');
S_fechaData[0][17] = new Option('1996','1996');
S_fechaData[0][18] = new Option('1997','1997');
S_fechaData[0][19] = new Option('1998','1998');
S_fechaData[0][20] = new Option('1999','1999');
S_fechaData[0][21] = new Option('2000','2000');
S_fechaData[0][22] = new Option('2001','2001');
S_fechaData[0][23] = new Option('2002','2002');
S_fechaData[0][24] = new Option('2003','2003');
S_fechaData[0][25] = new Option('2004','2004');
S_fechaData[0][26] = new Option('2005','2005');
S_fechaData[0][27] = new Option('2006','2006');

var S_cities_miami_array = [["AVENTUR","Aventura"],
						["BALHARBR","Bal Harbour"],
						["BAYHARIS","Bay Harbor Islands"],
						["BISCPARK","Biscayne Park"],
						["BISGRDNS","Biscayne Gardens"],
						["COCOGROV","Coconut Grove"],
						["CORALGBL","Coral Gables"],
						["DADECNTY","Dade City"],
						["DORAL","Doral"],
						["ELPORTAL","El Portal"],
						["FISHISLD","Fisher Island"],
						["FLACITY","Florida City"],
						["GOULDS","Goulds"],
						["HIALEAH","Hialeah"],
						["HIALGRDN","Hialeah Gardens"],
						["HOMESTED","Homestead"],
						["INDCREEK","Indian Creek"],
						["KENDALL","Kendall"],
						["KEYBISCY","Key Biscayne"],
						["MEDLEY","Medley"],
						["MIAMI","Miami"],
						["MIAMIBCH","Miami Beach"],
						["MIAMIGAR","Miami Gardens"],
						["MIAMILKE","Miami Lakes"],
						["MIAMISHR","Miami Shores"],
						["MIAMISPR","Miami Springs"],
						["NARANJA","Naranja"],
						["NBAYVLGE","North Bay Village"],
						["NMIAMBCH","North Miami Beach"],
						["NMIAMI","North Miami"],
						["NMIAMIBC","North Miami"],
						["OPALOCKA","Opa Locka"],
						["PALMEBAY","Palmetto Bay"],
						["PALMSPRG","Palm Springs"],
						["PERRINE","Perrine"],
						["PINECRST","Pinecrest"],
						["SMIAMI","South Miami"],
						["SUNNYISL","Sunny Isles Beach"],
						["SURFSIDE","Surfside"],
						["SWEETWTR","Sweetwater"],
						["VIRGRDNS","Virginia Gardens"],
						["WELLINGT","Wellington"],
						["WMIAMI","West Miami"],
						["WMISLAND","Williams Island"],
];

//Tabla ZIP

zip_table_str='<table border="0" width="317" id="zipTable" height="120">';
zip_table_str=zip_table_str+'                            <tr>';
zip_table_str=zip_table_str+'                              <td height="27" class="S_detalles_tabla" valign="top" align="center"><p align="center" class="S_letras_blancas_titulo"> Search&nbsp; By Zip Code</p></td>';
zip_table_str=zip_table_str+'                            </tr>';
zip_table_str=zip_table_str+'                            <tr>';
zip_table_str=zip_table_str+'                              <td><table cellspacing="0" cellpadding="5" id="table141" width="301">';
zip_table_str=zip_table_str+'                                  <tr>';
zip_table_str=zip_table_str+'                                    <td valign="top" align="center"><font class="S_letras_blancas"> Zip Codes:</font></td>';
zip_table_str=zip_table_str+'                                  </tr>';
zip_table_str=zip_table_str+'                                  <tr>';
zip_table_str=zip_table_str+'                                    <td valign="top" align="center">';
zip_table_str=zip_table_str+'                                        <input type="text" name="zipCode" size="38" />';
zip_table_str=zip_table_str+'										<br />';
zip_table_str=zip_table_str+'                                        <font class="S_letras_blancas"> Use commas to separate multiple ZIP Codes </font></td>';
zip_table_str=zip_table_str+'                                  </tr>';
zip_table_str=zip_table_str+'                              </table></td>';
zip_table_str=zip_table_str+'                            </tr>';
zip_table_str=zip_table_str+'                          </table>';

//Tabla Principal

principalTable_str = '<table border="0" width="317" id="principalTable" height="168">';
principalTable_str +='                  <tr>';
principalTable_str +='                    <td width="28%" height="23" valign="top" align="center" ><font face="Verdana" size="1" color="#FFFFFF">Select Your Cities</font></td>';
principalTable_str +='                    <td width="5%" height="23" align="center">&nbsp;</td>';
principalTable_str +='                    <td width="37%" height="23" valign="top" align="center"><font size="1" color="#FFFFFF" face="Verdana">Your Selected ';
principalTable_str +='                      Cities</font></td>';
principalTable_str +='                  </tr>';
principalTable_str +='                  <tr>';
principalTable_str +='                    <td width="28%" height="148" valign="top"><select size="8" name="availableCities" style="font-family: Verdana; font-size: 9; width: 149; height: 138" multiple="multiple">';
principalTable_str +='                    </select>';
principalTable_str +='					<script>';
principalTable_str +='						S_llenar_availableCities();';
principalTable_str +='					</script>';
principalTable_str +='					</td>';
principalTable_str +='                    <td width="5%" height="148"><p align="center">';
principalTable_str +='                      <input type="button" value="&gt;&gt;" onclick="addItems(this.form.availableCities.options, this.form.City.options, \'No cities selected\'); return false" name="addCitiesButton" class="S_botonesLista" />';
principalTable_str +='                      <br />';
principalTable_str +='                      <br />';
principalTable_str +='                      <br />';
principalTable_str +='                      <input type="button" value="&lt;&lt;" onclick="removeItems(this.form.availableCities.options, this.form.City.options, \'No cities selected\'); return false" name="removeCitiesButton" class="S_botonesLista" />';
principalTable_str +='                    </p></td>';
principalTable_str +='                    <td width="37%" height="148" valign="top"><select size="8" name="City" style="font-family: Verdana; font-size: 9; width: 126; height: 138" multiple="multiple">';
principalTable_str +='                    </select></td>';
principalTable_str +='                  </tr>';
principalTable_str +='                </table>';

//Tabla addressTable

addressTable_str = '<table border="0" width="317" id="addressTable" height="113">';
addressTable_str +='                            <tr>';
addressTable_str +='                              <td height="27" style="border-left: 0 solid #C0C0C0; border-right: 0 solid #C0C0C0; border-top: 0 solid #C0C0C0; border-bottom: 1px solid #C0C0C0"><p align="center"><b> <font face="Verdana" style="font-size: 9pt" color="#FFFFFF"> Search&nbsp; By Property Address</font></b></p></td>';
addressTable_str +='                            </tr>';
addressTable_str +='                            <tr>';
addressTable_str +='                              <td><table cellspacing="0" cellpadding="5" id="table145" width="302">';
addressTable_str +='                                  <tr>';
addressTable_str +='                                    <td valign="top" align="right"><p align="center"> <b><font face="Arial" size="1" color="#FFFFFF"> Address: </font> </b></p></td>';
addressTable_str +='                                  </tr>';
addressTable_str +='                                  <tr>';
addressTable_str +='                                    <td valign="top" align="right"><p align="center">';
addressTable_str +='                                        <input type="text" name="address" size="38" />';
addressTable_str +='                                    </p></td>';
addressTable_str +='                                  </tr>';
addressTable_str +='                                  <tr>';
addressTable_str +='                                    <td valign="top" align="right"><p align="center">';
addressTable_str +='                                        <select style="width: 150px; font-family:verdana; font-size:8pt" id="CityAdd" name="CityAdd" size="1">';
addressTable_str +='                                          <option value="0">All Cities</option>';
addressTable_str +='                                        </select>';
addressTable_str +='                                    </p></td>';
addressTable_str +='                                  </tr>';
addressTable_str +='                              </table></td>';
addressTable_str +='                            </tr>';
addressTable_str +='                          </table>';

//Tabla addressTable
				
mlsTable_str = '				<table border="0" width="317" id="mlsTable" height="168">';
mlsTable_str +='                            <tr>';
mlsTable_str +='                              <td height="27" style="border-left: 0 solid #C0C0C0; border-right: 0 solid #C0C0C0; border-top: 0 solid #C0C0C0; border-bottom: 1px solid #C0C0C0;color:#FFFFFF"><p align="center"><b> <font face="Verdana" style="font-size: 9pt">Search&nbsp; By MLS Number</font></b></p></td>';
mlsTable_str +='                            </tr>';
mlsTable_str +='                            <tr>';
mlsTable_str +='                              <td><table cellspacing="0" cellpadding="5" id="table123" width="300">';
mlsTable_str +='                                  <tr>';
mlsTable_str +='                                    <td valign="top" align="right"><p align="center"> <b> <font face="Arial" size="1" color="#FFFFFF">MLS: </font> </b> </p></td>';
mlsTable_str +='                                  </tr>';
mlsTable_str +='                                  <tr>';
mlsTable_str +='                                    <td valign="top" align="right"><p align="center">';
mlsTable_str +='                                        <input type="text" name="mls" id="mls" size="38" />';
mlsTable_str +='                                    </p></td>';
mlsTable_str +='                                  </tr>';
mlsTable_str +='                                  <tr>';
mlsTable_str +='                                    <td valign="top" align="right"><p align="center"><b> <font face="Arial" style="font-size: 7pt;color:#FFFFFF;">Use commas to ';
mlsTable_str +='                                      separate multiple MLS Numbers</font></b></p></td>';
mlsTable_str +='                                  </tr>';
mlsTable_str +='                                </table>';
mlsTable_str +='                                  <p></p></td>';
mlsTable_str +='                            </tr>';
mlsTable_str +='                        </table>';

//Tabla complex_name

complex_name_str = '<table border="0" width="317" id="complex_name" height="113">';
complex_name_str +='                            <tr>';
complex_name_str +='                              <td height="27" style="border-left: 0 solid #C0C0C0; border-right: 0 solid #C0C0C0; border-top: 0 solid #C0C0C0; border-bottom: 1px solid #C0C0C0"><p align="center"><b> <font face="Verdana" style="font-size: 9pt" color="#FFFFFF"> Search&nbsp; By Complex Name</font></b></p></td>';
complex_name_str +='                            </tr>';
complex_name_str +='                            <tr>';
complex_name_str +='                              <td><table cellspacing="0" cellpadding="5" id="table145" width="302">';
complex_name_str +='                                  <tr>';
complex_name_str +='                                    <td valign="top" align="right"><p align="center"> <b><font face="Arial" size="1" color="#FFFFFF"> Complex Name: </font> </b></p></td>';
complex_name_str +='                                  </tr>';
complex_name_str +='                                  <tr>';
complex_name_str +='                                    <td valign="top" align="right"><p align="center">';
complex_name_str +='                                        <input type="text" name="name_complex" size="38" />';
complex_name_str +='                                    </p></td>';
complex_name_str +='                                  </tr>';
complex_name_str +='                                  <tr>';
complex_name_str +='                                    <td valign="top" align="right"><p align="center">';
complex_name_str +='                                        <select style="width: 150px; font-family:verdana; font-size:8pt" id="CityAdd_2" name="CityAdd_2" size="1">';
complex_name_str +='                                          <option value="0">All Cities</option>';
complex_name_str +='                                        </select>';
complex_name_str +='                                    </p></td>';
complex_name_str +='                                  </tr>';
complex_name_str +='                              </table></td>';
complex_name_str +='                            </tr>';
complex_name_str +='                          </table>';

