function Initdetailproduct (ProductCode, Abstractcode, Amount, Size, SearchType)
{
$j. Post ("Newproducthandle.aspx", {productcode:productcode, searchtype:searchtype}, function (data) {
eval (data);
var productgroupid = document.getElementById ("Productgroupid"). Value;
if (Productgroupid = = "+" | | productgroupid = = "601" | | productgroupid== "602")
{
Mwidth = 95;
mheight=80;
Radio = 2.58;
Isneck = true;
}
if (Showproduct (ProductCode, True))
{
Observe_pic ();
Setproduct (Abstractcode);
document.getElementById ("Amount"). Value=amount;
Display_balance (2);
document.getElementById ("Sizelist"). Value=size;
Display_balance (1);
document.getElementById ("buy"). Style.display = "None";
document.getElementById ("Save"). Style.display = "block";
document.getElementById ("Pmonogramlist"). Style.display = "None";
}
});
}
function Initproduct (ProductCode)
{
$j. Post ("Newproducthandle.aspx", {Productcode:productcode}, function (data) {
eval (data);
var productgroupid = document.getElementById ("Productgroupid"). Value;
if (Productgroupid = = "+" | | productgroupid = = "601" | | productgroupid== "602")
{
Mwidth = 95;
mheight=80;
Radio = 2.58;
Isneck = true;
}
if (Showproduct (ProductCode, True))
{
Updatesizelist ();
Observe_pic ();
Setpreviewwrappos ();
}
});
}
function Initsearchproduct (ProductCode, SearchType, Strsearch)
{
$j. Post ("Newproducthandle.aspx", {Productcode:productcode,searchtype:searchtype,strsearch:strsearch}, function ( Data) {
eval (data);
var productgroupid = document.getElementById ("Productgroupid"). Value;
if (Productgroupid = = "+" | | productgroupid = = "601" | | productgroupid== "602")
{
Mwidth = 95;
mheight=80;
Radio = 2.58;
Isneck = true;
}
if (Showproduct (ProductCode, True))
{
Updatesizelist ();
Observe_pic ();
Setpreviewwrappos ();
}
});
}
function Initclearanceproduct (ProductCode, SearchType)
{
$j. Post ("Newproducthandle.aspx", {productcode:productcode, searchtype:searchtype}, function (data) {
eval (data);
var productgroupid = document.getElementById ("Productgroupid"). Value;
if (Productgroupid = = "+" | | productgroupid = = "601" | | productgroupid== "602")
{
Mwidth = 95;
mheight=80;
Radio = 2.58;
Isneck = true;
}
if (Showproduct (ProductCode, True))
{
Updatesizelist ();
Observe_pic ();
Setpreviewwrappos ();
}
});
}
function Initdutchauctionproduct (ProductCode, Searchtype,productid)
{
$j. Post ("Newproducthandle.aspx", {productcode:productcode, Searchtype:searchtype,productidroductid}, function ( Data) {
eval (data);
var productgroupid = document.getElementById ("Productgroupid"). Value;
if (Productgroupid = = "+" | | productgroupid = = "601" | | productgroupid== "602")
{
Mwidth = 95;
mheight=80;
Radio = 2.58;
Isneck = true;
}
if (Showproduct (ProductCode, True))
{
Updatesizelist ();
Observe_pic ();
}
});
}
</script>