﻿function SetCaptcha() {
    var control1 = $('img_SpecificCode1');
    var control = $('img_SpecificCode');
    if (control)
        control.onclick = this.RefreshCaptcha.bind(this, control);
    if (control1)
        control1.onclick = this.RefreshCaptcha.bind(this, control1);
}
function RefreshCaptcha() {
    var control = arguments[0]; //
    var control1 = $('img_SpecificCode');
    if (control.id == 'img_SpecificCode')
        control1 = $('img_SpecificCode1');
    new Ajax.Request("../VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
        {
            cmd: 2030
        }, // Add Parameters
        onSuccess: function (transport) {
            control.src = transport.responseText;
            control1.src = transport.responseText;
        },
        onFailure: function () { alert(sError); return false; } // Event Failure --> do...     

    });

}

function SetCaptcha111(id) {
    if ($(id))
        $(id).onclick = this.RefreshCaptcha.handle(this, $(id));
}
function Addtocart(pid, txt_qty) {

    var qty = 1;
    if ($(txt_qty))
        qty = $(txt_qty).value;
    if (isNaN(qty) == true || qty <= 0)
        qty = 1;
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
        {
            cmd: 1,
            ProductID: pid,
            Qty: qty
        }, // Add Parameters
        onSuccess: function (transport) {
            window.location = window.location;

        },
        onFailure: function () { alert("error"); return false; } // Event Failure --> do...     

    });

}
function Addtocart1(pid, Qty_TextBox, mainname, name, Max1,category) {

    var Qty = 1;
    if ($(Qty_TextBox.id.replace(mainname, name)) != null) {
        Qty = $(Qty_TextBox.id.replace(mainname, name)).value * 1.0;
    }
    if (Qty >= Max1)
        Qty = Max1;
    else if (Qty <= 0)
        Qty = 1;
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
        {
            cmd: 1,
            ProductID: pid,
            Qty: Qty,
            CategoryID: category
        }, // Add Parameters
        onSuccess: function (transport) {
            window.location = window.location;

        },
        onFailure: function () { alert("error"); return false; } // Event Failure --> do...     

    });

}
function assamechange(ParentControl, ParentControl2, GroupName, GroupName2, ControlID, event, SameControl, SameControl1, reload, flag) {
    ControlID = "oneStep_" + ControlID;
    if ($(ControlID)) {
        if (SameControl == null || SameControl == "") {
            var elem = document.getElementById(ParentControl);
            var elem2 = document.getElementById(ParentControl2);
            var childs = elem.getElementsByTagName("select");
            var childs2 = elem2.getElementsByTagName("select");
            for (i = 0; i < childs.length; i++) {
                if (childs[i].id.indexOf(GroupName) >= 0) {
                    childs[i].disabled = flag;
                    childs[i].options[childs[i].selectedIndex].text = childs2[i].options[childs2[i].selectedIndex].text;
                    childs[i].options[childs[i].selectedIndex].value = childs2[i].options[childs2[i].selectedIndex].value;
                }
            }
            childs = elem.getElementsByTagName("input");
            childs2 = elem2.getElementsByTagName("input");
            for (i = 0; i < childs.length; i++) {
                if (childs[i].id.indexOf(GroupName) >= 0) {
                    childs[i].disabled = flag;
                    if (childs[i].id != 'oneStep_txt_s_7')
                        childs[i].value = (flag == true) ? childs2[i].value : "";
                    else
                        if (flag == true)
                            childs[i].value = childs2[i].value;
                        else {
                            $('oneStep_sp_s_8').style.display = '';
                            $('oneStep_rq_s_8').enabled = true;
                            $('oneStep_rq_s_Code').enabled = true;
                            $('oneStep_sp_s_9').style.display = '';
                            $('oneStep_rq_s_9').enabled = true;                             
                        }
                }
            }
            childs = elem.getElementsByTagName("span");
            for (i = 0; i < childs.length; i++) {

                if ((childs[i].controltovalidate) && childs[i].controltovalidate.indexOf(GroupName) >= 0) {
                    if (flag == true)
                        childs[i].style.display = 'none';

                    childs[i].validationGroup = (flag == false) ? "Continue" : "GroupRegis";
                }
            }
            //SelectCountry('Country_grpShipping_ddl_Country_A5_005','gCountry_grpShipping_ddl_State_A5_005','Country_grpShipping_tbx_State_A5_005','Country_pnl_A5_L6_X6_Y1_045','rfv_Asterisk_A5_080','rev_CheckZipcode_A5_010','Country_pnl_A5_L6_X6_Y1_050','rfv_Asterisk_A5_085','grpShipping_tbx_Zipcode_A5_005',event);
            if (flag == true)
                $(ParentControl).style.display = 'none';
            else
                $(ParentControl).style.display = 'block';
        }
        else {
            flag = $(ControlID).checked;
            if ($(ControlID).checked == true) {
                SameControl = "oneStep_" + SameControl;
                SameControl1 = "oneStep_" + SameControl1;
                if ($(SameControl).type == "select-one") {
                    $(SameControl).disabled = flag;
                    $(SameControl).options[$(SameControl).selectedIndex].text = $(SameControl1).options[$(SameControl1).selectedIndex].text;
                    $(SameControl).options[$(SameControl).selectedIndex].value = $(SameControl1).options[$(SameControl1).selectedIndex].value;
                    if (SameControl == 'oneStep_cmb_s_6')
                        SelectCountry('oneStep_cmb_s_6', 'oneStep_cmb_s_7', 'oneStep_txt_s_7', 'oneStep_sp_s_8', 'oneStep_rq_s_8', 'oneStep_rq_s_Code', 'oneStep_sp_s_9', 'oneStep_rq_s_9', 'oneStep_txt_s_8', event);
                }
                else {
                    $(SameControl).disabled = flag;
                    $(SameControl).value = (flag == true) ? $(SameControl1).value : "";
                }
            }
        }
        if (reload == 1)
            ReloadShippingMethod('grpBilling_UC_UPS_A5_005_pnl_ShippingCompany', 'oneStep_cmb_s_6', 'oneStep_txt_s_7', 'oneStep_txt_s_8', event);

        return false;
    }
}
function SelectState(StateComboBox, StateTextBox) {
    var state = $(StateComboBox);
    if (state != null) {
        $(StateTextBox).value = state.options[state.selectedIndex].text;
        /*if(StateComboBox=='gCountry_grpBilling_ddl_State_A5_005')
        GetTotalValueInOneStepCheckOut('lbl_Tax_A5_010,lbl_GrandTotal_A5_010','1010,1014','gCountry_grpBilling_ddl_State_A5_005,',',',null);*/
    }
    else {
        state = document.getElementById('Country_grpRegistration_ddl_State_A5_005');
        if (state != null) {
            document.getElementById('Country_grpRegistration_tbx_State_A5_005').value = state.options[state.selectedIndex].text;
        }
    }

}
function parse(xml) {
    var doc = null;
    if (window.ActiveXObject) {
        doc = new ActiveXObject("Microsoft.XMLDOM");
        doc.async = "false";
        doc.loadXML(xml);
    }
    else {
        var parser = new DOMParser();
        doc = parser.parseFromString(xml, "text/xml");
    }
    return doc;
}
function SelectCountry(CountryControl, StateControl1, StateControl2, PanelZip, ReqZip, CheckZip, PanelPone, ReqPhone, ZipCode, event) {
    OnPleaseWait("AdminDvWait", event);
    var elem = $(CountryControl);
    if (elem != null) {
        new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
	    {
	        method: "post", // Setup Method            
	        parameters:
		    {
		        cmd: 2006,
		        ProductID: elem.options[elem.selectedIndex].value
		    },
	        asynchronous: true,
	        onSuccess: function (transport) { // Event Success --> do...		  		       
	            var dom = parse(transport.responseText);
	            var ndProduct = dom.getElementsByTagName('option');
	            elem = document.getElementById(StateControl1);

	            var display1 = '';
	            var display2 = true;
	            if (dom.childNodes[0].getAttribute('checkus') != 'True') {
	                display1 = 'none';
	                display2 = false;
	            }

	            if (ndProduct != null) {
	                if (elem.options[0].text != ndProduct[0].getAttribute('text')) {
	                    elem.innerHTML = "";
	                    for (var iNode = 0; iNode < ndProduct.length; iNode++) {
	                        var ndItem = ndProduct[iNode];

	                        var oOption = document.createElement("OPTION");

	                        elem.options.add(oOption);
	                        oOption.innerHTML = ndItem.getAttribute('text');
	                        oOption.value = ndItem.getAttribute('value');
	                    }
	                    document.getElementById(StateControl2).value = ndProduct[0].getAttribute('text');
	                    if (ZipCode != '') {
	                        $(ZipCode).value = '';
	                        if (display2 == false)
	                            ReloadShippingMethod('grpBilling_UC_UPS_A5_005_pnl_ShippingCompany', 'oneStep_cmb_s_6', 'oneStep_txt_s_7', 'oneStep_txt_s_8', event);
	                        else {
	                            $('grpBilling_UC_UPS_A5_005_pnl_ShippingCompany').innerHTML = '';
	                            $('oneStep_td_ShippingMethod').innerHTML = "$0.00";
	                            GetTotalValueInOneStepCheckOut('oneStep_lbl_TotalMoney2,oneStep_td_Tax,oneStep_td_ShippingMethod,oneStep_td_GrandTotal', 'oneStep_td_ShippingMethod,', ',', event);
	                        }
	                    }
	                }
	            }


	            var elems = $(PanelZip);
	            if (elems != null) {
	                elems.style.display = display1;
	                $(ReqZip).enabled = display2;
	                $(CheckZip).enabled = display2;
	            }
	            elems = $(PanelPone);
	            if (elems != null) {
	                elems.style.display = display1;
	                $(ReqPhone).enabled = display2;
	            }
	            OffPleaseWait("AdminDvWait");


	        },
	        onFailure: function () { alert(sError); OffPleaseWait("AdminDvWait"); } // Event Failure --> do...     
	    });

    }
    else
        OffPleaseWait("AdminDvWait");
}
function ReloadShippingMethod(Container, Country, State, ZipCode, event) {
    //Thay cho nay = tim kiem
    var product = document.getElementById(ZipCode);
    var s_Country = document.getElementById(Country);
    if (product != null) {
        if (product.value == '' && Country == "")
            document.getElementById('rfv_Asterisk_A4_002').style.display = "inline";
        else {
            OnPleaseWait("AdminDvWait", event);
            new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
		    {
		        method: "post", // Setup Method            
		        parameters:
			    {
			        cmd: 2016,
			        ProductID: s_Country.options[s_Country.selectedIndex].text,
			        sData: product.value
			    },
		        onSuccess: function (transport) { // Event Success --> do...
		            var response = transport.responseText;
		            if (response != "") {
		                $(Container).innerHTML = response;
		            }
		            DisplayShippingPrice('grpBilling_UC_UPS_A5_005_pnl_ShippingCompany', 'oneStep_td_ShippingMethod');
		            GetTotalValueInOneStepCheckOut('oneStep_lbl_TotalMoney2,oneStep_td_Tax,oneStep_td_ShippingMethod,oneStep_td_GrandTotal', 'oneStep_td_ShippingMethod,', ',', event);

		            OffPleaseWait("AdminDvWait");
		        },
		        onFailure: function () { alert(sError); OffPleaseWait("AdminDvWait"); } // Event Failure --> do...     		    
		    });
        }
    }
    return false;
}
function ReloadShippingMethod1(Container, Country, ZipCode, event) {
    //Thay cho nay = tim kiem
    var product = document.getElementById(ZipCode);
    var s_Country = document.getElementById(Country);
    if (s_Country == null || s_Country == '')
        s_Country = 'United States';
    if (product != null) {
        if (product.value == '')
            document.getElementById('rfv_Asterisk_A4_002').style.display = "inline";
        else {
            OnPleaseWait("AdminDvWait", event);
            new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
		    {
		        method: "post", // Setup Method            
		        parameters:
			    {
			        cmd: 2016,
			        ProductID: s_Country,
			        sData: product.value
			    },
		        onSuccess: function (transport) { // Event Success --> do...
		            var response = transport.responseText;
		            if (response != "") {
		                $(Container).innerHTML = response;
		            }
		            OffPleaseWait("AdminDvWait");
		        },
		        onFailure: function () { alert(sError); OffPleaseWait("AdminDvWait"); } // Event Failure --> do...     		    
		    });
        }
    }
    return false;
}

