
function popup(img) {

    url = "scripts/popup.php?img="+img;
    settings = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=100,height=100";

    winopen = window.open(url,'',settings);
    if (winopen.opener == null) winopen.opener = self;

}

function popup_g(img) {

    url = "scripts/popup_g.php?img="+img;
    settings = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=250";

    winopen = window.open(url,'',settings);
    if (winopen.opener == null) winopen.opener = self;

}

function con() {
        if(!confirm("Verwijderen?"))
			return false;
		return true;
}


sfFocus = function() {
	var sfEls = document.getElementsByTagName("INPUT");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onfocus=function() {
			this.className+=" sffocus";
		}
		sfEls[i].onblur=function() {
			this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfFocus);

function showFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width;
  altez=foto1.height;
  LeftPosition = (screen.width) ? (screen.width-largh)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-altez)/2 : 0;
  stringa="width="+largh+",height="+altez+",top="+TopPosition+",left="+LeftPosition;
  finestra=window.open("blank.html","",stringa);
  finestra.document.write("<html><head><title>:: Chantal Cālin ::</title></head><body bgcolor=#FFFFFF topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0><img src=" + img + "></body></html>");
}








