document.write('<table cellpadding="1" cellspacing="0" border="0" bgcolor="blue">');
document.write('<tr><td  colspan=2 bgcolor=gold><img src="c.gif" width=300 height=1 alt="" border="0"></td></tr>');
document.write('<tr><td  colspan=2 bgcolor=white><img src="c.gif" width=1 height=1 alt="" border="0"></td></tr>');
document.write('<tr><td  colspan=2 bgcolor=black><img src="c.gif" width=1 height=1 alt="" border="0"></td></tr>');
//document.write('<tr><td colspan=2 align=center  bgcolor=white><b><font color=blue>* * * *&nbsp;&nbsp;&nbsp; <a  href="http://www.uscounties.com"><font color=red face=tahoma size=3><b>US Counties.com</font></a>&nbsp;&nbsp;&nbsp; * * * *</td></tr>');
document.write('<tr  bgcolor=gold>');

	var temp="";
	var howMany=0;
	// state dropdown
	document.write('<form><td valign="top"><b><font color=black face=arial size=2>Select your state:</b><br><select size=6  name="state" onchange="populateCounties(this.options[this.options.selectedIndex].text)"><option value="0" selected>States');
	
    for (j=0; j<50;j++) {
		document.write('<option>'+states[j]+'</option>');
	}
	document.write('</select></td></form>');
	
	// county dropdown
	document.write('<form><td valign="top"><b><font color=black face=arial size=2>Then your county:</b><br><select size=6  name="county""><option>Click a state');
	document.write('<option>&nbsp;</option>');
	document.write('</select></td></form>');

	function populateCounties(which) { 
        
		removeOpts(howMany);
		var a=(eval(which).length);
		addOpts(a,which);
	}
	
	function removeOpts(num){
    //alert(num);
		for (i=num; i>0; i--) {
			if (document.all)
				eval('document.forms[1].county.options.remove(i)'); //ie
              else
				eval('document.forms[1].county.options[i]=null'); //ns
		}
	}
    
    	
	function addOpts(num,which) {
		for(m=0;m<=num-1;m++) {
			var x=(eval(which)[m])
			if (document.all) {
				var newcounty=document.createElement("OPTION");
				document.forms[1].county.options.add(newcounty);
				document.forms[1].county.options[m].text=x;
			}
			else {
				document.forms[1].county.options[m]=new Option(x);
			}
		}
		howMany=num;
	}


document.write('</tr>');
document.write('<tr><td  colspan=2 bgcolor=gold><img src="c.gif" width=300 height=1 alt="" border="0"></td></tr>');
document.write('<tr><td  colspan=2 bgcolor=white><img src="c.gif" width=1 height=1 alt="" border="0"></td></tr>');
document.write('<tr><td  colspan=2 bgcolor=black><img src="c.gif" width=1 height=1 alt="" border="0"></td></tr>');
document.write('<tr>');
document.write('<td align=center bgcolor=white><!-- <a href=javascript:goCounty("st");><font color=blue face=tahoma>Go to state</a> --> &nbsp;</td>');
document.write('<td align=center bgcolor=white><a href=javascript:goCounty("co");><font color=black face=tahoma><b>Continue >></b></a></td>');
document.write('</tr>');
  
document.write('<tr><td  colspan=2 bgcolor=gold><img src="c.gif" width=1 height=1 alt="" border="0"></td></tr>');
document.write('<tr><td  colspan=2 bgcolor=white><img src="c.gif" width=1 height=1 alt="" border="0"></td></tr>');
document.write('<tr><td  colspan=2 bgcolor=black><img src="c.gif" width=300 height=1 alt="" border="0"></td></tr>');

document.write('</table>');








































				

						
