<!--
function mouseover1()
{
document.m1.src ="\NewImages/ButtonMouseoverFWC.gif"
}
function mouseout1()
{
document.m1.src ="\NewImages/ButtonFWC.gif"
}

function mouseover2()
{
document.m2.src ="\NewImages/LoginMouseover.gif"
}
function mouseout2()
{
document.m2.src ="\NewImages/Login.gif"
}

function mouseover3()
{
document.m3.src ="\NewImages/RegisterMouseover.gif"
}
function mouseout3()
{
document.m3.src ="\NewImages/Register.gif"
}

function mouseover4()
{
document.m4.src ="\NewImages/ButtonMouseoverHome.gif"
}
function mouseout4()
{
document.m4.src ="\NewImages/ButtonHome.gif"
}

// Register and Login
function totvCourse(){
window.open ("Resolution.htm", '', 'menubar=0, toolbar=0, status=0, scrollbars=1, resizable=1');
}
function Register(){
window.open ("IWCForm.asp", '', 'menubar=0, toolbar=0, status=0, scrollbars=1, resizable=1');
}
function Privacy(){
window.open ("Privacy.htm", '', 'menubar=0, toolbar=0, height=200, width=730, status=0, scrollbars=1');
}
//-->

// From IWCForm.asp
    function FormStep(step)
    {
          var personal = document.getElementById("personal");
          var address = document.getElementById("address");
          var contact = document.getElementById("contact");
          switch(step)
          {
                case 1:
                personal.style.display = "block";
                address.style.display = "none";
                contact.style.display = "none";
                break;
                case 2:
                personal.style.display = "none";
                address.style.display = "block";
                contact.style.display = "none";
                break;
                case 3:
                personal.style.display = "none";
                address.style.display = "none";
                contact.style.display = "block";
                break;
          }
    }
	
function Validate()
{
	var None = "The following fields are blank or insufficient : \n\n";
	var Str = None;
	var emailFilter=/^.+@.+\..{2,3}$/;
	
	if (document.registration.title.selectedIndex == 0)
		Str = Str + "Your Title\n";
	if(document.registration.firstname.value.length < 1)
		Str = Str + "Your First Name\n";
	if(document.registration.surname.value.length < 1)
		Str = Str + "Your Surname\n";
	if(document.registration.address1.value.length < 1)
		Str = Str + "Your Address1\n";
	if(document.registration.towncity.value.length < 1)
		Str = Str + "Your Town/City\n";
	if(document.registration.county.value.length < 1)
		Str = Str + "Your County\n";
	if(document.registration.postcode.value.length < 1)
		Str = Str + "Your Postcode\n";
	if (document.registration.country.selectedIndex == 0)
		Str = Str + "Your Country\n";
	
	<!--(isNaN(age)||age<1||age>100)-->
	if(document.registration.telephone.value< 1 || document.getElementById("telephone").value< 13)
		Str = Str + "Your Telephone\n";
	if (!(emailFilter.test(document.registration.email.value)))
       Str = Str + "Your Email Address\n";
	if(document.registration.password.value.length < 1)
		Str = Str + "Your Password\n";
	
	if (document.registration.knowledge.selectedIndex == 0)
		Str = Str + "Your Knowledge\n";
	if (document.registration.site.selectedIndex == 0)
		Str = Str + "Your Site\n";

	pass1 = document.registration.password.value;
    pass2 = document.registration.password2.value;

    if (pass1 != pass2)
		Str = Str + "\nYour Passwords do not match - Please check them\n";
	
	em1 = document.registration.email.value;
	em2 = document.registration.email1.value;
	
	if (em1 != em2)
		Str = Str + "\nYour Emails do not match - Please check them\n";
	
	if(Str != None)
	{
		window.alert(Str);
		return false;
	}

	return true;

}
//-->