
/* $Id: main.js 20551 2008-11-03 00:18:20Z jcurnow $ */
function viewPricing(pricing_url) {
    var owin = window.open(pricing_url, 'pricing', 'width=650,height=580');
    owin.focus();
}

function alertTc() {
    if(accepted!=1) {
        alert("You must read, and agree to the Terms & Conditions before continuing.");
        return false;
    }
}

function viewHistory(e) {
    if (arguments[1]) {
        var type = arguments[1];
    } else {
        var type = 0;
    }
    var oWin = openWindow(e, package_root + '/terms_history.php?type=' + type, 350, (ie ? 200 : 240),'resizable=yes, scrollbars=yes');
    oWin.focus();
}

function viewTerms(e) {
    var oWin = openWindow(e, package_root + '/terms_conditions.php', 600,450,'resizable=yes, scrollbars=yes');
    oWin.focus();
}
