sfFocus = function() {
	var sfEls = document.getElementsByTagName("INPUT");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onfocus=function() {
			this.className+=" sffocus";
			if(this.value=='0') this.value='';
		}
		sfEls[i].onblur=function() {
			this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfFocus);

function toggle(block) {
	var f;
	if (document.getElementById) {
		f = document.getElementById(block);
	} else if (document.all) {
		f = eval("document.all."+block);
	}
	if (!f) return;
	
	if (f.style.display.indexOf("none") >=0) {
		f.style.display = "";
	} else if (f.style.display == "") {
		f.style.display = "none";
  	}
}

function check_usebill() {
	if (document.checkout.usebill) {
		if (document.checkout.usebill.checked) {
			document.getElementById('billto').style.display = "";
		} else {
			document.getElementById('billto').style.display = "none";
		}
	}
}

