
//
//  JavaScript 
//  GENERATED by cron.venue.js.htm
//  No editing of this file.
//


function changeType (tIn) {
	for(var i=0; i < document.theForm.M3.length; i++) {
		if(document.theForm.M4.options[i].value == tIn) {
			document.theForm.M4.selectedIndex = i;
			return;
			}
		}
	}

function changeCity (cIn) {
	for(var i=0; i < document.theForm.M3.length; i++) {
		if(document.theForm.M3.options[i].value == cIn) {
			document.theForm.M3.selectedIndex = i;
			return;
			}
		}
	}

function changeState (sIn) {
	for(var i=0; i < document.theForm.M2.length; i++) {
		if(document.theForm.M2.options[i].value == sIn) {
			document.theForm.M2.selectedIndex = i;
			return;
			}
		}
	}


function cityChange (stateCode, cityCode) {
		
	}

function stateChange (stateCode) {
		

	if(stateCode == '') {
		document.theForm.M3.length = 2;
		document.theForm.M3.options[0].text = "2. Select a City/Area";
		document.theForm.M3.options[0].value = "";
		}
	document.theForm.M3.options[document.theForm.M3.length - 1].text = "__________________";
	document.theForm.M3.options[document.theForm.M3.length - 1].value = "";

//	if(stateCode == '') {
		//No matter what, always reset thingy type.
		document.theForm.M4.length = 2;
		document.theForm.M4.options[0].text = "3. Select a type";
		document.theForm.M4.options[0].value = "";
//		}
	document.theForm.M4.options[document.theForm.M4.length - 1].text = "__________________";
	document.theForm.M4.options[document.theForm.M4.length - 1].value = "";
	}


function fillState () {
		document.theForm.M2.options[0].text = "1. Select a State";
		document.theForm.M2.options[0].value = "";
		document.theForm.M2.length = 0 + 2;
			
		document.theForm.M2.options[document.theForm.M2.length - 1].text = "__________________";
		document.theForm.M2.options[document.theForm.M2.length - 1].value = "";
		}
	