function GetAjaxStr(strurl)
{
	var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	xmlhttp.open("Get",strurl,false);
	xmlhttp.send();
	var strret=unescape(xmlhttp.ResponseText);
	return strret;
}
/*var ReAjax = function()
{}
ReAjax.prototype.GetHttpRequest = function()
{
	var reObj="";
	if ( window.XMLHttpRequest ){
		reObj= new XMLHttpRequest() ;
	}
	else if ( window.ActiveXObject ){	
		try{
			reObj=new ActiveXObject("MsXml2.XmlHttp") ;
		}
		catch(e){
			reObj=new 	ActiveXObject("microsoft.XmlHttp")
		}
	}
	return reObj;
}

ReAjax.prototype.LoadUrl = function( urlToCall,altDiv,valInput)
{	
	var oReAjax = this ;
	var oAjaxHttp = this.GetHttpRequest() ;
	oAjaxHttp.open( "GET", urlToCall, true) ;
	oAjaxHttp.onreadystatechange=function()
	{
		if(oAjaxHttp.readyState==4)
		{
			document.getElementById(altDiv).innerHTML=oAjaxHttp.responseText;
		}
	}
	oAjaxHttp.send( null ) ;
}
ReAjax.prototype.LoadUrl2 = function( urlToCall)
{	
	alert("aaaaaaa")
	var oReAjax = this ;
	var oAjaxHttp = this.GetHttpRequest() ;
	oAjaxHttp.open( "GET", urlToCall, false) ;
	oAjaxHttp.send( null );
	var result=oAjaxHttp.responseText;
	return result;
}*/
function send_Pricerequest(url,obj) 
  {
	http_Pricerequest = false;
	
	if(window.XMLHttpRequest) 
	{ 
		http_Pricerequest = new XMLHttpRequest();
		if (http_Pricerequest.overrideMimeType) 
		{
			http_Pricerequest.overrideMimeType("text/xml");
		}
	}
	else if (window.ActiveXObject) 
	{ 
		try 
		{
			http_Pricerequest = new ActiveXObject("Msxml2.XMLHTTP");
		} 
		catch (e) 
		{
			try 
			{
				http_Pricerequest = new ActiveXObject("Microsoft.XMLHTTP");
			} 
			catch (e) 
			{}
		}
	}
	if (!http_Pricerequest) 
	{ 
		return false;
	}
		http_Pricerequest.onreadystatechange = obj;

		http_Pricerequest.open("GET", url, true);
		http_Pricerequest.send(null);
}
  
function ShowResult()
{
  	  
	var rText="";
	if (http_Pricerequest.readyState == 4) 
	{
		
		if (http_Pricerequest.status == 200) 
		{
			rText=http_Pricerequest.responseText.replace(/^\s*/,"");

			if (rText=="")
			{
			   rText="<div class='w'>-<font color='#ca4206'><b>Price Comparison</b></font> shows current price of selected websites including wowgoldpvp once you choose your game in fast order blank on the left.<br><div style='padding-top:5px;'></div>-<font color=#ca4206><b>Fast Order</b></font> allows you to quickly find and order products without entering Product Categories. </div>";
			}
			
			document.getElementById("ShowDiv").innerHTML=rText;
		}	
	}
  }

  function getSerPriceInfo(GameID)
  {
  	//GameID 游戏ID  SerID 服务器ID
	//if (str!="" && str!=0)
	//{
		if (GameID!="")
		{
			send_Pricerequest("/ajax/ComparePrice.asp?GameID="+GameID+"&timestamp=" + new Date().getTime(),ShowResult);	
		}
	//}
  }

  function GetPrice(str)
  //str 选择的游戏ID
  {
	if (str!="" && str!=0)
	{
		send_Pricerequest("/ajax/ComparePrice.asp?GameID="+str+"&timestamp=" + new Date().getTime(),ShowResult);
	}
	else
	{
		document.getElementById("ShowDiv").innerHTML="<div class='w'>-<font color='#ca4206'><b>Price Comparison</b></font> shows current price of selected websites including wowgoldpvp once you choose your game in fast order blank on the left.<br><div style='padding-top:5px;'></div>-<font color=#ca4206><b>Fast Order</b></font> allows you to quickly find and order products without entering Product Categories. </div>";
	}
  }

function getPlList(GameID,Currenty,Action)
{
	if (GameID!="")
	{
		send_Pricerequest("/ajax/getPlList.asp?Big_ID="+GameID+"&Currenty="+Currenty+"&action="+Action+"&timestamp=" + new Date().getTime(),ShowResultP);	
	}

}

function getRsPl(Currenty,Action)
{
	if (Currenty!="")
	{
		//alert("/ajax/getRsPl.asp?Currenty="+Currenty+"&Action="+Action+"&timestamp=" + new Date().getTime());
		send_Pricerequest("/ajax/getRsPl.asp?Currenty="+Currenty+"&Action="+Action+"&timestamp=" + new Date().getTime(),ShowResultP);	
	}

}

function getPlingList(GameID,Currenty,Cid,Action)
{
	if (GameID!="")
	{
		send_Pricerequest("/ajax/getPlList.asp?Big_ID="+GameID+"&Currenty="+Currenty+"&action="+Action+"&cid="+Cid+"&timestamp=" + new Date().getTime(),ShowResultP);	
	}

}

function getPList(gameid,ServerID,Currenty)
{
	if (ServerID!="")
	{
		
		send_Pricerequest("/ajax/getPList.asp?gameid="+gameid+"&ServerID="+ServerID+"&Currenty="+Currenty+"&timestamp=" + new Date().getTime(),ShowResultP);	
	}

}

function getCart(id,Currenty,uid)
{
	send_Pricerequest("/ajax/getCart.asp?id="+id+"&currencys="+Currenty+"&uid="+uid+"&timestamp=" + new Date().getTime(),ShowResultP);	
}

function getAccountList(GameID,Currenty,Page)
{
	if (GameID!="")
	{
		send_Pricerequest("/ajax/getAccountList.asp?Big_ID="+GameID+"&Currenty="+Currenty+"&Page="+Page+"&timestamp=" + new Date().getTime(),ShowResultP);	
	}
}

function ShowResultP()
{
  	  
	var rText="";
	
	if (http_Pricerequest.readyState == 4) 
	{
		if (http_Pricerequest.status == 200) 
		{
			rText=http_Pricerequest.responseText.replace(/^\s*/,"");
			document.getElementById("ShowDiv").innerHTML=rText;
		}	
	}
}

function getUserLogin()
{
	send_Pricerequest("/ajax/getUserLogin.asp"+"?timestamp=" + new Date().getTime(),ShowResultUser);	
}

function ShowResultUser()
{
  	  
	var rText="";
	
	if (http_Pricerequest.readyState == 4) 
	{
		if (http_Pricerequest.status == 200) 
		{
			
			rText=http_Pricerequest.responseText.replace(/^\s*/,"");
			document.getElementById("ShowUserDiv").innerHTML=rText;
		}	
	}
}