<!-- // hide JS from older browsers
function getCookie(Name) {
// from Netscape's Client-side JS Guide
// http://developer.netscape.com/docs/manuals/js/client/jsguide/index.htm
   var search = Name + "="
   if (document.cookie.length > 0) { // if there are any cookies
      offset = document.cookie.indexOf(search) 
      if (offset != -1) { // if cookie exists 
         offset += search.length 
         // set index of beginning of value
         end = document.cookie.indexOf(";", offset) 
         // set index of end of cookie value
         if (end == -1) 
            end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      } 
   }
}

// Sets session cookie values (no expiration date)
//
function setSessionCookie(name, value) {
// also from Netscape's Client-side JS guide 
   document.cookie = name + "=" + escape(value) + "; PATH=/";
}

function openpopup(){
    var url="<% $OUT .= URL('promo'); %>";
    var cook = getCookie('popups');

    if (cook == 'seen') { 
    // do nothing
    }
    else {
      winpops=window.open(url,"","width=300,height=220,") ;
      setSessionCookie('popups', 'seen');
    }

}

function openpop(url, w, h, cookname){
    var cook;
    if (cookname) {
       cook = getCookie(cookname);
    }

    if (cook == 'seen') { 
    // do nothing
    }
    else {
      var args = ''; 
      if (w > 0) {	
         args = 'width=' + w + ',';
      }
      if (h > 0) {
         args =  args + 'height=' + h + ',';
      }
      winpops=window.open(url,"", args) ;
      if (cookname) {
         setSessionCookie(cookname, 'seen');
      }
    }

}

function CurrencyConverter(p_price)
{ 
    var cur_loc = 'http://www.fieba.net/converter?fromCurrency=USD&toCurrency=EUR&inputAmount=' + p_price ;
    PopupWindow = window.open ('', 'PopupWindow', 'toolbar=0,location=0,resizable=1,height=220,width=350');
    PopupWindow.location.href = cur_loc;
    PopupWindow.focus;
    return false;
}

// --> 