function stay(){
		return false;
}




function get_clicked_url(image,url){
	document.location.href='http://'+url+'/componenten/foto_download/force-download.php?file='+image;
}


function newWindow(nr,w,h, menuId, task) {
	if(nr == 1){
		var webaddress;
		webaddress = 'e2/index.php?gal_nr='+menuId;
	}
	var viewimageWin = window.open(webaddress,'New_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h);
	viewimageWin.moveTo(screen.availWidth/2-(w/2),screen.availHeight/2-(h/2));
}

function get_board_read(nr,pageno,subno,lang){
	document.location='index.php?page='+pageno+'&sub='+subno+'&board='+nr+'&up=do&user_lang='+lang+'&link=gastenboek/list.php&pos=0';
}

function get_board_wright(nr,pageno,subno,lang){
	document.location='index.php?page='+pageno+'&sub='+subno+'&board='+nr+'&up=do&user_lang='+lang+'&link=gastenboek/list.php';
}

function get_next_set(nr,pageno,subno,begin,end,max_nr){
	document.location='index.php?page='+pageno+'&sub='+subno+'&board='+nr+'&start='+begin+'&stop='+end;
}

function get_previous_set(nr,pageno,subno,begin,end){
	if(begin < 0){
		return false;
	}
	document.location='index.php?page='+pageno+'&sub='+subno+'&board='+nr+'&start='+begin+'&stop='+end;
}

function calendar(p,s,m,y,lang){
	document.location='index.php?page='+p+'&sub='+s+'&m='+m+'&y='+y+'&link=agenda/todo_cal.php&user_lang='+lang+'&up=do';
}

function protected_calendar(m,y,lang,subid,tabid){
	document.location='index.php?page=9999&a=1&up=do&sub='+subid+'&tabid='+tabid+'&m='+m+'&y='+y+'&up=do&user_lang='+lang;
}

function validate(no_name,no_email,no_msg) {
	if(document.form_1.from_name.value == "") {
		alert(no_name);
		document.form_1.from_name.focus();
		return false;
	}
	if(document.form_1.from_mail.value == "") {
		alert(no_email);
		document.form_1.from_mail.focus();
		return false;
	}
	if(document.form_1.msg_text.value == "") {
		alert(no_msg);
		document.form_1.msg_text.focus();
		return false;
	}
return true;
}
/*catalogue*/
function get_cats_location(cat,page,subpage,lang){
	document.location.href='?page='+page+'&sub='+subpage+'&link=catalogue/prod_list.php&up=do&user_lang='+lang+'&category='+cat+'&c=1';
}

/*recepten*/
function get_recept_cats_location(cat,page,subpage,lang){
	document.location.href='?page='+page+'&sub='+subpage+'&link=recepten/recepten.php&up=do&user_lang='+lang+'&category='+cat+'&c=1';
}

/****************************************************************************************
     Script to detect if Caps Lock is engaged when a key is pressed in a text input
                   v2.0.0 written by Mark Wilton-Jones, 1/11/2003
*****************************************************************************************/
function capsDetect( e , pos, msg) {
	
	if( !e ) { e = window.event; } if( !e ) { MWJ_say_Caps( false ); return; }
	//what (case sensitive in good browsers) key was pressed
	var theKey = e.which ? e.which : ( e.keyCode ? e.keyCode : ( e.charCode ? e.charCode : 0 ) );
	//was the shift key was pressed
	var theShift = e.shiftKey || ( e.modifiers && ( e.modifiers & 4 ) ); //bitWise AND
	//if upper case, check if shift is not pressed. if lower case, check if shift is pressed
	//this is bee changed by the webmaster - for original version see above//
	if( ( theKey > 64 && theKey < 91 && !theShift ) || ( theKey > 96 && theKey < 123 && theShift ) ){
		if(pos == 1){
			Tip(msg, FIX, ['name', 0, 5], DURATION, 2500,BALLOON, true, ABOVE, true);
		}else if(pos == 2){
			Tip(msg, FIX, ['pass', 0, 5], DURATION, 2500,BALLOON, true, ABOVE, true);
		}
	}
}

function click(e) {
	if(document.all) {
		if(event.button==2) {
			alert("Copyrights - Visit Nijhof");
			return false;
		}
	}
	if(document.layers) {
		if(e.which==3) {
			alert("Copyrights - Visit Nijhof");
			return false;
		}
	}
}
if(document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}