
function galleryImage(name , picname, artist, picwidth, picheight, comment){
	var ph = document.getElementById('gallery_home') ;
	ph.innerHTML = '';
	var t = document.createElement('H2') ;
	t.innerHTML = name ;
	ph.appendChild(t) ;
	if (artist) {
		t = document.createElement('H4');
		t.innerHTML = artist
		ph.appendChild(t) ;
	}
	if (comment) {
		t = document.createElement('P');
		t.innerHTML = comment ;
		ph.appendChild(t) ;
	}
	t = document.createElement('IMG');
	t.src = picname ;
	t.className = 'framed' 
	t.setAttribute('width',picwidth)
	t.setAttribute('height',picheight)
	ph.appendChild(t) ;
}