	function toggle(id,action){
	
		if(action=='show'){
			document.getElementById(id).style.display='block';
		}
		else if(action=='hide'){
			document.getElementById(id).style.display='none';
		}
	
	}
	

function Validate(){
	
		if(document.regForm.title.value==""){
			alert ("You forgot to choose your title.");
			document.regForm.title.focus();
			return false;
		}
		
		else if(document.regForm.catName.value==""){
			alert ("You forgot to choose the category of registration you're interested in.");
			document.regForm.catName.focus();
			return false;
		}
		
		else if(document.regForm.fname.value==""){
			alert ("You forgot to include your first name.");
			document.regForm.fname.focus();
			return false;
		}
	
		else if(document.regForm.lname.value==""){
			alert ("You forgot to include your last name.");
			document.regForm.lname.focus();
			return false;
		}
		
		else if(document.regForm.rescountry.value==""){
			alert ("You forgot to select a country.");
			document.regForm.rescountry.focus();
			return false;
		}
		
		
		else if(document.regForm.email.value==""){
			alert ("You forgot to input a valid email address.");
			document.regForm.email.focus();
			return false;
		}
		
		else if(document.regForm.emailBkup.value==""){
			alert ("You forgot to confirm your email address.");
			document.regForm.emailBkup.focus();
			return false;
		}
		
		else if(document.regForm.assoc.value==""){
			alert ("You forgot to select the type of institute you're affiliated with.");
			document.regForm.assoc.focus();
			return false;
		}
		
		
		else if(document.regForm.assocText.value==""){
			alert ("You forgot to enter the name of your affiliated institute.");
			document.regForm.assocText.focus();
			return false;
		}
	
	}
	
	function checkBox(){
		if(document.regForm.nominate.checked)
		{
			nominate = document.regForm.nominate.value;	
		}
		else(document.regForm.nominate.value=='n')
		
	}
	
	
