// <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
function correctPNG() 
   {
   for(var i=0; i<document.images.length; i++)
      {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText 
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle        
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
         img.outerHTML = strNewHTML
         i = i-1
         }
      }
   }
window.attachEvent("onload", correctPNG);


function XMLhttp(){
 this.xmlHttp = null;
 this.init();
}

XMLhttp.prototype = {
 init : function(){
  try{ 
   this.xmlHttp=new XMLHttpRequest(); 
  }catch(e){ 
   try{ 
    this.xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); 
   }catch(e){ 
    this.xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 
   } 
  } 
 },
 get : function(url){
  var nowtime = new Date().getTime();
  url += (url.indexOf("?") >= 0) ? "&nowtime=" + nowtime : "?nowtime=" + nowtime; 
  ajax.xmlHttp.open("GET",url,true);
  ajax.xmlHttp.setRequestHeader("Content-Type","text/html");
  ajax.xmlHttp.onreadystatechange = function(){	
    if(ajax.xmlHttp.readyState==4&&ajax.xmlHttp.status==200){
     //getElementsByTagName("ajax").data.firstChild.nodeValue);
	
     if(is_ie){
		flag=ajax.xmlHttp.responseText; 		
		if(flag=="true"){
			 alert("sucees!");
			 document.getElementById("email").value="请输入Email立即订阅电子报";
		}	   
     }
    }
   };
  ajax.xmlHttp.send(null);
 }
}
var ajax = new XMLhttp();

 

var agt = navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));