jQuery().ready(function(){	
	// applying the settings
	jQuery('#meniu').accordion({
		active: '.selected',
		alwaysOpen: false, 
		header: '.head',
		animated: "easeslide", 
		event: 'click',
		autoHeight: false
	});
});
$(document).ready(function()
{


	$("#cautabut").click(function(){
		document.cautare.submit();	
	});


	
	$('#marci').chainSelect('#modele',ABS_URL+'select/',
	{
	before:function (target) //before request hide the target combobox and display the loading message
		{ 
			$("#loading").css("display","block");
			$(target).css("display","none");
		},
		after:function (target) //after request show the target combobox and hide the loading message
		{ 
			$("#loading").css("display","none");
			$(target).css("display","inline");
		}
	}
	);
	



});

function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm)){
return (true)
}
return (false)
}