function GetTotalValueInOneStepCheckOut(ControlArray, InputArray, Split, event) {
    OnPleaseWait("AdminDvWait", event);
    var ValueArray = 0;
    if (InputArray != '') {

        var Values = ControlArray.split(Split);
        for (var i = 0; i < Values.length - 1; i++) {
            if ($(Values[i]) != null) {

                var temp = parseFloat($(Values[i]).innerHTML.replace('$', '').replace(',', '')) * 1.0;
                ValueArray = ValueArray + temp;
            }
        }

        $(Values[i]).innerHTML = "$" + ValueArray.toFixed(2);
    }
    OffPleaseWait("AdminDvWait");
}
function DisplayShippingPrice(ControlParent, Control) {
    //OnPleaseWait("AdminDvWait",event);    
    var elem = document.getElementById(ControlParent);
    var childs = elem.getElementsByTagName("input");
    value = "";
    for (var i = 0; i < childs.length; i++) {
        if (childs[i].type == "radio")
            if (childs[i].checked == true) {
                value = childs[i].value;
                break;
            }
    }
    $(Control).innerHTML = "$" + value.split(';')[value.split(';').length - 1];
    if ($(Control).innerHTML == "$")
        $(Control).innerHTML = "$0.00";
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
	    {
	        cmd: 2028,
	        ProductID: value
	    },
        onSuccess: function (transport) { // Event Success --> do...	           
            var response = transport.responseText;
        },
        onFailure: function () { alert(sError); } // Event Failure --> do...     		    
    });
    return false;
}
function GetTax(ControlValue, Container, Control, event) {
    OnPleaseWait("AdminDvWait", event);
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
	    {
	        cmd: 2029,
	        ProductID: $(ControlValue).value
	    },
        asynchronous: false,
        onSuccess: function (transport) { // Event Success --> do...
            var response = transport.responseText;
            if (response != "") {
                var value = 1.0 * $(Control).innerHTML.replace('$', '').replace(',', '');
                $(Container).innerHTML = "$" + (Math.round(response * value) / 100).toFixed(2);
            }
            OffPleaseWait("AdminDvWait");
        },
        onFailure: function () { alert(sError); OffPleaseWait("AdminDvWait"); } // Event Failure --> do...     		    
    });
    return false;
}
function Counter1(field, countfield, maxlimit) {
    if (field.value.length > maxlimit) {
        field.value = field.value.substring(0, maxlimit);

    } //name em dat khac id nen ben FF noi hiu,IE ko hiu
    else {
        countfield.value = maxlimit - field.value.length;
    }
}


