/*
function viewpict(url,ample,altura,finestra,barres,xloc,yloc) {
	//finestreta = window.open(url,finestra,"left="+xloc+",top="+yloc+",toolbar=no,scrollbars=" + barres + ",directories=no,status=no,menubar=no,resizable=no,width=" + ample + ",height=" + altura);
	finestreta = window.open(url,finestra,"left="+xloc+",top="+yloc+",toolbar=no,scrollbars=" + barres + ",directories=no,status=no,menubar=no,resizable=no,width=" + ample + ",height=" + altura);
	finestreta.location=url;
	finestreta.focus();
}
*/
function viewpict(urlpath,ample,altura,titol) {
	htmlcode = "";
	htmlcode += "<html><head><title>EVA GATELL BREIS - "+titol+"</title>";
	htmlcode += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">";
	htmlcode += "<link rel=\"stylesheet\" href=\"styles.css\" type=\"text/css\">";
	htmlcode += "<script src=\"scripts.js\" type=\"text/javascript\"></script>";
	htmlcode += "</head>";
	htmlcode += "<body bgcolor=\"#D0DCDF\" text=\"#000000\" marginwidth=\"0\" marginheight=\"0\" background=\""+urlpath+"\">";
	htmlcode += "<center>";
	htmlcode += "<a href=javascript:void(0); onclick=\"self.close();\"><img src=img/bg/transparent.gif width=" + (ample-10) + " height=" + (altura-10) + " border=0></a><br>";
	htmlcode += "</center>";
	htmlcode += "</body></html>";
	imgWindow = window.open("","viewpict","left=10,top=10,toolbar=no,scrollbars=no,directories=no,status=no,menubar=no,resizable=no,width=" + ample + ",height=" + altura);
	imgWindow.document.open();
	imgWindow.document.write(htmlcode);
	imgWindow.document.close();
	imgWindow.focus();
}
