﻿<!--
function fixHeight()
{
	var h = 600;
	document.getElementById('main').style.height = h + "px";
}

function confirmation() {
    var agree = confirm("Are you sure you want to delete this article?");                    
    if (agree) 
    {
       return true;
    }
    else
    {
      return false;
    }
}

function CreateRefPopupWindow(windowname, url, width, height, addressLine, browserMenu, browserStatus,
                              closeWithCallingWindow, allowKeyboardCommand, resize, toolBar, scrollBars,
                              popupExtRefObjektId)

{
  var href, left, top;
  var params = "";

  if (width > screen.width)
     width = screen.width;

  if (height > screen.height)
     height = screen.height;


  // center popup window 
  left = (screen.width - width) / 2;
  top = (screen.height - height) / 2;


  if (typeof(url) == 'string')

     href=url;

  else

     href=url.href;


  if (width > 0)
  {

    left = (screen.width - width) / 2;  	

    params += "width=" + width + ", left=" + left + ", ";    
  }

  if (height > 0)
  {

    top = (screen.height - height) / 2;  	

    params += "height=" + height + ", top=" + top + ", ";
  } 

  if (addressLine)

    params += "location=yes" + ", ";

  else

    params += "location=no" + ", ";  	     	

  if (browserMenu)

    params += "menubar=yes" + ", ";

  else

    params += "menubar=no" + ", ";       	

  if (browserStatus)

    params += "status=yes" + ", "; 

  else

    params += "status=no" + ", ";       	

  if (closeWithCallingWindow)	// geht nicht

    params += "dependent=yes" + ", "; 

  else

    params += "dependent=no" + ", ";  	     	

  if (allowKeyboardCommand)	// geht nicht

    params += "hotkeys=yes" + ", "; 

  else

    params += "hotkeys=no" + ", ";       	

  if (resize)

    params += "resizable=yes" + ", ";

  else

    params += "resizable=no" + ", ";     

  if (toolBar)

    params += "toolbar=yes" + ", ";

  else

    params += "toolbar=no" + ", ";     

  if (scrollBars)

    params += "scrollbars=yes" + ", ";

  else

    params += "scrollbars=no" + ", ";       



  if (params.length > 0)

      params = params.substring(0, params.length - 2);                  

  // alert(params);  

  // alert(url);  

  if (url.indexOf("http://") == -1)

  {

    if (url.indexOf("http:\\") != -1)

    {

      // for the case of EXTREFERENZ.FILEPATH = for example 'http:\\www.kleine.at'      	

      url = url.replace("http:\\", "http://");    

    }

    else

    {	

      if (url.indexOf("http:") != -1)

      {

        // for the case of EXTREFERENZ.FILEPATH = for example 'http:\www.kleine.at'    

        url = url.replace("http:", "http://");

      }

    }

  }  

  // alert(url);

  var winName = windowname + "_" +

                width + height + addressLine + browserMenu + browserStatus +

                closeWithCallingWindow + allowKeyboardCommand + resize + toolBar + scrollBars +

                "_" + popupExtRefObjektId;

  // alert(winName);

  var popup = window.open(url, winName, params);
  popup.focus();
}
//-->


