function estiloOn(which, estilo){
//alert (estilo);
if (document.all||document.getElementById){
which.className= estilo;
}
}

function make_acordeon(codi) {
	if (jQuery("#"+codi+"_big").css("display")=="none") {
		//jQuery("#"+codi+"_small").slideUp("slow",function (){ jQuery("#"+codi+"_big").slideDown("slow"); });
		jQuery("#"+codi+"_small").css("display","none");
		jQuery("#"+codi+"_big").slideDown("slow");
	} else {
		//jQuery("#"+codi+"_big").slideUp("slow",function (){ jQuery("#"+codi+"_small").slideDown("slow"); });
		jQuery("#"+codi+"_big").css("display","none");
		jQuery("#"+codi+"_small").css("display","block");
		
	}
}

/* jQuery(document).ready(function(){
	// alert(jQuery("#container").height());
	 //alert(jQuery(window).height());
	if (jQuery("#container").height() < jQuery(window).height()) {
		jQuery("#container").height(jQuery(window).height())
	}
});*/
 
function enviarform()
{
//alert ("Hello World");
	if (document.formulari.nombre.value==''){
		alert("Rellene el campo Nombre");return false;
	}else if (document.formulari.apellidos.value==''){
		alert("Rellene el campo Apellidos");return false;
	}else if (document.formulari.email.value==''){
		alert("Rellene el campo Email");return false;
	}else {

	//document.formulario.action = "form/"+archivo+".php";
	//alert ("submit");
	//document.form.action = "enviar.php";
	//document.form.submit();
		return true;
	}
}
