var a = new Array("", "", "");
var b = new Array("5-7 September", "", "");
var c = new Array("3-6 October", "", "");
var d = new Array("", "", "");
var e = new Array("", "", "");
var f = new Array("7-9 November", "", "");
var g = new Array("", "", "");
var i = new Array("", "", "");
var p = new Array("", "", "");
var q = new Array("", "", "");
var r = new Array("", "", "");
var s = new Array("5-6 December", "", "");
var l = new Array("1 delegate £1995 excl VAT",  "2 delegates £1895 excl VAT", "3 delegates £1795 excl VAT");
var m = new Array("1 delegate £1495 excl VAT","2 delegates £1420 excl VAT","3 delegates £1345 excl VAT");
var n = new Array("1 delegate £1195 excl VAT","2 delegates £1135 excl VAT","3 delegates £1074 excl VAT");
var o = new Array("1 delegate £800 excl VAT","2 delegates £760 excl VAT","3 delegates £722 excl VAT");


function total(val){
if (val == "" ){
document.book.tot.value = "";}
if (val == "1") {
document.book.tot.value = "2344";}
if (val == "2" ){
document.book.tot.value = "4453";}
if (val == "3" ){
document.book.tot.value = "6327";}
if (val == "4" ){
document.book.tot.value = "1755";}
if (val == "5" ){
document.book.tot.value = "3337";}
if (val == "6" ){
document.book.tot.value = "4741";}
if (val == "7" ){
document.book.tot.value = "1404";}
if (val == "8" ){
document.book.tot.value = "2667";}
if (val == "9" ){
document.book.tot.value = "3785";}
if (val == "10" ){
document.book.tot.value = "940";}
if (val == "11" ){
document.book.tot.value = "1786";}
if (val == "12" ){
document.book.tot.value = "2545";}
if (val == "13" ){
document.book.tot.value = "2545";}
}



function choose(val){
/* if (val == "" ){
alert ("Please choose course"); document.book.course.focus();} */
if (val == "" ){
 with (document.book.date){ 
options[1].text = ""; 
 options[2].text = "";
 options[3].text = "";}
with(document.book.delegates){
options[1].text = ""; options[1].value = ""; 
 options[2].text = ""; options[2].value = "";
 options[3].text = ""; options[3].value = "";}
}

if (val == "1" ){
 with (document.book.date){
 options[1].text = a[0]; 
 options[2].text = a[1];
 options[3].text = a[2];}
with(document.book.delegates){
options[1].text = l[0]; options[1].value = "1";
 options[2].text = l[1]; options[2].value = "2";
 options[3].text = l[2]; options[3].value = "3";}
document.book.course_name.value = "Applied 3G Radio Planning";

}

if (val == "2" ){
 with (document.book.date){
 options[1].text = b[0];
 options[2].text = b[1];
 options[3].text = b[2];}
with(document.book.delegates){
options[1].text = n[0]; options[1].value = "7";
 options[2].text = n[1]; options[2].value = "8";
 options[3].text = n[2]; options[3].value = "9";}
document.book.course_name.value = "WCDMA RF & Hardware Design";
}

if (val == "3" ){
 with (document.book.date){
 options[1].text = c[0];
 options[2].text = c[1];
 options[3].text = c[2];}
with(document.book.delegates){
options[1].text = n[0]; options[1].value = "7";
 options[2].text = n[1]; options[2].value = "8";
 options[3].text = n[2]; options[3].value = "9";}
document.book.course_name.value = "UMTS Radio System Engineering";
}

if (val == "4" ){
 with (document.book.date){
 options[1].text = d[0];
 options[2].text = d[1];
 options[3].text = d[2]}
with(document.book.delegates){
options[1].text = m[0]; options[1].value = "4";
 options[2].text = m[1]; options[2].value = "5";
 options[3].text = m[2]; options[3].value = "6";}
document.book.course_name.value = "Software Design for WCDMA";
}

if (val == "5" ){
 with (document.book.date){
 options[1].text = e[0];
 options[2].text = e[1];
 options[3].text = e[2]}
with(document.book.delegates){
options[1].text = m[0]; options[1].value = "4";
 options[2].text = m[1]; options[2].value = "5";
 options[3].text = m[2]; options[3].value = "6";} 
document.book.course_name.value = "WCDMA Complete Technology";
}

if (val == "6" ){
 with (document.book.date){
 options[1].text = f[0];
 options[2].text = f[1];
 options[3].text = f[2];}
with(document.book.delegates){
options[1].text = m[0]; options[1].value = "4";
 options[2].text = m[1]; options[2].value = "5";
 options[3].text = m[2]; options[3].value = "6";}
document.book.course_name.value = "3G Signal Processing In-Depth";
}

if (val == "7" ){
with (document.book.date){
 options[1].text = g[0];
 options[2].text = g[1];
 options[3].text = g[2];}
with(document.book.delegates){
options[1].text = o[0]; options[1].value = "10";
 options[2].text = o[1]; options[2].value = "11";
 options[3].text = o[2]; options[3].value = "12";}
document.book.course_name.value = "SIP and IP Multimedia Subsytem";
}

if (val == "8" ){
with (document.book.date){
options[1].text = "Call for details";
options[2].text = "";
options[3].text = "";}
with(document.book.delegates){
options[1].text = n[0]; options[1].value = "7";
 options[2].text = n[1]; options[2].value = "8";
 options[3].text = n[2]; options[3].value = "9";}
document.book.course_name.value = "2G to 3G Fundamentals";
}

if (val == "9" ){
with (document.book.date){
 options[1].text = i[0];
 options[2].text = i[1];
 options[3].text = i[2];}
with(document.book.delegates){
options[1].text = o[0]; options[1].value = "10";
 options[2].text = o[1]; options[2].value = "11";
 options[3].text = o[2]; options[3].value = "12";}
document.book.course_name.value = "GPRS Overview";
}

if (val == "10" ){
with (document.book.date){
options[1].text = r[0];
 options[2].text = r[1];
 options[3].text = r[2];}
with(document.book.delegates){
options[1].text = o[0]; options[1].value = "10";
 options[2].text = o[1]; options[2].value = "11";
 options[3].text = o[2]; options[3].value = "12";}
document.book.course_name.value = "UMTS Overview";
}

if (val == "11" ){
with (document.book.date){
options[1].text = q[0];
options[2].text = q[1];
options[3].text = q[2];}
with(document.book.delegates){
options[1].text = n[0]; options[1].value = "7";
 options[2].text = n[1]; options[2].value = "8";
 options[3].text = n[2]; options[3].value = "9";}
document.book.course_name.value = "UTRAN Core Network Overview";
}

if (val == "12" ){
with (document.book.date){
options[0].text = "Call for details";
options[1].text = "";
options[2].text = "";}
}

if (val == "13" ){
 with (document.book.date){
 options[1].text = p[0];
 options[2].text = p[1];
 options[3].text = p[2];}
with(document.book.delegates){
options[1].text = m[0]; options[1].value = "4";
 options[2].text = m[1]; options[2].value = "5";
 options[3].text = m[2]; options[3].value = "6";}
document.book.course_name.value = "Introduction to 3G Radio Planning";
}

if (val == "14" ){
 with (document.book.date){
 options[1].text = s[0];
 options[2].text = s[1];
 options[3].text = s[2];}
with(document.book.delegates){
options[1].text = m[0]; options[1].value = "";
 options[2].text = m[1]; options[2].value = "";
 options[3].text = m[2]; options[3].value = "";}
document.book.course_name.value = "HSDPA";
}

}
