function OpenPics(id, iwidth, iheight, salt){
//	window.open ('/image.asp?id='+ id +'&alt='+ salt, 'pics', 'height='+iheight+', width='+ iwidth +', left=125,top=100')
	newWindow = window.open("","newWindow","width="+iwidth+",height="+iheight+",left=125,top=100");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+salt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<img src="image.aspx?id='+id+'" alt="'+salt+'">');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function checksearch(fm){
	if (fm.zoek.value == '') 
	{
		alert('Vul minimaal één trefwoord in.');
		return false;
	}
	else return true;
}

function checklogin(fm)
{
	if ((fm.gebruikersnaam.value == '') || (fm.wachtwoord.value == ''))
	{
		alert('Vul beide velden in.');
		return false;
	}
	else {
		return true;
	}
}

function OpenTipmanager(){
	window.open ('/image.asp?id=', 'pics', 'height=324, width=500, left=125,top=100')
}
function myprint(){
window.print()
}

function ShowHide(elm,styleElmC) {
		styleElm = document.getElementById(elm).style;
			if (styleElm.display == 'none') {
				styleElm.display='block';
			}
			else {
				styleElm.display='none';
			}
		}
		
function RunFlash(SWFNaam)
{
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="862" height="191" id="flashmovie" align="middle" VIEWASTEXT>');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="lib/flash/'+SWFNaam+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="lib/flash/'+SWFNaam+' SWFNaam" quality="high" bgcolor="#ffffff" width="862" height="191" name="flashmovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>\n');
}