function Display(id) {
    if ($(id).style.display == 'block')
        $(id).style.display = 'none';
    else
        $(id).style.display = 'block';
}
function ShowInfo(Control1, Control2, Control3) {
    var Values = Control1.split(';');
    for (var i = 0; i < Values.length; i++) {
        if ($(Values[i]) != null) {
            $(Values[i]).style.display = '';
        }
    }
    Values = Control2.split(';');
    for (var j = 0; j < Values.length; j++) {
        if ($(Values[j]) != null) {
            $(Values[j]).style.display = 'none';
        }
    }
    Values = Control3.split(';');
    for (var k = 0; k < Values.length; k++) {
        if ($(Values[k]) != null) {
            if (k == 0)
                $(Values[k]).attributes["class"].value = 'Description';
            else
                $(Values[k]).attributes["class"].value = 'Description1';

        }
    }
}
function ShowKey(Container, key, event) {
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
	    {
	        cmd: 10,
	        sData: key
	    },
        onSuccess: function (transport) { // Event Success --> do...
            var response = transport.responseText;
            if (response != "") {
                $(Container).innerHTML = response;
                $(Container).style.display = 'block';                
                toolTipMove(Container, event);

            }

        },
        onFailure: function () { alert(sError); } // Event Failure --> do...     		    
    });

}


