﻿// JScript 文件

//显示详细道具信息

function ShowInfo(id)
{
	if (id > 0)
	{
		window.open("PropertyInfo.aspx?id="+id,"PropShow","width=350,height=220,status=no,toolbar=no,menubar=no,location=no");
	}
}


//购买道具
function BuyProp(id)
{
	if (id > 0)
	{
	    //debugger;
	    //parent.frames["car_info"].src = "../payflow/MyCartStatistic.aspx?id="+id ;
		window.open("../payflow/MyCartStatistic.aspx?id="+id,"car_info");
	}
}

function RefreshListContent( categoryID , boothID , isAll)
{
    var all = 0;
    if (isAll == true) all =1;
  
    if(frames["iid"].location.href.toLowerCase().indexOf("productshow/productlist.aspx") == -1 )
    {   
        frames["iid"].location.href = location.protocol +'//'+ location.host + "/productShow/productlist.aspx?all=" + all + "&cid=" + categoryID + "&bid=" + boothID  ; 
    }
    else
    {        
        //frames["iid"].document.getElementById("TextBox1").value = categoryID+","+boothID+","+all + ",1" ;
        //frames["iid"].__doPostBack('TextBox1','');
frames["iid"].location.href = location.protocol + '//' + location.host + "/productShow/productlist.aspx?all=" + all + "&cid=" + categoryID + "&bid=" + boothID; 
        
        frames["iid"].ReSizeMe();
    }
}

function RefreshOrderContent()
{
    
    if (frames["iid"].location.href.toLowerCase().indexOf("payflow/mycartinfo.aspx") > 0 )
        frames["iid"].__doPostBack('Button1','');
}

function RefreshListContent2( categoryID , boothID , isAll , page )
{
    var all = 0;
    if (isAll == true) all =1;   
     
    //document.getElementById("TextBox1").value = categoryID+","+boothID+","+all + "," + page;
    //__doPostBack('TextBox1','');
location.href = location.protocol + '//' + location.host + "/productShow/productlist.aspx?all=" + all + "&cid=" + categoryID + "&bid=" + boothID + "&page=" + page; 
    
   
    
}
