gelişmiş basketbol skorbord scripti (javascript)

Javascript kodları gelişmiş basketbol skorbord scripti (javascript) Hazır program kodları hakkında bilgi paylaş; HTML-Kodu: <!-- TWO STEPS TO INSTALL BASKETBALL SCOREBOARD: 1. Copy the coding into the HEAD of your HTML document ...
Cevapla
WebMasTer SiTeSi
 
Seçenekler
  #1  
Arama 25-11-2007, 10:44
banias - ait Kullanıcı Resmi (Avatar)
Pseudo Coder
Üyelik Tarihi: 23/08/07
Mesajlar: 1.177
 
     WS-Ticareti: (2)
Blog Yazıları: 2
Teşekkürleri: 9
100 Msg. 180 Tşkr.
Rep Gücü: 100 banias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud ofbanias has much to be proud of

gelişmiş basketbol skorbord scripti (javascript)

HTML-Kodu:
<!-- TWO STEPS TO INSTALL BASKETBALL SCOREBOARD:



  1.  Copy the coding into the HEAD of your HTML document

  2.  Add the last code into the BODY of your HTML document  --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document  --> <HEAD> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <script language="JavaScript">
function add1a(player){
board.AScore.value++;
if(player==4) board.A4points.value++;
if(player==5) board.A5points.value++;
if(player==6) board.A6points.value++;
if(player==7) board.A7points.value++;
if(player==8) board.A8points.value++;
if(player==9) board.A9points.value++;
if(player==10) board.A10points.value++;
if(player==11) board.A11points.value++;
if(player==12) board.A12points.value++;
if(player==13) board.A13points.value++;
if(player==14) board.A14points.value++;
if(player==15) board.A15points.value++;
}
function tak1a(player){
if(player==4){
if (board.A4points.value!=0){board.A4points.value--;board.AScore.value--;}}
if(player==5){
if (board.A5points.value!=0){board.A5points.value--;board.AScore.value--;}}
if(player==6){
if (board.A6points.value!=0){board.A6points.value--;board.AScore.value--;}}
if(player==7){
if (board.A7points.value!=0){board.A7points.value--;board.AScore.value--;}}
if(player==8){
if (board.A8points.value!=0){board.A8points.value--;board.AScore.value--;}}
if(player==9){
if (board.A9points.value!=0){board.A9points.value--;board.AScore.value--;}}
if(player==10){
if (board.A10points.value!=0){board.A10points.value--;board.AScore.value--;}}
if(player==11){
if (board.A11points.value!=0){board.A11points.value--;board.AScore.value--;}}
if(player==12){
if (board.A12points.value!=0){board.A12points.value--;board.AScore.value--;}}
if(player==13){
if (board.A13points.value!=0){board.A13points.value--;board.AScore.value--;}}
if(player==14){
if (board.A14points.value!=0){board.A14points.value--;board.AScore.value--;}}
if(player==15){
if (board.A15points.value!=0){board.A15points.value--;board.AScore.value--;}}
}
function add2a(player){
board.AScore.value++; board.AScore.value++;
if(player==4){board.A4points.value++;board.A4points.value++;}
if(player==5){board.A5points.value++;board.A5points.value++;}
if(player==6){board.A6points.value++;board.A6points.value++;}
if(player==7){board.A7points.value++;board.A7points.value++;}
if(player==8){board.A8points.value++;board.A8points.value++;}
if(player==9){board.A9points.value++;board.A9points.value++;}
if(player==10){board.A10points.value++;board.A10points.value++;}
if(player==11){board.A11points.value++;board.A11points.value++;}
if(player==12){board.A12points.value++;board.A12points.value++;}
if(player==13){board.A13points.value++;board.A13points.value++;}
if(player==14){board.A14points.value++;board.A14points.value++;}
if(player==15){board.A15points.value++;board.A15points.value++;}
}
function add3a(player){
board.AScore.value++; board.AScore.value++; board.AScore.value++;
if(player==4){board.A4points.value++;board.A4points.value++;
board.A4points.value++;}
if(player==5){board.A5points.value++;board.A5points.value++;
board.A5points.value++;}
if(player==6){board.A6points.value++;board.A6points.value++;
board.A6points.value++;}
if(player==7){board.A7points.value++;board.A7points.value++;
board.A7points.value++;}
if(player==8){board.A8points.value++;board.A8points.value++;
board.A8points.value++;}
if(player==9){board.A9points.value++;board.A9points.value++;
board.A9points.value++;}
if(player==10){board.A10points.value++;board.A10points.value++;
board.A10points.value++;}
if(player==11){board.A11points.value++;board.A11points.value++;
board.A11points.value++;}
if(player==12){board.A12points.value++;board.A12points.value++;
board.A12points.value++;}
if(player==13){board.A13points.value++;board.A13points.value++;
board.A13points.value++;}
if(player==14){board.A14points.value++;board.A14points.value++;
board.A14points.value++;}
if(player==15){board.A15points.value++;board.A15points.value++;
board.A15points.value++;}
}

