function NewWindow(url, width, height, event) {
    wnd = window.open(url, "C2Window", "width=" + width + ",height=" + height + ",toolbar=1,menubar=1,resizable=1,location=1,scrollbars=1,status=1");
    wnd.focus();
    event.returnValue = false;
    if (event.preventDefault)
        event.preventDefault();
}
function Privacy() {
    window.open("http://www.codetwo.com/regulations/privacy/", "", "height=500,width=450,location=0,menubar=0,status=1,toolbar=0,resizeable=1,scrollbars=1");
}
function Terms() {
    window.open("http://www.codetwo.com/regulations/order-terms/", "", "height=800,width=600,location=0,menubar=0,status=1,toolbar=0,resizeable=1,scrollbars=1");
}

function Download(strFile) {
    wnd = window.open("http://codetwo.pl/pages/download.php?file=" + strFile, "download", "height=220,width=450,location=1,menubar=0,status=1,toolbar=0,resizeable=1");
    wnd.focus();
}
function submitLink(theForm, theName, theValue) {

    document.MyForm.downloadType.value = theValue;
    document.MyForm.submit();
    window.open("http://www.codetwo.com/downloads/" + theValue);
}
function submitLinkLP(theForm, theName, theValue, theProductId) {

    document.MyForm.downloadType.value = theValue;
    document.MyForm.p.value = theProductId;
    document.MyForm.submit();
    window.open("http://www.codetwo.com/downloads/" + theValue);
}

function Download(theValue) {

    window.open("http://www.codetwo.pl/downloads/" + theValue);
}

function submitLinkNew(theForm, theName, theValue, campId, referrer, sts_param) {

    //document.MyForm.submit();
    var link = "http://download.codetwo.com/";
    if (campId != '')
        link = link + campId + "/";
    link = link + theValue + "?w=1&r=" + referrer + sts_param;

    window.open(link);
}

function submitLinkLPNew(theForm, theName, theValue, theProductId, campId, referrer, sts_param) {

    document.MyForm.downloadType.value = theValue;
    document.MyForm.p.value = theProductId;
    document.MyForm.submit();
    var link = "http://download.codetwo.com/";
    if (campId != '')
        link = link + campId + "/";
    link = link + theValue + "?w=1&r=" + referrer + sts_param;
    window.open(link);
}
