<!--//--><![CDATA[//><!--
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>
<!--
window.defaultStatus=(document.title);

function ShowStatusMsg(msgStr) {
  status=msgStr;
}

function clearText(thefield){
	if (thefield.defaultValue==thefield.value) {
	thefield.value = '';
	}
}	

function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function validateForm() {
  var i,p,nm,test,args=validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) {nm=val.name; if ((val=val.value)!="") {
		if (test.charAt(0) == 'R') document.form1.elements[nm].style.border = '1px solid #CCCCCC';
			if (test.indexOf('isEmail')!=-1) {
			  var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
			  if (filter.test(val)) {document.form1.elements[nm].style.border = '1px solid #CCCCCC';} else {document.form1.elements[nm].style.border = '1px solid #CC0000';}
			}
     	}
	 	else if (test.charAt(0) == 'R') document.form1.elements[nm].style.border = '1px solid #CC0000'; 
	}
  } 
}

function generate_address(suffix, hostname, username) {
	var atsign = "&#64;";
	var addr = username + atsign + hostname + '.' + suffix;
	document.write( 
	"<" + "a" + " " + "href=" + "mail" + "to:" + addr + ">" +
	addr +
	"<\/a>");
}

function printversie(mypage) {
	openBrWindow('/print.htm?page='+mypage,'print','menubar=yes,scrollbars=yes,width=800,height=500');
}
//-->