// BrowserCheck Object
function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.dom = document.getElementById?true:false;
	this.min = (this.ns||this.ie)

   if (!this.ie) alert ('gecko')
}
	 function checkform_01() {
	 name = document.forms[0].name.value;
	 mail = document.forms[0].mail.value;
	 phone = document.forms[0].phone.value;

	 if (name.length == 0) {alert('Du måste ange ett namn!'); document.forms[0].name.focus(); return false;}
	 else if (mail.length == 0) {alert('E-post adress saknas!'); document.forms[0].mail.focus(); return false;}
	 else if (phone.length == 0) {alert('Du måste ange ett telefonnummer!'); document.forms[0].phone.focus(); return false;}
	 else {return true;}
  }

function safemail(name, domain, display) {
displayed=(typeof(display)=="undefined") ? name+"@"+domain : display
document.write('<a href=mailto:' + name + '@' + domain + '>' + displayed + '</a>');
}
