// ---------------------------------------------------------------------------- function ShowCSMenu(show) { var CSMenu = document.getElementById("CSMenu"); if (show) { CSMenu.style.display = "block"; } else { CSMenu.style.display = "none"; } } // ---------------------------------------------------------------------------- function EmbedFlash(swfName, swfWidth, swfHeight) { document.write('\n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write(' \n'); document.write('\n'); } // ---------------------------------------------------------------------------- function ShowOrHide(objId) { var obj = document.getElementById(objId); if (obj.style.display == "block") { obj.style.display = "none"; } else { obj.style.display = "block"; } } // ---------------------------------------------------------------------------- function Show(objId) { var obj = document.getElementById(objId); obj.style.display = "block"; } // ---------------------------------------------------------------------------- function Hide(objId) { var obj = document.getElementById(objId); obj.style.display = "none"; } // ---------------------------------------------------------------------------- function GS_round(float_nb, after_float) { fl=Math.pow(10,after_float); rv=(Math.round(float_nb*fl))/fl; return (rv); } // ---------------------------------------------------------------------------- function Money(float_number, currency) { if (!currency) currency = "€"; if (GS_round(Math.abs(float_number)+0, 2) != 0) factor = GS_round(float_number+0, 2) / Math.abs(GS_round(Math.abs(float_number)+0, 2)); else factor = 1; result = GS_round(Math.abs(float_number)+0, 2); result += ""; if (result.indexOf(".", 0) == -1) result += ".00"; floatExpl = result.split("."); result = ""; switch (currency) { case "€": case "EUR": float = ","; separator = " "; currencyplace = "[-][n] €"; break; case "$": case "CAD": case "USD": float = "."; separator = ","; currencyplace = "[-] $[n]"; break; case "§": case "SIM": float = ","; separator = " "; currencyplace = "[-][n] §"; break; case "£": case "GBP": float = "."; separator = ","; currencyplace = "[-] £[n]"; break; } for (i=0; i0) result = separator + result; result = floatExpl[0].substr(floatExpl[0].length -i-1, 1) + result; } if (floatExpl[1].length == 1) floatExpl[1] += "0"; result += (float + floatExpl[1]); result = currencyplace.replace("[n]", result); if (factor < 0) result = result.replace("[-]", "-"); else result = result.replace("[-]", ""); return result; }