// checkbox functions for wh_register form
function whFormClick(value){
	if(value == "30plus"){
		if(!document.getElementById('check30').checked){
			document.getElementById('over30error').innerHTML = '';
		}else{
			document.getElementById('check18').checked = false;
			document.getElementById('check25').checked = false;
			document.getElementById('over30error').innerHTML = '<div class="wh_form_leftcol">&nbsp;</div><div class="wh_form_rightcol"><p style="color:#ff0000;margin:0px 10px 10px 0px;">You have indicated that you are over 30 years of age, this means you are not eligible for an Australian working holiday maker visa. Please see the Department of Immigration and Citizenship website for other ways to work in Australia.</p></div>';
		}
	}else if(value == "18to24"){
		document.getElementById('check25').checked = false;
		document.getElementById('check30').checked = false;
		document.getElementById('over30error').innerHTML = '';
	}else if(value == "25to30"){
		document.getElementById('check18').checked = false;
		document.getElementById('check30').checked = false;
		document.getElementById('over30error').innerHTML = '';
	}else if(value == "male"){
		document.getElementById('checkF').checked = false;
	}else if(value == "female"){
		document.getElementById('checkM').checked = false;
	}
}


// checklist show/hide functionality
var checklist_item1 = false; 
var checklist_item2 = false;
var checklist_item3 = false;
var checklist_item4 = false;
var checklist_item5 = false;
var checklist_item6 = false;
var checklist_style = 'wh_checklist_hide';
var checklist_content = '';
function checklistOn(id){
	if(id == 1){
		if(!checklist_item1){ //if hidden, show
			checklist_item1 = true; 
			checklist_style = 'wh_checklist_show';
			checklist_content = '<p>Visitors and permanent migrants need authorisation from the Department of Immigration and Citizenship to work in Australia. Applicants can register over the internet at <a href="http://www.immi.gov.au" target="_blank">immi.gov.au</a>. If you live outside Australia, visit the Australian Taxation Office website, <a href="http://www.ato.gov.au" target="_blank">ato.gov.au</a>.</p>';
		}else{ //if visible, hide
			checklist_item1 = false; 
			checklist_style = 'wh_checklist_hide';
			checklist_content = '';
		}
	}else if(id == 2){
		if(!checklist_item2){ //if hidden, show
			checklist_item2 = true; 
			checklist_style = 'wh_checklist_show';
			checklist_content = '<p>A tax file number (TFN) is a unique number issued by the Australian Taxation Office. All Working Holiday Visa applicants need to apply for a TFN before they can start work in Australia. For details visit the Australian Taxation Office website, <a href="http://www.ato.gov.au" target="_blank">ato.gov.au</a>.</p>';
		}else{ //if visible, hide
			checklist_item2 = false; 
			checklist_style = 'wh_checklist_hide';
			checklist_content = '';
		}
	}else if(id == 3){
		if(!checklist_item3){ //if hidden, show
			checklist_item3 = true; 
			checklist_style = 'wh_checklist_show';
			checklist_content = '<p>You should have enough money to live on until you receive your first pay.</p>';
		}else{ //if visible, hide
			checklist_item3 = false; 
			checklist_style = 'wh_checklist_hide';
			checklist_content = '';
		}
	}else if(id == 4){
		if(!checklist_item4){ //if hidden, show
			checklist_item4 = true; 
			checklist_style = 'wh_checklist_show';
			checklist_content = '<p>If you&rsquo;re planning to stay and work here for a while, it&rsquo;s a good idea to open a bank account within six weeks of your arrival. Advise your bank of your tax file number to avoid higher rates of taxation on interest earned.</p>';
		}else{ //if visible, hide
			checklist_item4 = false; 
			checklist_style = 'wh_checklist_hide';
			checklist_content = '';
		}
	}else if(id == 5){
		if(!checklist_item5){ //if hidden, show
			checklist_item5 = true; 
			checklist_style = 'wh_checklist_show';
			checklist_content = '<p>Save money by packing suitable work attire before you leave home.</p>';
		}else{ //if visible, hide
			checklist_item5 = false; 
			checklist_style = 'wh_checklist_hide';
			checklist_content = '';
		}
	}else if(id == 6){
		if(!checklist_item6){ //if hidden, show
			checklist_item6 = true; 
			checklist_style = 'wh_checklist_show';
			checklist_content = '<p>Ensure you have the necessary insurance and health cover before any travel to avoid any unexpected costs.</p>';
		}else{ //if visible, hide
			checklist_item6 = false; 
			checklist_style = 'wh_checklist_hide';
			checklist_content = '';
		}
	}
	eval("document.getElementById('wh_checklist_item" + id + "')").className = checklist_style;
	eval("document.getElementById('wh_checklist_item" + id + "')").innerHTML = checklist_content;
}

