function remove() {
	return confirm('Are you sure you want to delete this image?');
}

function undeleteable() {
	alert("You cannot delete featured image nor default image");
	return false;
}

var popup;
var cont=0;
var defaulttitle = "Picture"; //texto por defecto a mostrar en la barra de título en caso de omitir el argumento titulo

function pic(which,title) {
	if(cont==1){ popup.close(); popup=null; }
	if(title==null){ title=defaulttitle; }
	popup=window.open('','window','resizable=yes,scrollbars=no,width=1,height=1');
	popup.document.write('<html><head><title>' + title + '</title></head><body style="overflow:hidden" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onunload="opener.cont=0"><img src="' + which + '" onload="opener.resize(this.width, this.height)" onclick="self.close();" /></body></html>');
	popup.document.close();
	cont++;
}

function resize(w,h) {
	popup.resizeTo(w+8,h+52);
	popup.moveTo((screen.width-w)/2,(screen.height-h)/2);
}