function addCount(id, url)
{
    var u, c, x = $("countofitem"+id).value;
    if(x<=0) x = 1;
    c = "." + x + ".htm";
    u = url.replace(/\.1\.htm$/,  c);
    location.replace(u);
}
