// JavaScript Document
	function objetus() {
			 try {
					 objeto = new ActiveXObject("Msxml2.XMLHTTP");
			} catch ( e) {
					 try {
							 objeto= new ActiveXObject (" Microsoft.XMLHTTP");
					 } catch (E) {
							  objeto= false;
					}
			}
			if (! objeto && typeof XMLHttpRequest!= 'undefined') {
					 objeto = new XMLHttpRequest();
			}
			return objeto;
	  }

function donacion_paypal() {
	  
		var aleatorio=Math.random();
		var indice_importe = document.campos_donacion.importe.selectedIndex;
		var indice_periodicidad = document.campos_donacion.periodicidad.selectedIndex ;
		var importeEscogido = document.campos_donacion.importe.options[indice_importe].value 
		var periodicidadEscogido = document.campos_donacion.periodicidad.options[indice_periodicidad].value; 
		
		var url = "formularios_paypal.php?importeEscogido="+importeEscogido+"&periodicidadEscogido="+periodicidadEscogido+"&";
		
		var params = "nocache="+aleatorio+"";
		
		var http = objetus();
		
		
		http.open("GET", url+""+params, true);
		
		//Send the proper header information along with the request
		http.setRequestHeader("Content-type", "text/html");
		//http.setRequestHeader("Content-length", params.length);
		//http.setRequestHeader("Connection", "close");
		
		http.onreadystatechange = function() 
		{//Call a function when the state changes.
			if (http.readyState == 1) { // Cargando...
			
			
			}
			if(http.readyState == 4 && http.status == 200) {
				
				
				document.getElementById('form_paypal').innerHTML = http.responseText;

			}

		}
		http.send(null);
		
	  }
	  
