function viewpic(width, height)
{
	im = window.open('', 'pics', 'top='+Math.max(0,(screen.height-height)/2)+',left='+Math.max(0,(screen.width-width)/2)+',width='+width+',height='+height+', scrollbars=yes, menu=no,status=yes,resizable=no');
	im.focus();
}

function winop(imgurl, width, height)
{
    var title = "window";
    im = window.open('', 'win','top=40,left=40,width='+width+',height='+height+', scrollbars=no, menu=no,status=no,resizable=no');
    im.focus();
    im.document.open ("text/html");
    im.document.write ('<html><title>'+title+'</title><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#ffffff><table width=100% height=100% border=0 cellpadding=0 cellspacing=0><tr><td align=center><img src='+imgurl+' width='+width+' height='+height+'></td></tr></table></body></html>');
    im.document.close ();
}

	var CoolImage;
	function Zoom(a) {
		CoolImage=a;
		info = window.open("/tmp.html", "info", "top=100, left=100, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=no, resizable=1, width=100, height=100");
	}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function ChangeFoto(sImg)
        {
                var img = document.getElementById('ImgIDF');
                img.src = sImg;
        }

function ChangeBG(img, ID)
        {
                var td = document.getElementById(ID);
                td.background = img;
        }