function ShowInfo1(Container, LangID, StyleID, CategoryID, ProductID, ID, event) {
    if ($(Container).style.display == 'none') {

        new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
        {
            method: "post", // Setup Method            
            parameters:
	        {
	            cmd: 12,
	            Cat: CategoryID,
	            lg: LangID,
	            stl: StyleID,
	            Pro: ProductID,
	            theme: s_Theme
	        },
            onSuccess: function (transport) { // Event Success --> do...

                var response = transport.responseText;
                if (response != "") {
                    $(Container).innerHTML = response;
                    $(Container).innerHTML.evalScripts();
                    /*Element.update(Container, response);*/
                    var a = document.getElementsByClassName("DisplayNone");
                    for (var i = 0; i < a.length; i++) {
                        if (a[i].id != Container)
                            a[i].style.display = 'none';
                    }
                    $(Container).style.display = 'block';
                    if ($(ID) && $(ID).src)
                        $(ID).src = $(ID).src.replace("toggle_bullet2", "toggle_bullet1");
                    else {
                        toolTipMove(Container, event, ID);
                    }
                }
            },
            onFailure: function () { alert(sError); } // Event Failure --> do...     		    
        });

    }
    else {

        if ($(ID) && $(ID).src) {
            $(Container).style.display = 'none';
            $(ID).src = $(ID).src.replace("toggle_bullet2", "toggle_bullet1");
        }
        
    }
}
function ShowInfo2(Container, LangID, StyleID, CategoryID, ProductID, ID, event) {
    if ($(Container).style.display == 'none') {

        new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
        {
            method: "post", // Setup Method            
            parameters:
	        {
	            cmd: 14,
	            Cat: CategoryID,
	            lg: LangID,
	            stl: StyleID,
	            Pro: ProductID,
	            theme: s_Theme
	        },
            onSuccess: function (transport) { // Event Success --> do...
                var response = transport.responseText;
                if (response != "") {
                    $(Container).innerHTML = response;                                        
                    $(Container).style.display = 'block';                    
                    toolTipMove(Container, event, ID);
                }
            },
            onFailure: function () { alert(sError); } // Event Failure --> do...     		    
        });

    }
    else {
    }
}
var timer;
var timeout;
function getMousePosition(timeoutMilliSeconds) {
    // "one" attaches the handler to the event and removes it after it has executed once
    timeout = timeoutMilliSeconds;
    Event.observe(document.body, "mousemove", hander);
}
function hander(event) {
        window.mouseXPos = event.pageX;
        window.mouseYPos = event.pageY;
        if (isNaN(window.mouseXPos)) {
            window.mouseXPos = event.clientX + document.body.scrollLeft
                + document.documentElement.scrollLeft;
            window.mouseYPos = event.clientY + document.body.scrollTop
                + document.documentElement.scrollTop;
        }
        // set a timeout so the handler will be attached again after a little while
        clearTimeout(timer);
        timer = setTimeout("getMousePosition(" + timeout + ")", timeout);
    }

