//---------- Functión que crea un nuevo objeto para el formulario----------//
function nuevoAjax(){
var xmlhttp=false;
 try {
 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
 try {
 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
 } catch (E) {
 xmlhttp = false;
 }
 }

if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 xmlhttp = new XMLHttpRequest();
}
return xmlhttp;
}
function marca_todos(truefalse,n_elem){
	for(cual=0;cual<n_elem;cual++){
		eval("document.listado.prueba"+cual+".checked="+truefalse)
	}
	cual=0;
	while(eval("document.getElementById('check"+cual+"') != undefined")){
		eval("document.getElementById('check"+cual+"').checked="+truefalse);
		cual++;
	}
}

function valida_form_newsletter(idform){


	/*var valid = new Validation(idform);
	validado=valid.validate();*/
	
	document.getElementById(idform).submit();

}


function toggle(target_id, status) {
	if (document.getElementById) {
		var ziel = document.getElementById(target_id);
		ziel.style.display = status;
	}
}

