preloadFlag = false;

	function div_show(divname)
		    {
	
			eval(sync_om_documentdiv(divname) + sync_om_style() + '.visibility="visible"');
			return 1;
	        }
	
	function div_hide(divname)
	        {
						
	        eval(sync_om_documentdiv(divname) + sync_om_style() + '.visibility="hidden"');
			return 0;
	        }
	

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
	
function changeImages(){
   if (document.images && (preloadFlag == true))
         {                for (var i=0; i<changeImages.arguments.length; i+=2)
                  {                        document[changeImages.arguments[i]].src = this[changeImages.arguments[i+1]].src;
                  }
         }
}


function goto_contact(wert,flag) {
	
	if (flag=="1") selector="person";
	if (flag=="0") selector="department";
	
	wert=wert.options[wert.selectedIndex].value;
	link="index.php?selector="+selector+"&person="+wert+"&page=3_1_2_1";
	if (wert>"0") self.location.href=link;
	
}


function goto_page(wert,temp,lan) {
	
	wert=wert.options[wert.selectedIndex].value;
	link="index.php?lan="+lan+"&page="+wert;
	if (wert>"0") self.location.href=link;
	
}	

function goto_page_from_popup(link) {
	opener.location.href=link;
	opener.focus();
}	

   
function doClear(theText)
{
	  if (theText.value == theText.defaultValue)
	  {
	    theText.value = ""
	  }
}   
        
function show_picture (title,file_path,width,height) {

	width=width+30;
	height=height+30;
		
	newWindow = window.open("includes/leer.htm","popup","width="+width+",height="+height+",left=50,top=50");
	content="<html height='100%'><head><title>"+title+"</title><LINK rel='stylesheet' type='text/css' href='formate.css'></head><body height='100%' width='100%'><table class='popup' width='100%' height='100%' cellpadding='0' cellspacing='0' border='1'><tr><td align='center' valign='middle' height='100%' width='100%'><img src='"+file_path+"' border='0'></td></tr></table></body></html>";
	newWindow.document.open();
	newWindow.document.write(content);
	newWindow.document.close();
	newWindow.focus();	
}	        

function show_page (file_path,width,height) {

	if (width>0 && height>0)
		newWindow = window.open(file_path,"popup","width="+width+",height="+height+",left=50,top=50,scrollbars=yes,resizable=no");
	else 
		newWindow = window.open(file_path,"popup","width=800,height=600,left=0,top=0,scrollbars=yes,resizable=yes,menubar=yes");
	newWindow.focus();	
	if (newWindow.scrollbars && newWindow.scrollbars.visible == false)
	 newWindow.scrollbars.visible = true;
}	
