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 = "600" | 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 = "600" | 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 = "600" | 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 = "600" | 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 = "600" | productGroupID = "601" | productGroupID = "602 ")
{
MWidth = 95;
MHeight = 80;
Radio = 2.58;
IsNeck = true;
}
If (showProduct (ProductCode, true ))
{
UpdateSizeList ();
Observe_pic ();
}
});
}
</Script>