// JavaScript Document
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 124;
// -----------------------------------------------------------------------------
// 

function checkLocationType(radioObj, newValue) {
	if(!radioObj){
		return;
	} else {	
		var radioLength = radioObj.length;
		if(radioLength == undefined) {
			radioObj.checked = (radioObj.value == newValue.toString());
			return;
		}
		for(var i = 0; i < radioLength; i++) {
			radioObj[i].checked = false;
			if(radioObj[i].value == newValue.toString()) {
				radioObj[i].checked = true;
			}
		}
	}	
}

function writeZipCode(value){
	document.locationsForm.zip.value = value.toString();
}


function startFunc() {
	alert("in start");
	var selectedLoc = "<cfoutput>#locType#</cfoutput>";
	checkLocationType(document.locationsForm.locationType, selectedLoc);
	
	var zippy = "<cfoutput>#zipCode#</cfoutput>";
	writeZipCode(zippy);
}

