<!--
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"
}

function mouseover5()
{
document.m5.src ="\NewImages/ButtonMouseoverFWC.gif"
}
function mouseout5()
{
document.m5.src ="\NewImages/ButtonFWC.gif"
}

function mouseover6()
{
document.m6.src ="\NewImages/ButtonMouseoverIWC.gif"
}
function mouseout6()
{
document.m6.src ="\NewImages/ButtonIWC.gif"
}

// Register and Login
function totvCourse(){
window.open ("resolutionCourse.htm", '', 'menubar=0, toolbar=0, height=1200, width=1240, status=0, scrollbars=1, resizable=1');
}
function Register(){
window.open ("php/TOTVForm.php", '', 'menubar=0, toolbar=0, status=0, height=1200, width=1240, scrollbars=1, resizable=1');
}
function IWCCourse(){
window.open ("http://www.instantwinecourse.com/Resolution.htm", '', 'menubar=0, toolbar=0, height=620, width=840, status=0, scrollbars=1, resizable=1');
}
function IWCRegister(){
window.open ("http://www.instantwinecourse.com/IWCForm.asp", '', 'menubar=0, toolbar=0, height=620, width=840, status=0, scrollbars=1, resizable=1');
}
function Privacy(){
window.open ("Privacy.htm", '', 'menubar=0, toolbar=0, height=200, width=730, status=0, scrollbars=1');
}
//-->

function Validate1()
{
	var None = "The following fields are blank or insufficient : \n\n";
	var Str = None;
	
	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 the Str is not empty
	if(Str != None)
	{
		window.alert(Str);
		return false;
	} else {
		//return true;
		FormStep(2);
	}
}

function Validate2()
{
	var None = "The following fields are blank or insufficient : \n\n";
	var Str = None;
	
	if (document.registration.knowledge.selectedIndex == 0)
		Str = Str + "Your Knowledge\n";
	if(document.registration.site.selectedIndex == 0)
		Str = Str + "Where you heard of this site\n";
	// if the Str is not empty
	if(Str != None)
	{
		window.alert(Str);
		return false;
	} else {
		//return true;
		FormStep(3);
	}
}

function Validate3()
{
	var None = "The following fields are blank or insufficient : \n\n";
	var Str = None;
	var emailFilter=/^.+@.+\..{2,3}$/;
	
	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";
	
	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.email2.value;
	
	if (em1 != em2)
		Str = Str + "\nYour Emails do not match - Please check them\n";
	
	if(Str != None)
	{
		window.alert(Str);
		return false;
	} else {
		 document.registration.submit();
	}

}

function ValidateCompleted(){
	var None = "The following fields are blank or insufficient : \n\n";
	var Str = None;
	var emailFilter=/^.+@.+\..{2,3}$/;
	
	if (document.form1.career.selectedIndex == 0)
		Str = Str + "Your Career\n";
	if (document.form1.purchase.selectedIndex == 0)
		Str = Str + "Your Purchase\n";
	if (document.form1.interest.selectedIndex == 0)
		Str = Str + "Your Interest\n";
	if (document.form1.knowledge.selectedIndex == 0)
		Str = Str + "Your Knowledge\n";
	if (document.form1.publications.selectedIndex == 0)
		Str = Str + "Your Publications\n";
		
	if(Str != None)	{
		window.alert(Str);
		return false;
	} else {
		 document.form1.submit();
	}
}

// From TOTVForm.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;
          }
    }
//-->