/*
 * Change mouseover, to see which part of the page will be edited
 */
function changeBackgroundColor(id, color, border, width) {
	if (color) {
		document.getElementById(id).style.backgroundColor = '#'+color;
		document.getElementById(id).style.borderColor = '#'+border;
		document.getElementById(id).style.borderWidth = width;
	} else {
		document.getElementById(id).style.backgroundColor = '';
		document.getElementById(id).style.borderColor = '';
		document.getElementById(id).style.borderWidth = '0';
	}
}

function format(input){
	var num = input.value.replace(/\,/g,'');
	if(isNaN(num)) {
		input.value = input.value.substring(0,input.value.length-1);
	}
}

$j(document).ready(function(){
	$j(".button").hover(function() {
		$j(this).attr("src","/templates/tcu-standaard/img/icon1-mo.png");
			}, function() {
		$j(this).attr("src","/templates/tcu-standaard/img/icon1.png");
	});
	
	$j(".button2").hover(function() {
		$j(this).attr("src","/templates/tcu-standaard/img/icon2-mo.png");
				}, function() {
		$j(this).attr("src","/templates/tcu-standaard/img/icon2.png");
	});
});