function add1b(player){
board.BScore.value++;
if(player==4) board.B4points.value++;
if(player==5) board.B5points.value++;
if(player==6) board.B6points.value++;
if(player==7) board.B7points.value++;
if(player==8) board.B8points.value++;
if(player==9) board.B9points.value++;
if(player==10) board.B10points.value++;
if(player==11) board.B11points.value++;
if(player==12) board.B12points.value++;
if(player==13) board.B13points.value++;
if(player==14) board.B14points.value++;
if(player==15) board.B15points.value++;
}
function tak1b(player){
if(player==4){
if (board.B4points.value!=0){board.B4points.value--;board.BScore.value--;}}
if(player==5){
if (board.B5points.value!=0){board.B5points.value--;board.BScore.value--;}}
if(player==6){
if (board.B6points.value!=0){board.B6points.value--;board.BScore.value--;}}
if(player==7){
if (board.B7points.value!=0){board.B7points.value--;board.BScore.value--;}}
if(player==8){
if (board.B8points.value!=0){board.B8points.value--;board.BScore.value--;}}
if(player==9){
if (board.B9points.value!=0){board.B9points.value--;board.BScore.value--;}}
if(player==10){
if (board.B10points.value!=0){board.B10points.value--;board.BScore.value--;}}
if(player==11){
if (board.B11points.value!=0){board.B11points.value--;board.BScore.value--;}}
if(player==12){
if (board.B12points.value!=0){board.B12points.value--;board.BScore.value--;}}
if(player==13){
if (board.B13points.value!=0){board.B13points.value--;board.BScore.value--;}}
if(player==14){
if (board.B14points.value!=0){board.B14points.value--;board.BScore.value--;}}
if(player==15){
if (board.B15points.value!=0){board.B15points.value--;board.BScore.value--;}}
}
function add2b(player){
board.BScore.value++; board.BScore.value++;
if(player==4){board.B4points.value++;board.B4points.value++;}
if(player==5){board.B5points.value++;board.B5points.value++;}
if(player==6){board.B6points.value++;board.B6points.value++;}
if(player==7){board.B7points.value++;board.B7points.value++;}
if(player==8){board.B8points.value++;board.B8points.value++;}
if(player==9){board.B9points.value++;board.B9points.value++;}
if(player==10){board.B10points.value++;board.B10points.value++;}
if(player==11){board.B11points.value++;board.B11points.value++;}
if(player==12){board.B12points.value++;board.B12points.value++;}
if(player==13){board.B13points.value++;board.B13points.value++;}
if(player==14){board.B14points.value++;board.B14points.value++;}
if(player==15){board.B15points.value++;board.B15points.value++;}
}
function add3b(player){
board.BScore.value++; board.BScore.value++; board.BScore.value++;
if(player==4){board.B4points.value++;board.B4points.value++;
board.B4points.value++;}
if(player==5){board.B5points.value++;board.B5points.value++;
board.B5points.value++;}
if(player==6){board.B6points.value++;board.B6points.value++;
board.B6points.value++;}
if(player==7){board.B7points.value++;board.B7points.value++;
board.B7points.value++;}
if(player==8){board.B8points.value++;board.B8points.value++;
board.B8points.value++;}
if(player==9){board.B9points.value++;board.B9points.value++;
board.B9points.value++;}
if(player==10){board.B10points.value++;board.B10points.value++;
board.B10points.value++;}
if(player==11){board.B11points.value++;board.B11points.value++;
board.B11points.value++;}
if(player==12){board.B12points.value++;board.B12points.value++;
board.B12points.value++;}
if(player==13){board.B13points.value++;board.B13points.value++;
board.B13points.value++;}
if(player==14){board.B14points.value++;board.B14points.value++;
board.B14points.value++;}
if(player==15){board.B15points.value++;board.B15points.value++;
board.B15points.value++;}
}
var afouls=0, bfouls=0, acolour="white", bcolour="white"
function setnames(){
board.A4name.value = bench.A4nameInput.value
board.A5name.value = bench.A5nameInput.value
board.A6name.value = bench.A6nameInput.value
board.A7name.value = bench.A7nameInput.value
board.A8name.value = bench.A8nameInput.value
board.A9name.value = bench.A9nameInput.value
board.A10name.value = bench.A10nameInput.value
board.A11name.value = bench.A11nameInput.value
board.A12name.value = bench.A12nameInput.value
board.A13name.value = bench.A13nameInput.value
board.A14name.value = bench.A14nameInput.value
board.A15name.value = bench.A15nameInput.value
board.B4name.value = bench.B4nameInput.value
board.B5name.value = bench.B5nameInput.value
board.B6name.value = bench.B6nameInput.value
board.B7name.value = bench.B7nameInput.value
board.B8name.value = bench.B8nameInput.value
board.B9name.value = bench.B9nameInput.value
board.B10name.value = bench.B10nameInput.value
board.B11name.value = bench.B11nameInput.value
board.B12name.value = bench.B12nameInput.value
board.B13name.value = bench.B13nameInput.value
board.B14name.value = bench.B14nameInput.value
board.B15name.value = bench.B15nameInput.value
board.AName.value = bench.ANameInput.value
board.BName.value = bench.BNameInput.value
setcolours()
}
function setcolours(){
var ac=bench.AColourInput.selectedIndex
var bc=bench.BColourInput.selectedIndex
if(ac==0){acolour="#ffcccc"}
if(ac==1){acolour="#ffcc99"}
if(ac==2){acolour="#ffffcc"}
if(ac==3){acolour="#ccffcc"}
if(ac==4){acolour="#99ccff"}
if(ac==5){acolour="#ccccff"}
if(ac==6){acolour="#dddddd"}
if(ac==7){acolour="white"}
if(bc==0){bcolour="#ffcccc"}
if(bc==1){bcolour="#ffcc99"}
if(bc==2){bcolour="#ffffcc"}
if(bc==3){bcolour="#ccffcc"}
if(bc==4){bcolour="#99ccff"}
if(bc==5){bcolour="#ccccff"}
if(bc==6){bcolour="#dddddd"}
if(bc==7){bcolour="white"}
board.AScore.style.color = acolour
board.AName.style.color = acolour
board.ASub.style.color = acolour
board.ATF.style.color = acolour
board.A4name.style.color = acolour
board.A5name.style.color = acolour
board.A6name.style.color = acolour
board.A7name.style.color = acolour
board.A8name.style.color = acolour
board.A9name.style.color = acolour
board.A10name.style.color = acolour
board.A11name.style.color = acolour
board.A12name.style.color = acolour
board.A13name.style.color = acolour
board.A14name.style.color = acolour
board.A15name.style.color = acolour
board.A4points.style.color = acolour
board.A5points.style.color = acolour
board.A6points.style.color = acolour
board.A7points.style.color = acolour
board.A8points.style.color = acolour
board.A9points.style.color = acolour
board.A10points.style.color = acolour
board.A11points.style.color = acolour
board.A12points.style.color = acolour
board.A13points.style.color = acolour
board.A14points.style.color = acolour
board.A15points.style.color = acolour
board.A4no.style.color = acolour
board.A5no.style.color = acolour
board.A6no.style.color = acolour
board.A7no.style.color = acolour
board.A8no.style.color = acolour
board.A9no.style.color = acolour
board.A10no.style.color = acolour
board.A11no.style.color = acolour
board.A12no.style.color = acolour
board.A13no.style.color = acolour
board.A14no.style.color = acolour
board.A15no.style.color = acolour
board.BScore.style.color = bcolour
board.BName.style.color = bcolour
board.BSub.style.color = bcolour
board.BTF.style.color = bcolour
board.B4name.style.color = bcolour
board.B5name.style.color = bcolour
board.B6name.style.color = bcolour
board.B7name.style.color = bcolour
board.B8name.style.color = bcolour
board.B9name.style.color = bcolour
board.B10name.style.color = bcolour
board.B11name.style.color = bcolour
board.B12name.style.color = bcolour
board.B13name.style.color = bcolour
board.B14name.style.color = bcolour
board.B15name.style.color = bcolour
board.B4points.style.color = bcolour
board.B5points.style.color = bcolour
board.B6points.style.color = bcolour
board.B7points.style.color = bcolour
board.B8points.style.color = bcolour
board.B9points.style.color = bcolour
board.B10points.style.color = bcolour
board.B11points.style.color = bcolour
board.B12points.style.color = bcolour
board.B13points.style.color = bcolour
board.B14points.style.color = bcolour
board.B15points.style.color = bcolour
board.B4no.style.color = bcolour
board.B5no.style.color = bcolour
board.B6no.style.color = bcolour
board.B7no.style.color = bcolour
board.B8no.style.color = bcolour
board.B9no.style.color = bcolour
board.B10no.style.color = bcolour
board.B11no.style.color = bcolour
board.B12no.style.color = bcolour
board.B13no.style.color = bcolour
board.B14no.style.color = bcolour
board.B15no.style.color = bcolour

}
function foula(player){
afouls++
if(board.ATF.value<5){board.ATF.value++}
if(board.ATF.value==5){board.ATF.style.color="#ff9999"}
if(player==4){
if(board.A4F1.style.backgroundColor == "black")
{board.A4F1.style.backgroundColor = "lime"} else {
if(board.A4F2.style.backgroundColor == "black")
{board.A4F2.style.backgroundColor = "lime"} else {
if(board.A4F3.style.backgroundColor == "black")
{board.A4F3.style.backgroundColor = "lime"} else {
if(board.A4F4.style.backgroundColor == "black")
{board.A4F4.style.backgroundColor = "lime"} else {
if(board.A4F5.style.backgroundColor == "black")
{board.A4F5.style.backgroundColor = "red"}
}}}}}
if(player==5){
if(board.A5F1.style.backgroundColor == "black")
{board.A5F1.style.backgroundColor = "lime"} else {
if(board.A5F2.style.backgroundColor == "black")
{board.A5F2.style.backgroundColor = "lime"} else {
if(board.A5F3.style.backgroundColor == "black")
{board.A5F3.style.backgroundColor = "lime"} else {
if(board.A5F4.style.backgroundColor == "black")
{board.A5F4.style.backgroundColor = "lime"} else {
if(board.A5F5.style.backgroundColor == "black")
{board.A5F5.style.backgroundColor = "red"}
}}}}}
if(player==6){
if(board.A6F1.style.backgroundColor == "black")
{board.A6F1.style.backgroundColor = "lime"} else {
if(board.A6F2.style.backgroundColor == "black")
{board.A6F2.style.backgroundColor = "lime"} else {
if(board.A6F3.style.backgroundColor == "black")
{board.A6F3.style.backgroundColor = "lime"} else {
if(board.A6F4.style.backgroundColor == "black")
{board.A6F4.style.backgroundColor = "lime"} else {
if(board.A6F5.style.backgroundColor == "black")
{board.A6F5.style.backgroundColor = "red"}
}}}}}
if(player==7){
if(board.A7F1.style.backgroundColor == "black")
{board.A7F1.style.backgroundColor = "lime"} else {
if(board.A7F2.style.backgroundColor == "black")
{board.A7F2.style.backgroundColor = "lime"} else {
if(board.A7F3.style.backgroundColor == "black")
{board.A7F3.style.backgroundColor = "lime"} else {
if(board.A7F4.style.backgroundColor == "black")
{board.A7F4.style.backgroundColor = "lime"} else {
if(board.A7F5.style.backgroundColor == "black")
{board.A7F5.style.backgroundColor = "red"}
}}}}}
if(player==8){
if(board.A8F1.style.backgroundColor == "black")
{board.A8F1.style.backgroundColor = "lime"} else {
if(board.A8F2.style.backgroundColor == "black")
{board.A8F2.style.backgroundColor = "lime"} else {
if(board.A8F3.style.backgroundColor == "black")
{board.A8F3.style.backgroundColor = "lime"} else {
if(board.A8F4.style.backgroundColor == "black")
{board.A8F4.style.backgroundColor = "lime"} else {
if(board.A8F5.style.backgroundColor == "black")
{board.A8F5.style.backgroundColor = "red"}
}}}}}
if(player==9){
if(board.A9F1.style.backgroundColor == "black")
{board.A9F1.style.backgroundColor = "lime"} else {
if(board.A9F2.style.backgroundColor == "black")
{board.A9F2.style.backgroundColor = "lime"} else {
if(board.A9F3.style.backgroundColor == "black")
{board.A9F3.style.backgroundColor = "lime"} else {
if(board.A9F4.style.backgroundColor == "black")
{board.A9F4.style.backgroundColor = "lime"} else {
if(board.A9F5.style.backgroundColor == "black")
{board.A9F5.style.backgroundColor = "red"}
}}}}}
if(player==10){
if(board.A10F1.style.backgroundColor == "black")
{board.A10F1.style.backgroundColor = "lime"} else {
if(board.A10F2.style.backgroundColor == "black")
{board.A10F2.style.backgroundColor = "lime"} else {
if(board.A10F3.style.backgroundColor == "black")
{board.A10F3.style.backgroundColor = "lime"} else {
if(board.A10F4.style.backgroundColor == "black")
{board.A10F4.style.backgroundColor = "lime"} else {
if(board.A10F5.style.backgroundColor == "black")
{board.A10F5.style.backgroundColor = "red"}
}}}}}
if(player==11){
if(board.A11F1.style.backgroundColor == "black")
{board.A11F1.style.backgroundColor = "lime"} else {
if(board.A11F2.style.backgroundColor == "black")
{board.A11F2.style.backgroundColor = "lime"} else {
if(board.A11F3.style.backgroundColor == "black")
{board.A11F3.style.backgroundColor = "lime"} else {
if(board.A11F4.style.backgroundColor == "black")
{board.A11F4.style.backgroundColor = "lime"} else {
if(board.A11F5.style.backgroundColor == "black")
{board.A11F5.style.backgroundColor = "red"}
}}}}}
if(player==12){
if(board.A12F1.style.backgroundColor == "black")
{board.A12F1.style.backgroundColor = "lime"} else {
if(board.A12F2.style.backgroundColor == "black")
{board.A12F2.style.backgroundColor = "lime"} else {
if(board.A12F3.style.backgroundColor == "black")
{board.A12F3.style.backgroundColor = "lime"} else {
if(board.A12F4.style.backgroundColor == "black")
{board.A12F4.style.backgroundColor = "lime"} else {
if(board.A12F5.style.backgroundColor == "black")
{board.A12F5.style.backgroundColor = "red"}
}}}}}
if(player==13){
if(board.A13F1.style.backgroundColor == "black")
{board.A13F1.style.backgroundColor = "lime"} else {
if(board.A13F2.style.backgroundColor == "black")
{board.A13F2.style.backgroundColor = "lime"} else {
if(board.A13F3.style.backgroundColor == "black")
{board.A13F3.style.backgroundColor = "lime"} else {
if(board.A13F4.style.backgroundColor == "black")
{board.A13F4.style.backgroundColor = "lime"} else {
if(board.A13F5.style.backgroundColor == "black")
{board.A13F5.style.backgroundColor = "red"}
}}}}}
if(player==14){
if(board.A14F1.style.backgroundColor == "black")
{board.A14F1.style.backgroundColor = "lime"} else {
if(board.A14F2.style.backgroundColor == "black")
{board.A14F2.style.backgroundColor = "lime"} else {
if(board.A14F3.style.backgroundColor == "black")
{board.A14F3.style.backgroundColor = "lime"} else {
if(board.A14F4.style.backgroundColor == "black")
{board.A14F4.style.backgroundColor = "lime"} else {
if(board.A14F5.style.backgroundColor == "black")
{board.A14F5.style.backgroundColor = "red"}
}}}}}
if(player==15){
if(board.A15F1.style.backgroundColor == "black")
{board.A15F1.style.backgroundColor = "lime"} else {
if(board.A15F2.style.backgroundColor == "black")
{board.A15F2.style.backgroundColor = "lime"} else {
if(board.A15F3.style.backgroundColor == "black")
{board.A15F3.style.backgroundColor = "lime"} else {
if(board.A15F4.style.backgroundColor == "black")
{board.A15F4.style.backgroundColor = "lime"} else {
if(board.A15F5.style.backgroundColor == "black")
{board.A15F5.style.backgroundColor = "red"}
}}}}}
}
function foulb(player){
bfouls++
if(board.BTF.value<5){board.BTF.value++}
if(board.BTF.value==5){board.BTF.style.color="#ff9999"}
if(player==4){
if(board.B4F1.style.backgroundColor == "black")
{board.B4F1.style.backgroundColor = "lime"} else {
if(board.B4F2.style.backgroundColor == "black")
{board.B4F2.style.backgroundColor = "lime"} else {
if(board.B4F3.style.backgroundColor == "black")
{board.B4F3.style.backgroundColor = "lime"} else {
if(board.B4F4.style.backgroundColor == "black")
{board.B4F4.style.backgroundColor = "lime"} else {
if(board.B4F5.style.backgroundColor == "black")
{board.B4F5.style.backgroundColor = "red"}
}}}}}
if(player==5){
if(board.B5F1.style.backgroundColor == "black")
{board.B5F1.style.backgroundColor = "lime"} else {
if(board.B5F2.style.backgroundColor == "black")
{board.B5F2.style.backgroundColor = "lime"} else {
if(board.B5F3.style.backgroundColor == "black")
{board.B5F3.style.backgroundColor = "lime"} else {
if(board.B5F4.style.backgroundColor == "black")
{board.B5F4.style.backgroundColor = "lime"} else {
if(board.B5F5.style.backgroundColor == "black")
{board.B5F5.style.backgroundColor = "red"}
}}}}}
if(player==6){
if(board.B6F1.style.backgroundColor == "black")
{board.B6F1.style.backgroundColor = "lime"} else {
if(board.B6F2.style.backgroundColor == "black")
{board.B6F2.style.backgroundColor = "lime"} else {
if(board.B6F3.style.backgroundColor == "black")
{board.B6F3.style.backgroundColor = "lime"} else {
if(board.B6F4.style.backgroundColor == "black")
{board.B6F4.style.backgroundColor = "lime"} else {
if(board.B6F5.style.backgroundColor == "black")
{board.B6F5.style.backgroundColor = "red"}
}}}}}
if(player==7){
if(board.B7F1.style.backgroundColor == "black")
{board.B7F1.style.backgroundColor = "lime"} else {
if(board.B7F2.style.backgroundColor == "black")
{board.B7F2.style.backgroundColor = "lime"} else {
if(board.B7F3.style.backgroundColor == "black")
{board.B7F3.style.backgroundColor = "lime"} else {
if(board.B7F4.style.backgroundColor == "black")
{board.B7F4.style.backgroundColor = "lime"} else {
if(board.B7F5.style.backgroundColor == "black")
{board.B7F5.style.backgroundColor = "red"}
}}}}}
if(player==8){
if(board.B8F1.style.backgroundColor == "black")
{board.B8F1.style.backgroundColor = "lime"} else {
if(board.B8F2.style.backgroundColor == "black")
{board.B8F2.style.backgroundColor = "lime"} else {
if(board.B8F3.style.backgroundColor == "black")
{board.B8F3.style.backgroundColor = "lime"} else {
if(board.B8F4.style.backgroundColor == "black")
{board.B8F4.style.backgroundColor = "lime"} else {
if(board.B8F5.style.backgroundColor == "black")
{board.B8F5.style.backgroundColor = "red"}
}}}}}
if(player==9){
if(board.B9F1.style.backgroundColor == "black")
{board.B9F1.style.backgroundColor = "lime"} else {
if(board.B9F2.style.backgroundColor == "black")
{board.B9F2.style.backgroundColor = "lime"} else {
if(board.B9F3.style.backgroundColor == "black")
{board.B9F3.style.backgroundColor = "lime"} else {
if(board.B9F4.style.backgroundColor == "black")
{board.B9F4.style.backgroundColor = "lime"} else {
if(board.B9F5.style.backgroundColor == "black")
{board.B9F5.style.backgroundColor = "red"}
}}}}}
if(player==10){
if(board.B10F1.style.backgroundColor == "black")
{board.B10F1.style.backgroundColor = "lime"} else {
if(board.B10F2.style.backgroundColor == "black")
{board.B10F2.style.backgroundColor = "lime"} else {
if(board.B10F3.style.backgroundColor == "black")
{board.B10F3.style.backgroundColor = "lime"} else {
if(board.B10F4.style.backgroundColor == "black")
{board.B10F4.style.backgroundColor = "lime"} else {
if(board.B10F5.style.backgroundColor == "black")
{board.B10F5.style.backgroundColor = "red"}
}}}}}
if(player==11){
if(board.B11F1.style.backgroundColor == "black")
{board.B11F1.style.backgroundColor = "lime"} else {
if(board.B11F2.style.backgroundColor == "black")
{board.B11F2.style.backgroundColor = "lime"} else {
if(board.B11F3.style.backgroundColor == "black")
{board.B11F3.style.backgroundColor = "lime"} else {
if(board.B11F4.style.backgroundColor == "black")
{board.B11F4.style.backgroundColor = "lime"} else {
if(board.B11F5.style.backgroundColor == "black")
{board.B11F5.style.backgroundColor = "red"}
}}}}}
if(player==12){
if(board.B12F1.style.backgroundColor == "black")
{board.B12F1.style.backgroundColor = "lime"} else {
if(board.B12F2.style.backgroundColor == "black")
{board.B12F2.style.backgroundColor = "lime"} else {
if(board.B12F3.style.backgroundColor == "black")
{board.B12F3.style.backgroundColor = "lime"} else {
if(board.B12F4.style.backgroundColor == "black")
{board.B12F4.style.backgroundColor = "lime"} else {
if(board.B12F5.style.backgroundColor == "black")
{board.B12F5.style.backgroundColor = "red"}
}}}}}
if(player==13){
if(board.B13F1.style.backgroundColor == "black")
{board.B13F1.style.backgroundColor = "lime"} else {
if(board.B13F2.style.backgroundColor == "black")
{board.B13F2.style.backgroundColor = "lime"} else {
if(board.B13F3.style.backgroundColor == "black")
{board.B13F3.style.backgroundColor = "lime"} else {
if(board.B13F4.style.backgroundColor == "black")
{board.B13F4.style.backgroundColor = "lime"} else {
if(board.B13F5.style.backgroundColor == "black")
{board.B13F5.style.backgroundColor = "red"}
}}}}}
if(player==14){
if(board.B14F1.style.backgroundColor == "black")
{board.B14F1.style.backgroundColor = "lime"} else {
if(board.B14F2.style.backgroundColor == "black")
{board.B14F2.style.backgroundColor = "lime"} else {
if(board.B14F3.style.backgroundColor == "black")
{board.B14F3.style.backgroundColor = "lime"} else {
if(board.B14F4.style.backgroundColor == "black")
{board.B14F4.style.backgroundColor = "lime"} else {
if(board.B14F5.style.backgroundColor == "black")
{board.B14F5.style.backgroundColor = "red"}
}}}}}
if(player==15){
if(board.B15F1.style.backgroundColor == "black")
{board.B15F1.style.backgroundColor = "lime"} else {
if(board.B15F2.style.backgroundColor == "black")
{board.B15F2.style.backgroundColor = "lime"} else {
if(board.B15F3.style.backgroundColor == "black")
{board.B15F3.style.backgroundColor = "lime"} else {
if(board.B15F4.style.backgroundColor == "black")
{board.B15F4.style.backgroundColor = "lime"} else {
if(board.B15F5.style.backgroundColor == "black")
{board.B15F5.style.backgroundColor = "red"}
}}}}}
}
function noteamfoula(){
afouls--
if(afouls<5){board.ATF.value = afouls
board.ATF.style.color=acolour}
}
function nofoula(player){
if(player==4){
if(board.A4F5.style.backgroundColor == "red")
{board.A4F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A4F4.style.backgroundColor == "lime")
{board.A4F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A4F3.style.backgroundColor == "lime")
{board.A4F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A4F2.style.backgroundColor == "lime")
{board.A4F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A4F1.style.backgroundColor == "lime")
{board.A4F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==5){
if(board.A5F5.style.backgroundColor == "red")
{board.A5F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A5F4.style.backgroundColor == "lime")
{board.A5F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A5F3.style.backgroundColor == "lime")
{board.A5F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A5F2.style.backgroundColor == "lime")
{board.A5F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A5F1.style.backgroundColor == "lime")
{board.A5F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==6){
if(board.A6F5.style.backgroundColor == "red")
{board.A6F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A6F4.style.backgroundColor == "lime")
{board.A6F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A6F3.style.backgroundColor == "lime")
{board.A6F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A6F2.style.backgroundColor == "lime")
{board.A6F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A6F1.style.backgroundColor == "lime")
{board.A6F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==7){
if(board.A7F5.style.backgroundColor == "red")
{board.A7F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A7F4.style.backgroundColor == "lime")
{board.A7F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A7F3.style.backgroundColor == "lime")
{board.A7F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A7F2.style.backgroundColor == "lime")
{board.A7F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A7F1.style.backgroundColor == "lime")
{board.A7F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==8){
if(board.A8F5.style.backgroundColor == "red")
{board.A8F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A8F4.style.backgroundColor == "lime")
{board.A8F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A8F3.style.backgroundColor == "lime")
{board.A8F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A8F2.style.backgroundColor == "lime")
{board.A8F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A8F1.style.backgroundColor == "lime")
{board.A8F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==9){
if(board.A9F5.style.backgroundColor == "red")
{board.A9F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A9F4.style.backgroundColor == "lime")
{board.A9F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A9F3.style.backgroundColor == "lime")
{board.A9F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A9F2.style.backgroundColor == "lime")
{board.A9F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A9F1.style.backgroundColor == "lime")
{board.A9F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==10){
if(board.A10F5.style.backgroundColor == "red")
{board.A10F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A10F4.style.backgroundColor == "lime")
{board.A10F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A10F3.style.backgroundColor == "lime")
{board.A10F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A10F2.style.backgroundColor == "lime")
{board.A10F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A10F1.style.backgroundColor == "lime")
{board.A10F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==11){
if(board.A11F5.style.backgroundColor == "red")
{board.A11F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A11F4.style.backgroundColor == "lime")
{board.A11F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A11F3.style.backgroundColor == "lime")
{board.A11F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A11F2.style.backgroundColor == "lime")
{board.A11F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A11F1.style.backgroundColor == "lime")
{board.A11F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==12){
if(board.A12F5.style.backgroundColor == "red")
{board.A12F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A12F4.style.backgroundColor == "lime")
{board.A12F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A12F3.style.backgroundColor == "lime")
{board.A12F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A12F2.style.backgroundColor == "lime")
{board.A12F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A12F1.style.backgroundColor == "lime")
{board.A12F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==13){
if(board.A13F5.style.backgroundColor == "red")
{board.A13F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A13F4.style.backgroundColor == "lime")
{board.A13F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A13F3.style.backgroundColor == "lime")
{board.A13F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A13F2.style.backgroundColor == "lime")
{board.A13F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A13F1.style.backgroundColor == "lime")
{board.A13F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==14){
if(board.A14F5.style.backgroundColor == "red")
{board.A14F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A14F4.style.backgroundColor == "lime")
{board.A14F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A14F3.style.backgroundColor == "lime")
{board.A14F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A14F2.style.backgroundColor == "lime")
{board.A14F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A14F1.style.backgroundColor == "lime")
{board.A14F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
if(player==15){
if(board.A15F5.style.backgroundColor == "red")
{board.A15F5.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A15F4.style.backgroundColor == "lime")
{board.A15F4.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A15F3.style.backgroundColor == "lime")
{board.A15F3.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A15F2.style.backgroundColor == "lime")
{board.A15F2.style.backgroundColor = "black"
noteamfoula()} else {
if(board.A15F1.style.backgroundColor == "lime")
{board.A15F1.style.backgroundColor = "black"
noteamfoula()}
}}}}}
}
function noteamfoulb(){
bfouls--
if(bfouls<5){board.BTF.value = bfouls
board.BTF.style.color=bcolour}
}

function nofoulb(player){
if(player==4){
if(board.B4F5.style.backgroundColor == "red")
{board.B4F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B4F4.style.backgroundColor == "lime")
{board.B4F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B4F3.style.backgroundColor == "lime")
{board.B4F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B4F2.style.backgroundColor == "lime")
{board.B4F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B4F1.style.backgroundColor == "lime")
{board.B4F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==5){
if(board.B5F5.style.backgroundColor == "red")
{board.B5F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B5F4.style.backgroundColor == "lime")
{board.B5F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B5F3.style.backgroundColor == "lime")
{board.B5F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B5F2.style.backgroundColor == "lime")
{board.B5F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B5F1.style.backgroundColor == "lime")
{board.B5F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==6){
if(board.B6F5.style.backgroundColor == "red")
{board.B6F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B6F4.style.backgroundColor == "lime")
{board.B6F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B6F3.style.backgroundColor == "lime")
{board.B6F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B6F2.style.backgroundColor == "lime")
{board.B6F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B6F1.style.backgroundColor == "lime")
{board.B6F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==7){
if(board.B7F5.style.backgroundColor == "red")
{board.B7F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B7F4.style.backgroundColor == "lime")
{board.B7F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B7F3.style.backgroundColor == "lime")
{board.B7F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B7F2.style.backgroundColor == "lime")
{board.B7F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B7F1.style.backgroundColor == "lime")
{board.B7F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==8){
if(board.B8F5.style.backgroundColor == "red")
{board.B8F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B8F4.style.backgroundColor == "lime")
{board.B8F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B8F3.style.backgroundColor == "lime")
{board.B8F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B8F2.style.backgroundColor == "lime")
{board.B8F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B8F1.style.backgroundColor == "lime")
{board.B8F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==9){
if(board.B9F5.style.backgroundColor == "red")
{board.B9F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B9F4.style.backgroundColor == "lime")
{board.B9F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B9F3.style.backgroundColor == "lime")
{board.B9F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B9F2.style.backgroundColor == "lime")
{board.B9F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B9F1.style.backgroundColor == "lime")
{board.B9F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==10){
if(board.B10F5.style.backgroundColor == "red")
{board.B10F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B10F4.style.backgroundColor == "lime")
{board.B10F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B10F3.style.backgroundColor == "lime")
{board.B10F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B10F2.style.backgroundColor == "lime")
{board.B10F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B10F1.style.backgroundColor == "lime")
{board.B10F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==11){
if(board.B11F5.style.backgroundColor == "red")
{board.B11F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B11F4.style.backgroundColor == "lime")
{board.B11F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B11F3.style.backgroundColor == "lime")
{board.B11F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B11F2.style.backgroundColor == "lime")
{board.B11F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B11F1.style.backgroundColor == "lime")
{board.B11F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==12){
if(board.B12F5.style.backgroundColor == "red")
{board.B12F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B12F4.style.backgroundColor == "lime")
{board.B12F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B12F3.style.backgroundColor == "lime")
{board.B12F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B12F2.style.backgroundColor == "lime")
{board.B12F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B12F1.style.backgroundColor == "lime")
{board.B12F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==13){
if(board.B13F5.style.backgroundColor == "red")
{board.B13F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B13F4.style.backgroundColor == "lime")
{board.B13F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B13F3.style.backgroundColor == "lime")
{board.B13F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B13F2.style.backgroundColor == "lime")
{board.B13F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B13F1.style.backgroundColor == "lime")
{board.B13F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==14){
if(board.B14F5.style.backgroundColor == "red")
{board.B14F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B14F4.style.backgroundColor == "lime")
{board.B14F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B14F3.style.backgroundColor == "lime")
{board.B14F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B14F2.style.backgroundColor == "lime")
{board.B14F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B14F1.style.backgroundColor == "lime")
{board.B14F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
if(player==15){
if(board.B15F5.style.backgroundColor == "red")
{board.B15F5.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B15F4.style.backgroundColor == "lime")
{board.B15F4.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B15F3.style.backgroundColor == "lime")
{board.B15F3.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B15F2.style.backgroundColor == "lime")
{board.B15F2.style.backgroundColor = "black"
noteamfoulb()} else {
if(board.B15F1.style.backgroundColor == "lime")
{board.B15F1.style.backgroundColor = "black"
noteamfoulb()}
}}}}}
}

function suba(){
if (board.SubTO.value == "Time-outs" || board.SubTO.value == "Substitution"){
board.SubTO.value = "Substitution"
board.ASub.value = "ß"}
}
function subb(){
if (board.SubTO.value == "Time-outs" || board.SubTO.value == "Substitution"){
board.SubTO.value = "Substitution"
board.BSub.value = "à"}
}
function toa(){
if (board.ATO2.style.backgroundColor == "black"){
if (board.SubTO.value == "Substitution"){
board.BSub.value = ""}
board.SubTO.value = "Time-out"
board.ASub.value = "ß"
}}
function tob(){
if (board.BTO2.style.backgroundColor == "black"){
if (board.SubTO.value == "Substitution"){
board.ASub.value = ""}
board.SubTO.value = "Time-out"
board.BSub.value = "à"
}}
function clearsub(){
board.ASub.value = ""
board.BSub.value = ""
board.SubTO.value = "Time-outs"}

function acceptto(){
if (board.SubTO.value == "Time-out" && board.ASub.value == "ß" && board.ATO1.style.backgroundColor == "lime" && board.ATO2.style.backgroundColor == "black"){
board.ATO2.style.backgroundColor = "lime"
}
if (board.SubTO.value == "Time-out" && board.ASub.value == "ß" && board.ATO1.style.backgroundColor == "black"){
board.ATO1.style.backgroundColor = "lime"
}
if (board.SubTO.value == "Time-out" && board.BSub.value == "à" && board.BTO1.style.backgroundColor == "lime" && board.BTO2.style.backgroundColor == "black"){
board.BTO2.style.backgroundColor = "lime"
}
if (board.SubTO.value == "Time-out" && board.BSub.value == "à" && board.BTO1.style.backgroundColor == "black"){
board.BTO1.style.backgroundColor = "lime"
}
clearsub()
}

var up,down;var min1,sec1;var cmin1,csec1,cmin2,csec2,mod;

function Minutes(data) { 
return(data.substring(0,2))
}

function Seconds(data) {         
return(data.substring(3,5));
}

function Display(min,sec,mod) {     
var disp;       
if(mod=="lon"){
if(min<=9) disp="0";   
else disp="";  
disp+=min+":";  
if(sec<=9) disp+="0"+sec;       
else disp+=sec; 
} else {
if(min<=9) disp="0";   
else disp="";  
disp+=min+".";  
disp+=sec;
} 
return(disp); 
}

function Down() {
if(board.Clock.value == "01:00"){mod="shottrans"} else {
if(board.Clock.value.substring(2,3)==":"){
mod="lon"} else {mod="shot"}}    
cmin2=1*Minutes(document.board.Clock.value);        
csec2=0+Seconds(document.board.Clock.value);      
DownRepeat(); 
}
function stopclock(){clearTimeout(down)}

function DownRepeat() { 
if(mod=="lon"){
csec2--;        
if(csec2==-1) { 
csec2=59; cmin2--; 
}       
document.board.Clock.value=Display(cmin2,csec2,mod);   
if((cmin2==1)&&(csec2==0)){ 
mod="shottrans"
down=setTimeout("DownRepeat()",100);} else{     
down=setTimeout("DownRepeat()",1000);} 
} else {
if(mod=="shottrans"){
document.board.Clock.value="59.9";
cmin2 = "59"
csec2 = "9"
mod="shot";
down=setTimeout("DownRepeat()",100);
} else {
csec2--;        
if(csec2==-1) { 
csec2=9; cmin2--; 
}       
document.board.Clock.value=Display(cmin2,csec2,mod);   
if((cmin2==0)&&(csec2==0)){ 
alert("zzzzzzzzzzz!");
board.ASub.value = "";
board.BSub.value = "";
board.SubTO.value = "Time-outs";
board.ATO1.style.backgroundColor = "black";
board.ATO2.style.backgroundColor = "black";
board.BTO1.style.backgroundColor = "black";
board.BTO2.style.backgroundColor = "black";
board.ATF.style.color = acolour;
board.BTF.style.color = bcolour;
board.ATF.value = "0"; board.BTF.value = "0"; }
else {down=setTimeout("DownRepeat()",100);} 
}}
}
function setclock(){
if (bench.clockset.value.substring(2,3) == ":" || bench.clockset.value.substring(2,3) == "."){
board.Clock.value = bench.clockset.value}
else {alert("Invalid time.  Time must be in mm:ss format, and no longer than 59:59.")}
period()
}
function period(){
var lala = bench.PeriodInput.selectedIndex;
if (lala == "0") board.Period.value = "1";
if (lala == "1") board.Period.value = "2";
if (lala == "2") board.Period.value = "3";
if (lala == "3") board.Period.value = "4";
if (lala == "4") board.Period.value = "E";
}
</script> </HEAD> <!-- STEP TWO: Copy this code into the BODY of your HTML document  --> <BODY> <!-- This script and many more are available free online at --> <!-- The JavaScript Source!! http://javascript.internet.com --> <basefont face="verdana" size="2"> <form name=board><div style="cursor: default"> <table width=100% bgcolor=black border=0 cellspacing=0 cellpadding=3> <tr><td colspan=11 height=8></td></tr> <tr><td rowspan=4 width=1%></td><td rowspan=4 width=28%> <input type=text style="background-color: black; cursor: default; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="4" size=1 name="A4no"><input type=text name="A4name" style="background-color: black; cursor: default; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A4F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A4F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A4F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A4F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A4F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; cursor: default; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A4points" value="0" size=1 ><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white" onFocus="blur()" value="5" size=1 name="A5no"><input type=text name="A5name" style="background-color: black; cursor: default; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A5F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A5F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A5F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A5F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A5F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; cursor: default; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A5points" value="0" size=1 ><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white" onFocus="blur()" value="6" size=1 name="A6no"><input type=text name="A6name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white" onFocus="blur()" value="" size=13><input type=text name="A6F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A6F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A6F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A6F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A6F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white; text-align: right" onFocus="blur()" name="A6points" value="0" size=1 ><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white" onFocus="blur()" value="7" size=1 name="A7no"><input type=text name="A7name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white" onFocus="blur()" value="" size=13><input type=text name="A7F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A7F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A7F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A7F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A7F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white; text-align: right" onFocus="blur()" name="A7points" value="0" size=1 ><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; cursor: default; color: white" onFocus="blur()" value="8" size=1 name="A8no"><input type=text name="A8name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A8F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A8F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A8F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A8F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A8F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A8points" value="0" size=1 ><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="9" size=1 name="A9no"><input type=text name="A9name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A9F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A9F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A9F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A9F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A9F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A9points" value="0" size=1 ><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="10" size=1 name="A10no"><input type=text name="A10name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A10F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A10F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A10F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A10F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A10F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A10points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="11" size=1 name="A11no"><input type=text name="A11name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A11F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A11F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A11F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A11F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A11F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A11points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="12" size=1 name="A12no"><input type=text name="A12name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A12F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A12F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A12F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A12F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A12F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A12points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="13" size=1 name="A13no"><input type=text name="A13name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A13F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A13F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A13F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A13F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A13F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A13points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="14" size=1 name="A14no"><input type=text name="A14name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A14F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A14F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A14F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A14F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A14F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A14points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="15" size=1 name="A15no"><input type=text name="A15name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="A15F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A15F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A15F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A15F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="A15F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="A15points" value="0" size=1> </td> <td rowspan=4 width=1% bgcolor=white></td> <td colspan=2 align=center width=15%><input type=text name="AScore" style="border: 0; background-color: black; font-family: verdana; font-size: 30pt; cursor: default; color: white; text-align: right" onFocus="blur();" size=2 value=0><br><input type=text name="AName" style="border: 0; background-color: black; font-family: verdana; cursor: default; font-size: 12pt; color: white; text-align: center" onFocus="blur();" size=10 value=""></td> <td width=10% valign=bottom align=center>Period <input type=text name="Period" style="border: 0; background-color: black; font-family: verdana; font-size: 12pt; cursor: default; color: white; text-align: center" onFocus="blur();" size=1 value="1"></td> <td colspan=2 align=center width=15%><input type=text name="BScore" style="border: 0; background-color: black; font-family: verdana; font-size: 30pt; cursor: default; color: white; text-align: right" onFocus="blur();" size=2 value=0><br><input type=text name="BName" style="border: 0; background-color: black; font-family: verdana; cursor: default; font-size: 12pt; color: white; text-align: center" onFocus="blur();" size=10 value=""></td> <td rowspan=4 width=1% bgcolor=white></td> <td rowspan=4 width=28%> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="4" size=1 name="B4no"><input type=text name="B4name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="B4F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B4F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B4F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B4F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B4F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="B4points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="5" size=1 name="B5no"><input type=text name="B5name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="B5F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B5F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B5F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B5F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B5F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="B5points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="6" size=1 name="B6no"><input type=text name="B6name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="B6F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B6F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B6F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B6F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B6F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="B6points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="7" size=1 name="B7no"><input type=text name="B7name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="B7F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B7F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B7F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B7F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B7F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="B7points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="8" size=1 name="B8no"><input type=text name="B8name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="B8F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B8F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B8F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B8F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B8F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="B8points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="9" size=1 name="B9no"><input type=text name="B9name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="B9F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B9F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B9F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B9F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B9F5" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default; text-align: right" onFocus="blur()" name="B9points" value="0" size=1><br> <input type=text style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="10" size=1 name="B10no"><input type=text name="B10name" style="background-color: black; font-family: Arial Narrow; font-size: 12pt; border: none; color: white; cursor: default" onFocus="blur()" value="" size=13><input type=text name="B10F1" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B10F2" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B10F3" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B10F4" style="height: 7; cursor: default; width: 7; border=1; background-color: black" onFocus="blur();"> <input type=text name="B10F5" st