Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function oblicz() {
- var ile=document.getElementById("numer").value;
- var stan=document.getElementById("czek").checked;
- var koszt=0;
- if (stan==true && ile<=50)
- {
- koszt=ile*1.80;
- }
- else
- {
- if (stan==true && ile>50)
- {
- koszt=ile*0.80;
- }
- else
- {
- if (stan==false && ile<=50)
- {
- koszt=ile*2;
- }
- else
- {
- if (stan==false && ile>50)
- {
- koszt=ile*1;
- }
- }
- }
- }
- document.getElementById("tutaj").innerHTML="Koszt ogłoszeń: "+koszt+"PLN";
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement