function sendPic(picture)
	{
	ext = 'width=620,height=680,top=0'
	ur = 'sendpic2.php?p='+picture
	send = window.open(ur,'Send',ext);
	
    //alert(picture);
	}
	
function printPic(picture)
	{
	//alert(picture)
	ext = 'width=620,height=530,top=10'
	ur = 'printpic.php?p='+picture
	send = window.open(ur,'Print',ext);
	}
	
function WisselKleur(what,onoff)
	{
	if (onoff == 1) what.style.backgroundColor = '#006FCA';
	if (onoff == 0) what.style.backgroundColor = '';
	}
	
	
function bigger()
{
document.getElementById('picture').style.display = 'block';
}	

function closediv()
{
document.getElementById('picture').style.display = 'none';
}

function CheckEmpty(what)
{
if (what == "") return false;
else return true;
}

function ShowBigger(pic,w,h)
{
w = w + 20;
h = h + 60;

widthmid = screen.availWidth / 2;
heightmid = screen.availHeight / 2;
left = widthmid - (w / 2);
boven = heightmid - (h / 2);


ext = 'width='+w+',height='+h+',left='+left+',top='+boven;
url = '../upload/'+pic;
win = window.open('/tgj-communicatie/xhtml/blank.html','',ext);
win.document.write('<body style="background-color:#EDF4D3;font-family:Verdana;font-size:11px;">');
win.document.write('<img src="'+url+'" border="1" style="border-color:#00432C;padding:2px;"><p />');
win.document.write('<div align="center"><a href="javascript:window.close();" style="color:#00432C;">Sluit venster</a></div>');
}


function matchHeight(){ 
     var divs,contDivs,maxHeight,divHeight,d; 
     // get all <div> elements in the document 
     divs=document.getElementsByTagName('div'); 
     contDivs=[]; 
     // initialize maximum height value 
     maxHeight=0; 
     // iterate over all <div> elements in the document 
     for(var i=0;i<divs.length;i++){ 
          // make collection with <div> elements with class attribute 'container' 
          if(/\bcontainer\b/.test(divs[i].className)){ 
                d=divs[i]; 
                contDivs[contDivs.length]=d; 
                // determine height for <div> element 
                if(d.offsetHeight){ 
                     divHeight=d.offsetHeight; 
                } 
                else if(d.style.pixelHeight){ 
                     divHeight=d.style.pixelHeight; 
                } 
                // calculate maximum height 
                maxHeight=Math.max(maxHeight,divHeight); 
          } 
     } 
     // assign maximum height value to all of container <div> elements 
     for(var i=0;i<contDivs.length;i++){ 
          contDivs[i].style.height=maxHeight+'px'; 
     } 
}
