
	//<![CDATA[

//clears a textfield if it was the first time the textfield was clicked.
//has 4 indices so multiple fields can be tracked by a single include.
//index		field name	form name
//0		way_id		way_id_form
//1		city		geo_form
//2		state
//3		email

var count = [0,0,0,0];

function cls(index)
{
	if (index >= 0 && index < 4) {

	  if (count[index] < 1)
	  {
	    switch(index){

	    case 0:
		document.way_id_form.way_id.value = "";
		break;
	    case 1:
		document.geo_form.city.value = "";
		break;
	    case 2:
		document.geo_form.state.value = "";
		break;
	    case 3:	
		document.geo_form.email.value = "";
		break;
	    default:
		break;
	    }	
	  }

	  count[index]++;
	}
}


function reset_cls() {
	count = [0,0,0,0];
}

    //]]>
