// JavaScript Document
function init(){
with (top.document.registration){
Submit.disabled=true;
tandc.checked=false;
}
return true;
}

function toggleSubmit(obj){

top.document.registration.Submit.disabled=(!obj.checked);
return true;

}

function submitForm(){

with (top.document.registration)
	{
			if (email.value==''){
				
				alert("Please enter an email address");
				
				
			} else if (usertype.selectedIndex==0){
				
				alert('Please indicate your interest in the BIS');
			
			} else {
			//email has a value
			if (password.value != password2.value){
					alert ("Passwords do not match\nPlease check and try again");
					}
					else
					{
					//checkthat there si something IN the password fields
						if (password.value != ''){
						submit();
						//alert (usertype.value);
						//alert('submitted form - not!');
						} else {
						alert("Please enter passwords");
						}
					}
			
			}
	}
//return true;

}

function submitReminder()
{

with (top.document.registration)
	{
			if (email.value==''){
				
				alert("Please enter an email address");	
			
			} else {
			
				submit();
						
			}
	}
return true;


}