function showPicTangomia (thePic){
var theUrl = thePic;
var win = open (theUrl, "picWin","width=500,height=350,location=no,status=no,scrollbars=no,resizable=yes,toolbar=no");
win.focus();
}


function showPic(url){
theImg = new Image();
indexSearch = url.indexOf("=");
imgUrl = url.substring(indexSearch, url.lenght);
alert (imgUrl);
theImg.src = imgUrl;
alert (theImg.src);
	var width=250;var height=250;
  var centerX=(screen.width-width)/3; //Need to subtract the window width/height so that it appears centered.  If you didn't, the top left corner of the window would be centered.
  var centerY=(screen.height-height)/2;

  //var picPane = window.open(url, 'centerWin', 'top='+centerY+',width='+width+',left='+centerX+',height='+height+'status=0');
var picPane = window.open(url,'myPane','width='+width+',height='+height+'status=false');
  picPane.document.bgColor = "black";

picPane.status = "anuncio";
	picPane.focus();


}

