
//Switches visibility of a contact form
function switchForm(){
var s = document.getElementById('switcher').innerHTML;
	switch(s){
		case "0": hideCForm();		
		break;
		case "1": showCForm();
		break;
		default: alert('ERROR: Switcher out of scope!');
		break;
	}
}

//hides form
function hideCForm(){
	document.getElementById('switcher').innerHTML = '1';
	document.getElementById('contact_text').innerHTML = 'show contact form';
	document.getElementById('contact_form').style.display = 'none';
}

//shows form
function showCForm(){
	document.getElementById('switcher').innerHTML = '0';
	document.getElementById('contact_text').innerHTML = 'hide contact form';
	document.getElementById('contact_form').style.display = 'block';
}

//shows hint message
function hintAppear(id){
	document.getElementById('h'+id).style.visibility = 'visible';
}
//hides hint
function hintDisAppear(id){
	document.getElementById('h'+id).style.visibility = 'hidden';
}
