function dyimage(p) {
	if (p.objname)
		objname = p.objname;
	else
	 	objname="dyimagetarget";
//	alert(objpointer);
	if (p.path)
		imagepath = p.path;
	else
		imagepath = "";
	imagelist = p.images;
	this.displayimage = function (i) {
		if (i >=0 && i < imagelist.length) {
			document.getElementById(objname).src=imagepath+""+imagelist[i];
		}
	}	
}
