function doSubmit(s){
    var vform = document.createElement("form"); 
    vform.method="POST";  
    vform.id="frmOrder";
    document.body.appendChild(vform);   
    var newElement=document.createElement("input");
    newElement.name="i"
    newElement.type="hidden"; 
    newElement.value=s
    vform.appendChild(newElement);
    vform.action="/order/";
    vform.target="_blank";
    vform.submit();
}

function goto(url) {
    var a = document.createElement("a");
    if(!a.click) { ;
        window.location = url;
        return;
    }
    a.setAttribute("href", url);
    a.style.display = "none";
    document.body.appendChild(a);
    a.click();
}

function u(code)
{
    code=unescape(code);
    var c=String.fromCharCode(code.charCodeAt(0)-code.length);
    for(var i=1;i<code.length;i++){
        c+=String.fromCharCode(code.charCodeAt(i)-c.charCodeAt(i-1));
    }
    return c;
}
