
function enableAddress() {
	document.getElementById('homeAddress.countryCode').disabled=false;
	document.getElementById('workAddress.countryCode').disabled=false;
}

function hideButton(buttonName) {
	/*for firefox use window.alert...for ie just use alert*/
	//window.alert(buttonName);
	//alert(buttonName);
	var obj = document.getElementById(buttonName);
	if  (obj != null) {
		obj.disabled=true;
		document.signupForm.submit();                        
	}
	return false;
}
	
function refreshImage(imageName) {
	/*for firefox use window.alert...for ie just use alert*/
	//window.alert(imageName);
	//alert(imageName);
	var obj = document.getElementById(imageName);
	if  (obj != null) {
		obj.src = obj.src;
	}
	return false;
}

function velo_singleClickForm() {
	var obj;
	// check for the button
	for (var i = 0; i < arguments.length; i += 2)
	{

		obj = document.getElementById("velo_"+arguments[i]);
		if (obj && arguments[i+1])
		{
			// disable the button/change image
			obj.onmouseover = function () {return true;};
			obj.onmouseout = function () {return true;};
			
			//this file is defined in common.js
			obj.src=arguments[i+1].src;
			obj.disabled = true;
		}
	}
	// check whether at least one object in question exists
	// and the if form has been submitted before dont submit again
	if (obj)
	{
		if (!velo_form_submitted)
		{
			velo_form_submitted = true;
			return true;
		}
		return false;
	}
	// if these objects dont exist, pass through (do nothing)
	return true;
}