function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
function showhide(id) {
	if (document.getElementById){
		obj = document.getElementById(id);
		if (obj.style.display == "none"){
			obj.style.display = "";
		} else {
		obj.style.display = "none";
		}
	}
}
function check() {
	inputs = document.getElementsByTagName('input');
	var count = 0;
	var fout = false;

	for (i = 0; i < inputs.length; i++)	{
		if (inputs[i].type == 'file')	{
			count++;
			
			if (inputs[i].value != '') {
				var ext = inputs[i].value;
				ext = ext.substring(ext.length-3,ext.length);
				ext = ext.toLowerCase();
				
				if(ext != 'jpg') {
					alert('Foto ' + (count) + ': alleen .jpg bestanden worden ondersteund');
					fout = true;
				}
			}
		}
	}
	
	if (fout)	{
		return false; 
	} else {
		return true;
	}	
}
function bevestig(){
	var bevestig = confirm("Weet u zeker dat u deze afbeelding wilt verwijderen?");
	alert(bevestig);
}

function startDiaShow(){
	
	if (document.all){
		document.images.DiaShow.style.filter="blendTrans(duration=2)";
		document.images.DiaShow.style.filter="blendTrans(duration=DuurFade)";
		document.images.DiaShow.filters.blendTrans.Apply();
	}
	
	document.images.DiaShow.src = voorLaden[jss].src;
		
	if (document.all) document.images.DiaShow.filters.blendTrans.Play();
		
	jss = jss + 1;
	
	if (jss > (pss)) jss=1;
	
	tss = setTimeout('startDiaShow()', Snelheid);
}

function load(){
	showhide('knop_showing');
	showhide('knop_forsale');
	showhide('knop_broodmares');
	return(false);
}


/***********************************************
* Fading Ticker Tape Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450)
}

function bgcolorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
tickerobject.style.backgroundColor="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("bgcolorfade()",20);	
}
else{
tickerobject.style.backgroundColor=endcolor;
frame=20;
hex=(fadescheme==0)? 255 : 0
}   
}

function updatecontent(){
if (ie||ns6)
bgcolorfade()
if (ns4){
tickerobject.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>')
tickerobject.subtickertape.document.close()
}
else 
tickerobject.innerHTML=news[i]

if (i<news.length-1)
i++
else
i=0
setTimeout("updatecontent()",speed)
}