
function activateProductInfo(id) {
	var elemName = 'productbox'+id+'_content';
	var tabName = 'productbox'+id+'_title';
	
	var aTab = document.getElementById(tabName);
	var aContent = document.getElementById(elemName);
	
	if(aTab && aContent) {
		for(var i = 1; i <= 4; i++) {
			elemName = 'productbox'+i+'_content'; tabName = 'productbox'+i+'_title';
			var tab = document.getElementById(tabName);
			var content = document.getElementById(elemName);

			if(tab) { tab.style.backgroundColor='#FAFAFA'; tab.style.borderBottomColor='#fff'; }
			if(content) content.style.display='none';
		}
		aTab.style.backgroundColor='#F0F0F0'; aTab.style.borderBottomColor='#F0F0F0';
		aContent.style.display='block';
	}
}

// inputs with labels

if(document.getElementsByTagName) window.onload = function() {
	var inputs = document.getElementsByTagName('input');
	for(var i = 0; i < inputs.length; i++) {
		if(inputs[i].className == 'valuelabel') {
			inputs[i].onfocus = function() { if(this.honkiSecret == this.value) this.value = ''; };
			inputs[i].onblur = function() { if(this.value.length==0) this.value = this.honkiSecret; };
			inputs[i].honkiSecret = inputs[i].value;
		}
	}
}

