// JavaScript Document
  function PopupPic(sPicURL) {
     window.open("/anneliestanghe/includes/popup.htm?"+sPicURL, "",  
     "resizable=1,HEIGHT=200,WIDTH=200");
   }
   
   function adjust_popup()
{
        var w, h, fixedW, fixedH, diffW, diffH;

        if (document.all) {
                fixedW = document.body.clientWidth;
                fixedH = document.body.clientHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - document.body.clientWidth;
                diffH = fixedH - document.body.clientHeight;
        } else {
                fixedW = window.innerWidth;
                fixedH = window.innerHeight;
                window.resizeTo(fixedW, fixedH);
                diffW = fixedW - window.innerWidth;
                diffH = fixedH - window.innerHeight;
        }
        w = fixedW + diffW;
        h = fixedH + diffH;
        if (h >= screen.availHeight) w += 16;
        if (w >= screen.availWidth)  h += 16;
        w = Math.min(w,screen.availWidth);
        h = Math.min(h,screen.availHeight);
        window.resizeTo(w,h);
        window.moveTo((screen.availWidth-w)/2, (screen.availHeight-h)/2);
}
   
	 function switchdiv(targetId1,targetId2) {
	toggle(targetId1);
	toggle(targetId2);
}
function showGuestform() {
	showDIV('divGuestform');
	hideIV('divWritemessage');
	document.forms['guestform'].loginname.focus();
}
function hideGuestform() {
	showDIV('divWritemessage');
	hideDIV('divGuestform');
	document.forms['guestform'].loginname.focus();
}
function showDIV(targetId) {
	target = document.getElementById(targetId);
	target.style.display = "block";
	return false;
}
	
function hideDIV(targetId) {
	target = document.getElementById(targetId);
	target.style.display = "none";
	return false;
}
   
   
