function addCommas(nStr) { nStr += ''; x = nStr.split('.'); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ',' + '$2'); } return x1 + x2; } function ShowReg(op) { if (op == "1") { // document.getElementById("setup").innerHTML = 25000; // document.getElementById("program").innerHTML = 0; // document.getElementById("mainten").innerHTML = 0; // document.getElementById("totalpeple").innerHTML = 0; document.getElementById('peple').style.visibility = 'hidden'; // document.getElementById('peple').value=''; findtotal(); } if (op == "2") { document.getElementById("setup").innerHTML = 55000; document.getElementById("program").innerHTML = 99000; document.getElementById("mainten").innerHTML = 0; document.getElementById("totalpeple").innerHTML = 0; document.getElementById('peple').style.visibility = 'hidden'; document.getElementById('pic').innerHTML=''; findtotal(); } if (op == "3") { document.getElementById("setup").innerHTML = 0; document.getElementById("program").innerHTML = 0; document.getElementById("mainten").innerHTML = 0; document.getElementById('peple').style.visibility = 'visible'; document.getElementById('peple').value=''; document.getElementById('pic').innerHTML=''; findtotal(); } if (op == "4") { document.getElementById("setup").innerHTML = 0; document.getElementById("program").innerHTML = 0; document.getElementById("totalpeple").innerHTML = 0; document.getElementById("mainten").innerHTML = 14850; document.getElementById('peple').style.visibility = 'hidden'; document.getElementById('pic').innerHTML=''; findtotal(); } if (op == "5") { document.getElementById("setup").innerHTML = 25000; document.getElementById("program").innerHTML = 0; document.getElementById("mainten").innerHTML = 0; document.getElementById("totalpeple").innerHTML = 0; document.getElementById('peple').style.visibility = 'visible'; document.getElementById('peple').value=''; document.getElementById('pic').innerHTML='<img src="larg.jpg">'; findtotal(); } if (op == "6") { document.getElementById("setup").innerHTML = 18000; document.getElementById("program").innerHTML = 0; document.getElementById("mainten").innerHTML = 0; document.getElementById("totalpeple").innerHTML = 0; document.getElementById('peple').style.visibility = 'visible'; document.getElementById('peple').value=''; document.getElementById('pic').innerHTML='<img src="midium.jpg">'; findtotal(); } if (op == "7") { document.getElementById("setup").innerHTML = 10000; document.getElementById("program").innerHTML = 0; document.getElementById("mainten").innerHTML = 0; document.getElementById("totalpeple").innerHTML = 0; document.getElementById('peple').style.visibility = 'visible'; document.getElementById('peple').value=''; document.getElementById('pic').innerHTML='<img src="small.jpg">'; findtotal(); } } function ShowReg2(op) { if (op == "1") { document.getElementById("totalhosting").innerHTML = 1000; findtotal(); } if (op == "2") { document.getElementById("totalhosting").innerHTML =2000; findtotal(); } if (op == "3") { document.getElementById("totalhosting").innerHTML =3000; findtotal(); } if (op == "4") { document.getElementById("totalhosting").innerHTML =4000; findtotal(); } if (op == "5") { document.getElementById("totalhosting").innerHTML =5000; findtotal(); } if (op == "6") { document.getElementById("totalhosting").innerHTML =6000; findtotal(); } if (op == "7") { document.getElementById("totalhosting").innerHTML =7000; findtotal(); } if (op == "8") { document.getElementById("totalhosting").innerHTML =8000; findtotal(); } if (op == "9") { document.getElementById("totalhosting").innerHTML =9000; findtotal(); } if (op == "10") { document.getElementById("totalhosting").innerHTML =10000; findtotal(); } } function ShowReg4(op) { if (op == op) { document.getElementById("totalpeple").innerHTML =op*12*10 ; findtotal(); } } function ShowReg5(op) { if (op == op) { document.getElementById('year_register').style.visibility = 'visible'; } } function findtotal() { var total1 = document.getElementById('totalhosting').innerHTML *1; // var total3 = document.getElementById('totalpeple').innerHTML *1; var total4 = document.getElementById('setup').innerHTML *1;// var total5 = document.getElementById('program').innerHTML *1;// var total6 = document.getElementById('mainten').innerHTML *1;// var total = total1 + total3 + total4 +total5 +total6 ; var sum = total * 7 / 100; var totalsum = total + sum ; document.getElementById("total").innerHTML = addCommas(total); document.getElementById("sum").innerHTML = addCommas(sum); document.getElementById("totalsum").innerHTML = addCommas(totalsum); }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง