// let's be sure we're not in a frame
//if (self.parent.frames.length != 0) {
//    self.parent.location=document.location;
//}
function setCookie(cookieName,cookieVal, nDays) {
    var today = new Date();
    var expire = new Date();
    if ((nDays=="") || (nDays==0)) nDays=1;
    expire.setTime(today.getTime() + 3600000*24*nDays);
    document.cookie = cookieName+"="+escape(cookieVal)+";expires="+expire.toGMTString();
}

function popforex() {
    var newwin = window.open("/bits/forex_pop.php", "forex", 
    "height=200,width=480,left=150,top=150,scrollbars,resizable");
}

function zoom() {
        window.open("{$zoomUrl}", "Zoom", 
            "toolbar=0,location=0,directories=0,status=0,menubar=0," +
            "scrollbars=1,resizable=1,width=850,height=500,copyhistory=0");
}
