<!--
	// This serves as an interface to our specific document
	// for the generic address handler (Address.js).
	
	// Depends upon DocumentUtility.js for some method calls.
	//
	// Almost all of these are called by Address_IDoc.js methods, 
	// but ther are no reciprocal dependencies.
	//

	var gstrDisplayNone = "none"
	var gstrDisplayBlock = "block"
	
	function focusCity(){
	 //
	 // Set focus on the City input box.
	 // Called by the Address script (Address_IDoc.js)
	 //
		document.frmServiceRequest.txtCity.focus();
	}

	function getDoc_City(){
	 //
	 // Return the currently selected/entered value for City
	 // Called by the Address script (Address_IDoc.js)
	 //
		return document.frmServiceRequest.txtCity.value
	}
	
	function setDoc_City(vstrCity){
	 //
	 // Set the value for City
	 // Called by the Address script (Address_IDoc.js)
	 //
		document.frmServiceRequest.txtCity.value = vstrCity
	}
	
	function getDoc_Country(){
	 //
	 // Return the currently selected/entered value for Country
	 // Called by the Address script (Address_IDoc.js)
	 //
		return document.frmServiceRequest.ddlCountry.value
	}
	
	function setDoc_Country(vstrCountry){
	 //
	 // Set the value for State
	 // Called by the Address script (Address_IDoc.js)
	 //
		
		// See DocumentUtility.js for this method
		setOptionSelected(document.frmServiceRequest.ddlCountry, vstrCountry)
	}
	
	function getDoc_State(){
	 //
	 // Return the currently selected/entered value for State
	 // Called by the Address script (Address_IDoc.js)
	 //
		return document.frmServiceRequest.ddlState.value
	}
	
	function setDoc_State(vstrStateCode){
	 //
	 // Set the value for State
	 // Called by the Address script (Address_IDoc.js)
	 //
		
		// See DocumentUtility.js for this method
		setOptionSelected(document.frmServiceRequest.ddlState, vstrStateCode)
	}
	
	function getDoc_Zip(){
	 //
	 // Return the currently selected/entered value for Zip
	 // Called by the Address script (Address_IDoc.js)
	 //
		return document.frmServiceRequest.txtZip.value
	}
	
	function showCity(){
	 //
	 // Take whatever action is necessary to display the input for City.
	 // Called by the Address script (Address_IDoc.js)
	 //
    document.getElementById('rowCityState').style.display = gstrDisplayBlock;

	}

	function showCountry(){
	 //
	 // Take whatever action is necessary to display the input for Country.
	 // Called by the Address script (Address_IDoc.js)
	 //
	 document.getElementById('rowCountry').style.display = gstrDisplayBlock;

	}

	function showState(){
	 //
	 // Take whatever action is necessary to display the input for Country.
	 // Called by the Address script (Address_IDoc.js)
	 //
		// We're diplaying ours on the same row, so just call the city one.
		showCity();
	}
	
	function afterAddressEntry(){
	 //
	 // Take whatever action is appropriate after successful Address
	 // completion.
	 //
		document.frmServiceRequest.txtEmail.focus();
	}

//  End -->