function searchStatewide (){
	var the_select1 = document.searchForm.country;
	var the_index1 = the_select1.selectedIndex;
	var the_selected1 = the_select1.options[the_index1].text;
	
	var the_select2 = document.searchForm.state;
	var the_index2 = the_select2.selectedIndex;
	var the_selected2 = the_select2.options[the_index2].text;
	
	if (the_selected1 == "United States of America"){
		document.getElementById('uploading').style.display = 'block';
		if ( the_selected2 != "---------------------" ) {
			if (the_selected2 != "please select a state"){
				document.searchForm.submit();
			}
		}
		
	} else if ( the_selected1 != "---------------------" ) {
		if (the_selected1 != "please select a state"){
			document.searchForm.submit();
		}
	} else {
		document.getElementById('uploading').style.display = 'none';
	}
}

function showotherIBA(anID, callingElement) {

for( var i = 1; i < 8; i++ ) {
	
	anID1 = "ibacopy"+i;
	ele = document.getElementById(anID1);
	ele.style.display = "none";
}

el =  document.getElementById(anID);

if (el != null) {
	
	if (el.style.display == "none") {
	el.style.display = "block";
	}
	else {
	el.style.display = "none";
    callEl = document.getElementById(callingElement);
        if (callEl != null) {
            callEl.scrollIntoView();
         }
      }
  }
}

function showotherIBA1(anID, callingElement) {

for( var i = 1; i < 7; i++ ) {
	
	anID1 = "ibacopy"+i;
	ele = document.getElementById(anID1);
	ele.style.display = "none";
}

el =  document.getElementById(anID);

if (el != null) {
	
	if (el.style.display == "none") {
	el.style.display = "block";
	}
	else {
	el.style.display = "none";
    callEl = document.getElementById(callingElement);
        if (callEl != null) {
            callEl.scrollIntoView();
         }
      }
  }
}

enter = new Image();
enter.src = "./g/enter.jpg";
