Note: You must be registered in order to post a reply.
T O P I C R E V I E W
novak
Posted - 12 Nov 2007 : 12:57:20 I would like add into script still one select so that it calucalion with other select together. I can hepl me anywhere?
<script language="javascript" type="text/javascript"> <!-- var isNS=document.layers?true:false; var isIE=(document.all!=null)||(navigator.userAgent.indexOf('MSIE')!=-1); var isDom2=document.getElementById; var fVers=parseFloat(navigator.appVersion); if (!isDom2 && ((isNS && fVers<4)||(isIE && fVers<4))) alert("Your browser is very old. Please upgrade it if you want to see this page correctly."); //--> </script> <script language="JavaScript"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> <script language="javascript" type="text/javascript" src="files/dhwe3x.js"></script> <link rel="stylesheet" type="text/css" href="files/calculator.css"> <SCRIPT type=text/javascript> var cenik = [ [1,650,600,550,550,500,380], [1,700,650,600,600,550,420], [1,720,670,620,620,570,450], [1,750,700,650,650,600,470], [1,790,740,690,690,640,484], [1,820,750,710,710,660,510], [1,1000,950,900,900,800,550], [1,1200,1100,1000,1000,900,600], [1,1290,1190,1090,1090,990,603], [1,820,750,710,710,660,510], [1,1250,1150,1050,1050,950,620], [1,1450,1250,1150,1150,1050,650], [1,1500,1400,1300,1300,1200,700], [1,1600,1500,1400,1400,1300,750], [1,1750,1650,1490,1490,1390,790], [1,1900,1800,1600,1600,1500,820], [1,2100,2000,1800,1800,1700,900], ] // 1-3, 4-7, 8-8, 8-14, 14-29 , function currencyFormat(n, currencySign, currencySignPosition, decimalDivider, thousandsDivider, notForField) { if (!isNaN(n)) { if (!currencySign) {currencySign = false;} if (!currencySignPosition) {currencySignPosition = false;} if (!decimalDivider) {decimalDivider = ".";} if (!thousandsDivider) {thousandsDivider = "";} if (!notForField) {notForField = false;}
n = Math.round(n*10)/10; n = n.toString(); nPart = n.split(".");
var x = nPart[0].substr(0, nPart[0].length%3); for (var i = 0; i < Math.floor(nPart[0].length/3); i++) { if ((nPart[0].length%3 != 0) || (i > 0)) { x += thousandsDivider; } x += nPart[0].substr((nPart[0].length%3) + (i*3), 3); }
if (!nPart[1]) {nPart[1] = "00";} if (nPart[1].length == 1) {nPart[1] += "0";} n = x; if (currencySign) { n = (currencySignPosition) ? currencySign + " " + n : n + " " + currencySign; } if (notForField) { while (n.indexOf(" ") != -1) { n = n.replace(" ", " "); } } } return n; } function Spocitej() { var priceType;