


function pict_out(id)
{
	myString = new String(document.getElementById(id).src);
	lastslash=0;
	lastslash=myString.lastIndexOf("/");
	if (lastslash>0) path=myString.substr(0,lastslash);
	filename=myString.substr((lastslash+4));
	document.getElementById(id).src=path+"/"+filename;
}

function pict_in(id)
{
	myString = new String(document.getElementById(id).src);
	lastslash=0;
	lastslash=myString.lastIndexOf("/");
	if (lastslash>0) path=myString.substr(0,lastslash);
	//alert(path);
	filename=myString.substr((lastslash+1));
	document.getElementById(id).src=path+"/mo_"+filename;
}

function openphoto(url,name,desc) {

	fotowin = window.open("/global/php/customphp/photo.php?url="+url+"&name="+name+"&desc="+desc,'fotowindow','toolbar=no,width=300,height=550,directories=no,status=no,scrollbars=auto,resizable=yes,menubar=no');
	/*fotowin.document.write('<html><head>');
	fotowin.document.write('<title>'+name+'</title><link rel="stylesheet" href="/global/style/rebel.css" type="text/css">');
	fotowin.document.write('<script language="javascript" >  function fitPic() { var NS = (navigator.appName=="Netscape")?true:false; 	mWidth = (NS)?window.innerWidth:document.body.clientWidth; 	mHeight = (NS)?window.innerHeight:document.body.clientHeight; 	iWidth = document.images[0].width - mWidth + 75; 	iHeight = document.images[0].height - mHeight + 115; 	window.resizeBy(iWidth, iHeight);	self.focus(); }</script>');
	fotowin.document.write('</head><body margin="0" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" bottommargin="0" onLoad="fitPic()"><div class="PhotoPopup" ><table cellspacing="0" cellpadding="0" class="PhotoPopup" border="0" ><tr><td  class="PhotoClose" colspan="2" align="middle">');
	fotowin.document.write('<img src="'+url+'"></td></tr><tr><td class="PhotoClose" ><img style="cursor:pointer;" title="Close"  src="/global/img/close.gif" onClick="self.close()"></td><td class="PhotoOpschrift" ><b>'+name+'</b>&nbsp;'+desc+'</td></tr></table></div>');
	fotowin.document.write('</body></html><button onclick="fitPic();">clickme</button>');
	fotowin.document.close();*/
	return false;
}

function logonmaybe(theevent)
{
		location.href="/index.php?application=Login&action=DrawForm";
}

