function show(id){
	document.getElementById(id).style.display='block';
	document.getElementById(id).style.visibility='visible';
}

function hide(id) {
	document.getElementById(id).style.display='none';
	document.getElementById(id).style.visibility='hidden';
}

function testFormMail() {
	var msg = "";

		if (document.forms['form'].elements['email'].value != "")	{
		indexAroba = document.forms['form'].elements['email'].value.indexOf('@');
		indexPoint = document.forms['form'].elements['email'].value.indexOf('.');
		if ((indexAroba < 0) || (indexPoint < 0))		{
			msg += "Incorrect address!\n";
		}
	}
	else	{
		msg += "Sorry, can you please enter your email?\n";
	}

if (document.forms['form'].elements['name'].value == "")	{
		msg += "Sorry; can you please enter your name?\n";
	}
	
if (document.forms['form'].elements['subject'].value == "")	{
		msg += "Can you please enter a subject title?\n";
	}
	
if (document.forms['form'].elements['message'].value == "")	{
		msg += "Please enter a message, so we know what your contacting us about.\n";
	}

	if (msg == "") return(true);
	else	{
		alert(msg);
		return(false);
	}
}

function loadContent(text){
	document.getElementById('clientDetails').innerHTML = text;
}