/* ---------------------------------------------------------------------------------- -- Hot Spot Sporting Script -- -- Hot Spot Sporting, Inc. Copyright 2001-2003 - www.HotSpotSporting.com -- -- -- -- Fishing Reports Script -- -- -- -- You may freely use this script on your site as long as you: -- -- 1) Notify Warden@HotSpotSporting.com of which site you use the script on. -- -- 2) Keep the above script line of credit to the owning company and author. -- -- 3) Display the link with the script on your web page. -- -- -- -- You can easily change fonts and colors by changing the style attributes -- -- -- -- If you have any questions contact Warden@HotSpotSporting.com -- -- Version française par muffler (www.boozone.com) -- ---------------------------------------------------------------------------------- */ var hsbr="unknown"; if (document.all) hsbr="ie"; else if (document.layers) hsbr="n4"; else if (document.getElementById) hsbr="n6"; // default look if ( !hsbgcolor ) var hsbgcolor="#ffffff"; if (!hsbordercolor ) var hsbordercolor="#0600ff"; if (!hsfontcolor ) var hsfontcolor="#0004aa"; if (!hsfontface ) var hsfontface="Arial"; if (!hsfontsize ) var hsfontsize="1"; function hssetscale() { var hsw1 = document.hsformcalc.elements[0].checked; var hsw2 = document.hsformcalc.elements[1].checked; if ( hsw2 == true ) var hsx2 = "centimêtres"; else var hsx2 = "pouces"; if ( hsbr == "ie" ) { document.all.hslscale.innerText=hsx2; document.all.hsgscale.innerText=hsx2; } else if ( hsbr == "n4" ) { } else if ( hsbr == "n6" ) { var hsx = document.getElementById("hslscale"); hsx.innerHTML = hsx2; var hsx = document.getElementById("hsgscale"); hsx.innerHTML = hsx2; } hscalcfish(); } function hscalcfish() { var hsw1 = document.hsformcalc.elements[0].checked; var hsw2 = document.hsformcalc.elements[1].checked; var hsa1 = document.hsformcalc.elements[2].value; var hsa2 = document.hsformcalc.elements[3].value; var hsa5 = document.hsformcalc.hsa3[document.hsformcalc.hsa3.selectedIndex].value; var hsa7 = document.hsformcalc.hsa3[document.hsformcalc.hsa3.selectedIndex].text; if ( ( hsa1-0 < 0) || (hsa5-0 == 0 ) ) return false; else if (hsa2-0 == 0 ) hsa2 = (hsa1-0)*.58; var hsx=1; if (hsw2 == true) hsx=2.54; if (hsa5 == "1") var hsprod = Math.round(((hsa1/hsx * hsa1/hsx * hsa2/hsx) / 1200)*Math.pow(10,2))/Math.pow(10,2); if (hsa5 == "2") var hsprod = Math.round((((hsa1/hsx) * (hsa1/hsx) * (hsa1/hsx)) / 2700)*Math.pow(10,2))/Math.pow(10,2); if (hsa5 == "3") var hsprod = Math.round(((hsa1/hsx * hsa1/hsx * hsa1/hsx) / 3500)*Math.pow(10,2))/Math.pow(10,2); if (hsa5 == "4") var hsprod = Math.round(((hsa1/hsx * hsa1/hsx * hsa1/hsx) / 1200)*Math.pow(10,2))/Math.pow(10,2); if (hsa5 == "5") var hsprod = Math.round(((hsa1/hsx * hsa2/hsx * hsa2/hsx) / 800) *Math.pow(10,2))/Math.pow(10,2); if (hsa5 == "6") var hsprod = Math.round(((hsa1/hsx * hsa2/hsx * hsa2/hsx) / 777) *Math.pow(10,2))/Math.pow(10,2); if ( hsw1 == true ) document.hsformcalc.hsa4.value="Votre "+hsa7+" de "+hsa1+" pouces pèse "+(parseInt(hsprod*100)/100)+" lbs."; else document.hsformcalc.hsa4.value="Votre "+hsa7+" de "+hsa1+" cm pèse "+(parseInt(hsprod*45)/100)+" kg"; } if (hsbr != "n4" ) var hswid=40; else var hswid=25; var hsh="