<!--
var is_ie = false;
var b = new BrowserInfo();

if ( b.name == "Microsoft Internet Explorer"){
	is_ie = true;
} 

function BrowserInfo()
{
  this.name = navigator.appName;
  this.codename = navigator.appCodeName;
  this.version = navigator.appVersion.substring(0,4);
  this.platform = navigator.platform;
  this.javaEnabled = navigator.javaEnabled();
  this.screenWidth = screen.width;
  	this.screenHeight = screen.height;
}

function putBR(){
	  if ( ! is_ie) {
	    document.write(" <br>");
  	}
}
         

function guestbookcheck(){
	var answer = askQuestion(); 
	if (answer) {
		document.gbform.action="/contactform/guestbook.php";
		return true;
	} else {
		alert("Wrong! Try again.");
		return false;
	}
}

function contactcheck(){
	var answer = askQuestion(); 
	if (answer) {
		document.emailform.pin.value="45734";
		return true;
	} else {
		alert("Wrong! Try again.");
		return false;
	}
}
function askQuestion(){
	var first = Math.round(Math.random()*10);
	var second = Math.round(Math.random()*10);
	var answer = prompt( first + " + " + second + " = ?", "");
	result = first + second;
	return answer==result;
}
-->