function RatingInit(d) {
    var c = "";
    for (var b = 1; b <= 10; b++) { c += "<li v='" + b + "' class='trl_" + (b % 2) + "' onmouseover='DisplayRating(this,\"" + d + "\")' onclick='SetRating(this,\"" + d + "\")'></li>" }
    $(d).innerHTML = c;
}
function DisplayRating(e,d) {
    e = e.attributes["v"].value;
    $(d).attributes["class"].value = "trl_rating cm_post_rating trl_rating_" + e;
}
function SetRating(e,d) {
    e = e.attributes["v"].value;
    $(d).attributes["class"].value = "trl_rating cm_post_rating trl_rating_" + e;
    $(d).attributes["v"].value = e;
    $("Product_VNVN_19_CommentsRating1_comment_rating").value = e;
}
function SetRating1(d) {
    $(d).attributes["class"].value = "trl_rating cm_post_rating trl_rating_" + $(d).attributes["v"].value;

}
function CommentList(Container, page, ProductID) {
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
        {
            method: "post", // Setup Method            
            parameters:
	        {
	            cmd: 100,	            
	            Pro: ProductID,
	            CP: page
	        },
            onSuccess: function (transport) { // Event Success --> do...
                var response = transport.responseText;
                if (response != "") {
                    $(Container).innerHTML = response;
                }

            },
            onFailure: function () { alert(sError); } // Event Failure --> do...     		    
        });
    }
       
