function get_edress(edress){
	var re= /_at_/gi;
	edress = edress.replace(re,'@');
	var re= /_dot_/gi;
	edress = edress.replace(re,'.');
	var the_link="mai" + "lto" +":"+edress+"" ;
	window.location=the_link;
}

function resize_image(img, maxwidth, maxheight){
	var oldwidth = img.width;
	var oldheight = img.height;
	if (oldwidth > maxwidth || oldheight > maxheight){
		if ((oldwidth / maxwidth) > (oldheight / maxheight)){
			img.width = maxwidth;
			img.height = oldheight / (oldwidth / maxwidth);
		}else{
			img.height = maxheight;
			img.width = oldwidth / (oldheight / maxheight);
	    }
	}
	//alert(img.width);
}

function open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable){ 
	toolbar_str = toolbar ? 'yes' : 'no'; 
	menubar_str = menubar ? 'yes' : 'no'; 
	statusbar_str = statusbar ? 'yes' : 'no'; 
	scrollbar_str = scrollbar ? 'yes' : 'no'; 
	resizable_str = resizable ? 'yes' : 'no'; 
	window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str); 
} 

function fnPreSizeImages(sCount){ // wordt niet gebruikt
	alert(sCount);
	for(var i=0; i<document.images.length; i++){
		if(document.images[i].src.indexOf('/img_art_thumbs/') >-1){
			resize_image(document.images[i],240,160);
		}
	}
	

	for(var j=1; j<sCount+1; j++){
		//alert('div_pic'+j);
		//alert(document.getElementById('div_pic'+j).width);
		document.getElementById('div_pic'+j).style.width='230px';
		//alert('ok2');
	}
}