function init() {
	// document.getElementById('zipcode').attachEvent('onfocus',selectZipCodeContent);
}

function selectZipCodeContent() {
	document.getElementById('zipcode').select();
}


/*************** setup onload function *******************************/
if(typeof window.addEventListener != 'undefined')
{
	//.. gecko, safari, konqueror and standard
	window.addEventListener('load', init, false);
}
else if(typeof document.addEventListener != 'undefined')
{
	//.. opera 7
	document.addEventListener('load', init, false);
}
else if(typeof window.attachEvent != 'undefined')
{
	//.. win/ie
	window.attachEvent('onload', init);
}

//** remove this condition to degrade older browsers
else
{
	//.. mac/ie5 and anything else that gets this far
	
	//if there's an existing onload function
	if(typeof window.onload == 'function')
	{
		//store it
		var existing = onload;
		
		//add new onload handler
		window.onload = function()
		{
			//call existing onload function
			existing();
			
			//call init onload function
			init();
		};
	}
	else
	{
		//setup onload function
		window.onload = init;
	}
}

// ajax reload of quickrates section
var xhr;
function quickRates(geturl) {
	try {
		xhr = new ActiveXObject("Msxm12.XMLHTTP");
	} catch (e) {
		try {
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {
			xhr = false;
		}
	}
	
	if (!xhr && typeof(XMLHttpRequest) != 'undefined') {
		xhr = new XMLHttpRequest();
	}
	
	xhr.open("GET",geturl);
	xhr.onreadystatechange=function() {
		if (xhr.readyState != 4) return;
		document.getElementById('quickrates').innerHTML = xhr.responseText;
	}
	xhr.send(null);
}