function addbask(shopid) {
    q=document.getElementById("id"+shopid).value;
    if(q=="") q=1;
    var url="/addbask.php?shopid="+shopid+"&q="+q;
    window.open(url,"AvtoShop","width=10,height=10");
}

function hbask (q, money) {
        document.write("<tr onClick=\"javascript: window.location='http://www.avtoshop.net/basket/'\" style=\"cursor: hand;\"><td class='leftmenu'><strong><a href=/basket/<?php echo $clientid; ?>>Âàø çàêàç</a></strong></td><td>");
        document.write("<table width='100%' cellpadding='0' cellspacing='0' style='padding-left: 10px;'>");
        document.write("<tr><td><small>åä.</small></td><td><small>ñóììà</small></td></tr><tr>");
        document.write("<td class='bcell' style='border-right: solid; border-width: 1px;' id='baskq'>"+q+"</td>");
        document.write("<td class='bcell' id='baskm'>"+money+" ð</td>");
        document.write("</tr></table></td></tr><tr onClick=\"javascript: window.location='http://www.avtoshop.net/basket/'\" style=\"cursor: hand;\"><td colspan=2 align=center><b><a href=/basket/>Îôîðìèòü çàêàç</a></b></td></tr>");
}

function do_url(msg, url) {
                d=window.confirm (msg);
                if (d==true) {
                        document.location = url;
                } else {
                        return false;
                }
}



