function showOrderNumberHint()
{
    infobox = showInfoBox($("ordernumber"), $("basic_help"));
}

function getCode()
{
    var url = "purchase/getcode.php";
    var myAjax = new Ajax(url,
    {
        method: 'get',
        onComplete: function(result)
        {
            var fx = new Fx.Style('getcodebutton', 'opacity',
            {
                duration:500
            });
            fx.start(1.0, 0);

            var fx2 = new Fx.Style('couponcode', 'opacity',
            {
                duration:500,
                onComplete:
                        function()
                        {
                            var code = result;
                            $("couponcodecontent").setHTML(code);
                            $("couponcode2").setHTML(code);

                            var fx3 = new Fx.Style('updatetext', 'opacity',
                            {
                                duration:500
                            });
                            fx3.start(0, 1.0);
                        }
            });
            fx2.start(0, 1.0);


        }
    }).request();

    //1.show loading bar
    //2. create code
    //3. show code
}