function ConfirmName(Namefield, NameValue)
{
	Namefield.value=NameValue;	
	document.forms[0].submit();

}


function fillState(){
	var state = document.form.elements.state;
	var validFlag = true
	if (document.form.state.selectedIndex =="0"){
		document.form.state.focus();
				validFlag = false
				alert("Please select a value from state drop-down list.");
	}
	return validFlag
}
function goBack(){
window.history.back(1);
}

function highlightRow(rowID){
	if (currentRow !=0) unhighlightRow(currentRow);
	document.all("TR"+rowID).style.background='#e2e2e2';
	currentRow = rowID;
}

function unhighlightRow(rowID)
{
	document.all("TR"+rowID).style.background='';
	
}

function getState(){
if (document.form.state.selectedIndex !="0"){
 if (document.form.county && document.form.zip){
	document.form.county.selectedIndex = "0";
 	document.form.zip.selectedIndex = "0";
 }
 document.form.submit();
}
}

function getCity(){
if (document.form.state.selectedIndex !="0"){
 document.form.zip.selectedIndex = "0";
 document.form.submit();
}
}
function getZip(){
if (document.form.state.selectedIndex !="0"){
 if (document.form.county) document.form.county.selectedIndex = "0";
 document.form.submit();
}

}
function getIndex(){
document.form.hidIndx.value=document.form.state.selectedIndex;
if (document.form.county) document.form.hidCity.value=document.form.county.selectedIndex;
if (document.form.zip) document.form.hidZip.value=document.form.zip.selectedIndex;
}

