// <!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// Get base url
url = document.location.href;
xend = url.lastIndexOf("/") + 1;
var base_url = url.substring(0, xend);

function currency (id, country) {

		url = base_url + 'currency.php?id=' + id;

		frmElement = document.getElementById('currency-select');
		currencyType = frmElement.item(frmElement.selectedIndex).value;

        // Does URL begin with http?
        if (url.substring(0, 4) != 'http') {
                url = base_url + url
        }
		
		url = url + '&currency=' + currencyType + '&country=' + country;


        // Create new JS element
        var jsel = document.createElement('SCRIPT');
        jsel.type = 'text/javascript';
        jsel.src = url;

        // Append JS element (therefore executing the 'AJAX' call)
        document.body.appendChild (jsel);
}

function open_window() {
	var load = window.open('card_info.html','','scrollbars=no,menubar=no,height=400,width=650,resizable=yes,toolbar=no,location=no,status=no');
}
// -->