/* Afdrukken */
function OpenPopup(URL) {
day = new Date();
id = day.getTime();
eval("page = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=0,width=800,height=600,left = 236.5,top = 108.5');");
}  

function printPage() {
if (window.print) {
agree = confirm('Wil je deze camping informatie van WiFi Campings afdrukken ?');
if (agree) window.print(); 
   }
}

/* Bookmark */

function bookmarksite(title, url)
{

if (document.all)
window.external.AddFavorite(url,title)
	
}

/* Tell a friend */
function Tellafriend(URL) {
day = new Date();
id = day.getTime();
eval("page = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=0,width=500,height=350,left = 236.5,top = 108.5');");
}  

/* Select Inpaklijst */

function selectall(checkbox) {
for (i = 0; i < checkbox.length; i++) {
checkbox[i].checked = true;
}
return "Alles selecteren";
}

function deselectall(checkbox) {
for (i = 0; i < checkbox.length; i++) {
checkbox[i].checked = false;
}
return "Alles deselecteren";
}

/* Expand Inpaklijst */

	function expandRow(trid,imgid,rtel){

		var img = document.getElementById(imgid);
		var row = document.getElementById(trid+'_1');
		
		if (img && row){
			if (row.style.display == 'none'){
				img.src = '/images/minus.gif';
				tel = 1;
				while(row){
					row.style.display = ''
					tel ++;
					 row = document.getElementById(trid+'_' + tel);
					
				}
				
				row = document.getElementById('prow_' + rtel);
				if (row){
					row.className = 'camhead_1';
				}
				
			
			}else{
				tel = 1;
				while(row){
					row.style.display = 'none'
					tel ++;
					 row = document.getElementById(trid+'_' + tel);
					
				}
				row = document.getElementById('prow_' + rtel);
				if (row){
					row.className = 'camhead_0';
				}
				

				img.src = '/images/plus.gif';
			}
			
		}
		
	}