function centreerPopUp(url,name,width,height,scrollbars) { 
 
	if( scrollbars == null ) scrollbars = "0" 
 
	str  = ""; 
	str += "resizable=1,"; 
	str += "scrollbars=" + scrollbars + ","; 
	str += "width=" + width + ","; 
	str += "height=" + height + ","; 
	str += "location=" + "0,"; 
 
	if ( window.screen ) { 
		var ah = screen.availHeight - 30; 
		var aw = screen.availWidth - 10; 
 
		var xc = ( aw - width ) / 2; 
		var yc = ( ah - height ) / 2; 
 
		str += ",left=" + xc + ",screenX=" + xc; 
		str += ",top=" + yc + ",screenY=" + yc; 
	} 
	window.open(url,name,str); 
}

function callJS(jsStr) { //v2.0
  return eval(jsStr)
}


function highlightitem(itemid) {
	document.getElementById(itemid).className="lijst-rij-contentHL";
}

function dehighlightitem(itemid) {
	document.getElementById(itemid).className="lijst-rij-content";
}


//<tr class="lijst-rij-content" id="mutaties_0" onmouseover="javascript:highlightitem('mutaties_0')" onmouseout="javascript:dehighlightitem('mutaties_0')"></tr>


function clearText(thefield) {
	if (thefield.defaultValue==thefield.value) {
		thefield.value = "";
	}
} 

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}


function clearTexttest() {
		alert('hello');
}

// clear searchform to default values
function ConfirmCancelClearAll (){
	if (confirm("Are you sure you want to clear the form? Click OK to clear it.")) {
		document.searchform.reset();
	}
	return true;
}


// clear submitform default values
function ClearAllolddata (){
	document.submitform.reset();
	return true;
}

/*
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
	// Blurring links:
function blurLink(theObject)	{	//
	if (msie4)	{theObject.blur();}
}
*/

function popUp(URL, window_name) {
	eval(window_name + " = window.open(URL, '" + window_name + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=640,height=700');");
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function fullscreenmode() {
	self.moveTo(0,0);
	self.resizeTo(screen.availWidth,screen.availHeight);
}
function menu_over(div_id) {
  var theDiv = document.getElementById(div_id);
  theDiv.style.backgroundColor="#145B9B";
}
function menu_out(div_id) {
  var theDiv = document.getElementById(div_id);
  theDiv.style.backgroundColor="transparent";
}

var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 0 //set x offset of bar in pixels
var startY = 0 //set y offset of bar in pixels
var verticalpos="frombottom" //enter "fromtop" or "frombottom"

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}

function encloseFlash() {
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="750" height="50" id="eysinkheader" align="">\n');
   document.write('<param name="movie" value="/fileadmin/templates/main/flash/eysinkheader.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="bgcolor" value="#FF0000" />\n');
   document.write('<param name="wmode" value="opaque" />\n');
   document.write('<embed src="/fileadmin/templates/main/flash/eysinkheader.swf" wmode="transparent" quality="high" bgcolor="#FF0000" width="750" height="50" name="eysinkheader" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\n');
   document.write('</object>\n');
}


function correctPNG() { // correctly handle PNG transparency in Win IE 5.5 & 6.
	var arVersion = navigator.appVersion.split("MSIE");
	var version = parseFloat(arVersion[1]);
	if ((version >= 5.5) && (document.body.filters)) {
		for(var i=0; i<document.images.length; i++) {
			var img = document.images[i];
			var imgName = img.src.toUpperCase();
			if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
				var imgID = (img.id) ? "id='" + img.id + "' " : "";
				var imgClass = (img.className) ? "class='" + img.className + "' " : "";
				var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
				var imgStyle = "display:inline-block;" + img.style.cssText ;
				if (img.align == "left") imgStyle = "float:left;" + imgStyle;
				if (img.align == "right") imgStyle = "float:right;" + imgStyle;
				if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
				var strNewHTML = "<span " + imgID + imgClass + imgTitle
				+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
				+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
				+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" ;
				img.outerHTML = strNewHTML;
				i = i-1;
			}
		}
	}    
}


