// JavaScript Document
//  

function showCommentForm()
{
	if(document.getElementById("formDiv").style.display == "block" )
	{
		document.getElementById("formDiv").style.display = "none";
	}
	else
	{
		document.getElementById("formDiv").style.display = "block";
	}
}
function validForm(){
	
	var name = document.getElementById("name");
	var email = document.getElementById("email");
	var add = "";
	
	var patternEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	
	if( name.value == "" )
	{
		add += "Please provide your Name.\n";
	}
	
	if (!patternEmail.test(email.value)) {
		add += "Please provide a valid Email Address\n" ;
	}
	
	if(add != ""){
		alert(add);
		return false;
	}else{
		alert("Thank you for your contact.");
		return true;
	}	
	
}

//BLOCK MOUSE RIGHT CLICK
function right(e) { 
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		alert('This Page is fully protected!'); 
		return false; 
	} 
	
	return true;
} 


document.onmousedown=right; 
if (document.layers) 
	window.captureEvents(Event.MOUSEDOWN); 
	window.onmousedown=right;
 //-->