function  addtocart2(Product_ID, lang)
{
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
        {
            cmd: 2,
            ProductID: Product_ID,
            lg: lang
        }, // Add Parameters
        onSuccess: function (transport) {
            var text = transport.responseText;
            //            $("Container_Detail").innerHTML = text;
            //            $("Container_Detail").style.display = 'block';
            //            var s = '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
            //            s += '<html>';
            //            s += '<head>';
            //            s += '<script type="text/javascript" src="' + s_Path + 'Script/prototype.js"></script>';
            //            s += '<script type="text/javascript" src="' + s_Path + 'Script/Javascript.js"></script>';
            //            s += '</head>';
            //            s += '<body topmargin=3 leftmargin=0 marginheight=3 marginwidth=0>';
            //            s += text;
            //            s += '</body>';
            //            s += '</html>';
            text = "<div class='abc' id='MainBox' onclick='ClosePopup();'></div><div class='abc1' id='ChildBox'>" + text + "</div>";
            var div = document.createElement("div");
            div.innerHTML = text;
            document.body.appendChild(div);
//            var left = (screen.width / 2);
//            var top = (screen.height / 2);
//            var targetWin = window.open('', '', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=' + 600 + ', height=' + 600 + ', top=' + top + ', left=' + left);
//            targetWin.document.writeln(s);
            //targetWin.opene = '';
            //            var win = new Window({ className: "mac_os_x", title: "Sample", width: 600, height: 600, destroyOnClose: true, recenterAuto: false });
            //            win.getContent().update(s); 
            //            win.showCenter();            


        },
        onFailure: function () { alert("error"); return false; } // Event Failure --> do...     

    });
    
}
function DisplayAll(classname, e, value, value1) {
    var elements = document.getElementsByClassName(classname);
    for (var i = 0; i < elements.length; i++) {
        if (classname != 'Display_Block') {
            elements[i].attributes["class"].value = 'Display_Block';
            e.value = value;
            e.attributes["onclick"].value = "DisplayAll('Display_Block',this,'" + value1 + "','" + value + "')";
        }
        else {
            elements[i].attributes["class"].value = 'Display_None';
            e.value = value;
            e.attributes["onclick"].value = "DisplayAll('Display_None',this,'" + value1 + "','" + value + "')";
        }
    }

}
function addtocart4(Product, ddl, txt_qty) {
    var qty = 1;
    if ($(txt_qty))
        qty = $(txt_qty).value;
    if (isNaN(qty) == true || qty <= 0)
        qty = 1;
    if ($(ddl))
        Product = $(ddl).options[$(ddl).selectedIndex].value;
    new Ajax.Request(s_Path + "VNVN_Web/VNVN_19_Server.aspx",
    {
        method: "post", // Setup Method            
        parameters:
        {
            cmd: 1,
            ProductID: Product,
            Qty: qty
        }, // Add Parameters
        onSuccess: function (transport) {
            window.location = window.location;

        },
        onFailure: function () { alert("error"); return false; } // Event Failure --> do...     

    });
}