function setAlfaFormLetter(letter) {
	var mForm = document.getElementById('alfaform');
	var qcriteria = document.getElementById('qcriteria');
	qcriteria.value = letter;
	mForm.submit();
}



/*

Event.observe(window, 'load', function() {
	$("navigation").getElementsBySelector('li.bull').each( function(elem) {
		Event.observe(elem, 'mouseover', function(evt){
			elem.addClassName('sfhover');
		});
		Event.observe(elem, 'mouseout', function(evt){
			elem.removeClassName('sfhover');
		});
	});
});




Event.observe(window, 'load', function() {
  Event.observe('signinForm', 'submit', checkForm);
});

window.attachEvent("onload", testMaar);

function testMaar() {
	alert('piep');
}


function createDemos() {

	new Tip('lettertjes', 'This tooltip hooks to the top right corner of this element.<br/> You can do a lot more with hooking, read below.', { className: 'pinktip', title: 'hooking', hook: {tip: 'bottomLeft', target: 'topRight'}});


	new Tip('tipEffect', 'Fade your tooltips in and out for example.', { effect: 'appear' });
	
	new Tip('tip2', 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.', {title : 'Lorem Ipsum'});
	new Tip('tip3', 'offset {x:60,y:-100}', {title: 'Tooltip with offset', className: 'darktip', offset: {x:60, y:-100}});
	new Tip('tip4', 'Fixed tooltip', { fixed: true, offset: { x: 0, y:18 } });
	new Tip('tip5', 'Instead of putting the tooltip on the element you are hovering, you can target a different element.', { className: 'darktip', title: 'This tooltip has &quot;11&quot; as target.', target: 'tip11', offset: {x:0,y:0}});
	new Tip('tip6', 'This tooltip hooks to the top right corner of this element.<br/> You can do a lot more with hooking, read below.', { className: 'pinktip', title: 'hooking', hook: {tip: 'bottomLeft', target: 'topRight'}});
	new Tip('tip7', 'You can use html within a tooltip. <br/><strong>Go <\/strong><span style="text-decoration: line-through;">crazy<\/span><br/><br/><img src="images/demo_flower.gif" alt=""/>', {title: 'HTML', className: 'darktip'});
	new Tip('tip8', 'This tooltip uses &quot;appear&quot;', { className: 'pinktip', title: 'Show your tooltips with Scriptaculous effects!', effect: 'appear', hook: {target: 'topRight', tip: 'bottomLeft'}});
	new Tip('tip9', 'This tooltip uses the &quot;blind&quot; effect.', { title: 'more effects', className: 'darktip', effect: 'blind', hook: {target: 'topRight', tip: 'bottomLeft'}});
	
	new Tip('tip10', 'Click any of the links on the right, 1, 2, 3 to update this tooltip.', {title : 'Update existing tooltips'});
	
	new Tip('tip11', 'This tooltip opens with a 500ms delay.<br/><br/>By default all tooltips open with a short delay, so you can mouseover your page safely without opening up tooltips right away.', {title : 'Delay', className: 'darktip', delay: 0.5});
	new Tip('tip12', 'You have complete control over the way you open and <a href="javascript:;" class="close">close</a> tooltips.', {title : 'More control', className: 'pinktip', showOn: 'click', hideOn: {element: '.close', event: 'click'}, closeButton: true});
	new Tip('tip13', Projects.getTipContent('starbox'), { className: 'ideaTip', effect: 'blind', hook: { tip: 'bottomLeft', target: 'topRight' }, hideOn: false, hideAfter: 1.5, offset: { x: 5, y: 5 }});
	new Tip('tip14', 'This tooltip will hide itself when you click the link again.', {title : 'Toggle tooltips', className: 'pinktip', showOn: 'click', hideOn: 'click', closeButton: true});
	new Tip('tip15', 'Everything you need to customize your tooltips can be done through CSS. Even the close buttons can be styled with a mouseover state.', {title : 'Style your tooltips', className: 'protoClassic', showOn: 'mousemove', hideOn: {element: 'closeButton', event: 'click' }});
	
	var supportClone = $('donate').cloneNode(true);
	supportClone.insert({ top: '<p>Instead of using a string for the content, you can insert an element created through to DOM. The content inserted into this tooltip is a clone of the support message.<strong/><p/>' });
	new Tip('tip16', supportClone, { title : 'Element as tooltip', hideOn: { element: 'tip', event: 'mouseout'}, hideAfter: 1.5, effect: 'appear', hook: { tip: 'topLeft', target: 'bottomLeft'}, offset: { x: 0, y: 5 }, className: 'pinktip'});
	
	new Tip('tip17', 'This tooltip will automatically hide after a two seconds of inactivity. That means, when you are not on the tooltip itself or on the element that opened the tooltip.', { title : 'Auto hide', hideOn: false, hideAfter: 2, hook: { tip: 'topRight', target: 'topLeft'}, offset: { x: -5, y: 0 }});
	
	new Tip('tip18', '<p>By default, all tooltips will stay within the viewport. When you resize your browser window you can notice it on this tooltip.<\/p><p>Tooltips that use hooking or have a fixed position will not stay within the viewport. Prototip assumes that you know what you want when you use those options.<\/p>', { title : 'Stay within the viewport', className: 'darktip' });
	
	// boxed tooltips
	new Tip('box1', "hook: { target: 'topLeft', tip: 'bottomRight'}", {title: 'hooking', className: 'pinktip', hook:{target: 'topLeft', tip: 'bottomRight'}, offset: {x:0,y:0} });
	new Tip('box2', "hook: {target: 'topLeft', tip: 'bottomRight'},<br/> offset{x:0, y-10}", {title: 'hooking with offset', className: 'pinktip', hook:{target: 'topLeft', tip: 'bottomRight'}, offset: {x:0,y:-10} });
	new Tip('box3',  "hook: {target: 'topRight', tip: 'bottomLeft'}", {title: 'hooking', className: 'pinktip', hook: {target: 'topRight', tip: 'bottomLeft'}, offset: {x:0,y:0} });
	new Tip('box4',  "hook: {target: 'topLeft', tip: 'topRight'}, <br/>offset: {x: -5, y: 0}", {title: 'hooking with x-offset',className: 'pinktip', hook:{target: 'topLeft', tip: 'topRight'}, offset: {x:-5,y:0} });
	new Tip('box5', "target: 'box1', <br/>hook: {target: 'topLeft', tip 'bottomRight'}", {title: 'target box1 instead', className: 'pinktip', target: 'box1', hook:{target: 'topLeft', tip: 'bottomRight'}, offset: {x:0,y:0} });
	new Tip('box6', "hook: {target: 'topRight', tip: 'topLeft'}, <br/>offset: {x: 5px, y: 0}", {title: 'hooking with x-offset', className: 'pinktip', hook:{target: 'topRight', tip: 'topLeft'}, offset: {x:5,y:0}, viewport: true });
	new Tip('box7', "hook: {target: 'bottomLeft', tip: 'topRight'}", {title: 'hooking', className: 'pinktip', hook:{target: 'bottomLeft', tip: 'topRight'}, offset: {x:0,y:0} });
	new Tip('box8', "hook: {target: 'bottomLeft', tip: 'topLeft'},<br/> offset: {x: 0, y: 5}", {title: 'hooking with y-offset', className: 'pinktip', hook:{target: 'bottomLeft', tip: 'topLeft'}, offset: {x:0,y:5} });
	new Tip('box9', "hook: {target: 'bottomRight', tip: 'topLeft'},<br/> offset: {x: 5, y: 5}", {title: 'hooking with x and y-offset', className: 'pinktip', hook:{target: 'bottomRight', tip: 'topLeft'}, offset: {x:5,y:5} });
	
	Projects.createIdeas('prototip');

}
document.observe('dom:loaded', createDemos);

function updateExampleTip(newClass, txt) {	
	new Tip('tip10', txt, { title: 'Updated', className: newClass});
}

*/

