Ext.onReady(function() {
	Ext.select('div#diensten div.button').hover(
		function() {
			Ext.fly(this).animate({
				top: {to: -10, from: 0}
				, height: {to: 140, from: 130}
			});
		}
		, function() {
			Ext.fly(this).animate({
				top: {to: 0, from: -10}
				, height: {to: 130, from: 140}
			});
		}
	);
	
	Ext.select('div#diensten div.button.selected').hover(
		function() {
			Ext.fly(this).animate({
				top: {to: -20, from: -10}
				, height: {to: 150, from: 140}
			});
		}
		, function() {
			Ext.fly(this).animate({
				top: {to: -10, from: -20}
				, height: {to: 140, from: 150}
			});
		}
	);
});

var belmenuobligated = new Array("Form_6","Form_8");

function belmenuForm_beforeSubmit()
{
    var msg = "";

    for (i = 0; i < belmenuobligated.length; i++)
    {
        var el = document.getElementById(belmenuobligated[i]);
        if (!el) continue;

        if (el.value == "")
        {
            msg += "Alle velden met een * zijn verplicht\n";
            break;
        }
    }
    

    if (msg)
    {
        alert(msg);
        return false;
    }
}



