// JavaScript Document

//new Array()
//measures = 12

function activePage(id) {
	document.getElementById(id).style.backgroundColor = "242f59"
	}

function change(id,col,id2,col2) {
		document.getElementById(id).style.backgroundColor = col
		document.getElementById(id2).style.color = col2
}
function change2(id,col,id2,col2) {
		if (document.getElementById(50).name == id) {
	document.getElementById(id).style.backgroundColor = "242f59"
	document.getElementById(id2).style.color = col2
	} else {
document.getElementById(id).style.backgroundColor = col
document.getElementById(id2).style.color = col2
	}
}

function showlayer(id) {
document.getElementById(id).style.visibility = "visible"
}

function hidelayer(id) {
document.getElementById(id).style.visibility = "hidden"
}


function checkform(form) {
 //checking that info is entered in all fields before submitting
 

		if (form.FullName.value == "") {
		alert("Please enter your Full Name")
		return false
		}
		
		if (form.JobTitle.value == "") {
		alert("Please enter your Job Title")
		return false
		}
		
		if (form.OrgType.value == "") {
		alert("Please enter an Organisation Type")
		return false
		}
		
		if (form.Email.value == "") {
		alert("Please enter your Email Address")
		return false
		}
	
		if (form.Comments.value == "") {
		alert("Please enter your Comments")
		return false
		}
		
		if (form.Checkcode.value != "JNKTS") {
		alert("Please enter the correct check code")
		return false
		}
  return true
    }
