var originalEmail = "email address";
        
        function ajaxObject(){
            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 sendSignUp(){
                	var mail = document.getElementById('signUpMail');
                        signUpAjax = new ajaxObject();
                        var pageCall="caller/suscribe.php?email="+mail.value;
                        //alert(pageCall);
	                        signUpAjax.open("GET",pageCall,true);
	                        signUpAjax.onreadystatechange=function() {
	                              if (signUpAjax.readyState==4) {
	                                     eval("vector ="+signUpAjax.responseText);
	                                     //alert(signUpAjax.responseText);
	                                     if(vector["error"]["id"] == "0"){//No errors occured
	                                           //location.href=sPath;
	                                           mail.value="Email Address";
	                                           parent.window.location = "takeaction.php?signUpMail=success";
	            
	                                     }else{
	                                      	document.getElementById('signUpMail').value = 'Invalid Email';
	                                     }
	                              }
	        
	                        }
                    	signUpAjax.send(null);
        }
        function sendSignUp2(){
                	var mail = document.getElementById('signUpMail2');
                        signUpAjax = new ajaxObject();
                        var pageCall="caller/suscribe.php?email="+mail.value;
                        //alert(pageCall);
	                        signUpAjax.open("GET",pageCall,true);
	                        signUpAjax.onreadystatechange=function() {
	                              if (signUpAjax.readyState==4) {
	                                     eval("vector ="+signUpAjax.responseText);
	                                     //alert(signUpAjax.responseText);
	                                     if(vector["error"]["id"] == "0"){//No errors occured
	                                           //location.href=sPath;
	                                           mail.value="Email Address";
	                                           
	            
	                                     }else{
	                                      	document.getElementById('signUpMail2').value = 'Invalid Email';
	                                     }
	                              }
	        
	                        }
                    	signUpAjax.send(null);
        }
		function sendSignUp3(){
                	var mail = document.getElementById('signUpMail3');
                        signUpAjax = new ajaxObject();
                        var pageCall="caller/suscribe.php?email="+mail.value;
                        //alert(pageCall);
	                        signUpAjax.open("GET",pageCall,true);
	                        signUpAjax.onreadystatechange=function() {
	                              if (signUpAjax.readyState==4) {
	                                     eval("vector ="+signUpAjax.responseText);
	                                     //alert(signUpAjax.responseText);
	                                     if(vector["error"]["id"] == "0"){//No errors occured
	                                           //location.href=sPath;
	                                           mail.value="Email Address";
	                                           
	            
	                                     }else{
	                                      	document.getElementById('signUpMail3').value = 'Invalid Email';
	                                     }
	                              }
	        
	                        }
                    	signUpAjax.send(null);
        }
