function window_onload()
{
    Ajax_GetHttp() ;
 	GetXmlDom();
   // callServer( "/shop/ShopNewService.aspx?TypeID=1",BigType_Back) ;
   ExchangeValue();

}

function loadXMLfromFile(xmlFile)
{
    var xmlDoc;
    if(window.ActiveXObject)
    {
        xmlDoc    = new ActiveXObject('Microsoft.XMLDOM');
        xmlDoc.async    = false;
        xmlDoc.load(xmlFile);
    }
    else if (document.implementation&&document.implementation.createDocument)
    {
        xmlDoc    = document.implementation.createDocument('', '', null);
        xmlDoc.load(xmlFile);
    }
    else
    {
        return null;
    }
    
    return xmlDoc;
}

function ExchangeValue()
{
    //var obj=GetConID('tUSD');
    //obj.value = 
//        var obj=GetConID('tUSD'); 
//    obj.value="0.6931";
//        var obj=GetConID('tJPY'); 
//    obj.value="66.6736";
//        var obj=GetConID('tAUD'); 
//    obj.value="0.8599";
//        var obj=GetConID('tKRW'); 
//    obj.value="851.7363";
//        var obj=GetConID('tBRL'); 
//    obj.value="1.3527";
//        var obj=GetConID('tIDR'); 
//    obj.value="7125.5285";
//        var obj=GetConID('tCNY'); 
//    obj.value="4.531";
//        var obj=GetConID('tSGD'); 
//    obj.value="1"; 
}
function ChangeBigType() 
{
    
    var selGame = GetConID( "ShopSearch1_BigType" ) ;
    var  SmallType= GetConID( "ShopSearch1_SmallType" ) 

    if(selGame.value=="-1")
    {
        SmallType.options.length=0;
        SmallType.options[ 0 ] = new Option( 
			"Please Select" ,
			"-1" 
			) ;
    }
    else
    {
        callServer( "/shop/ShopNewService.aspx?Bid="+selGame.value+"&TypeID=2" ,SmallType_Back) ;
    }
}
function SmallType_Back()
{
	if ( Ajax_CheckState( xmlHttp ) )
	{
		var  SmallType= GetConID( "ShopSearch1_SmallType" ) ;
		
		var smalllist = LoadXml( xmlHttp.responseText ) .getElementsByTagName("smalltype");

		InitData( SmallType , smalllist ) ;
	}

}
function BigType_Back()
{
	if ( Ajax_CheckState( xmlHttp ) )
	{
		var  BigType= GetConID( "ShopSearch1_BigType" ) ;
		
		var biglist = LoadXml( xmlHttp.responseText ) .getElementsByTagName("bigtype");

		InitData( BigType , biglist ) ;
	}
}