﻿// ----------------------------------------------------------------------------
// PopUp Window
// ----------------------------------------------------------------------------
function PopUp(url,name,width,height) 
{
 if (name) {windowname = name} else {windowname = 'swissmiipopup'}
 if (height) {windowheight = height} else {windowheight = '560'}
 if (width) {windowwidth = width} else {windowwidth = '400'}
 
 var left = (screen.availWidth - windowwidth) / 2;
 var top = (screen.availHeight - windowheight) / 2;
 
 window.open(url,windowname,'HEIGHT='+windowheight+',WIDTH='+windowwidth+',MENUBAR=no,SCROLLBARS=yes,TOOLBAR=no,LOCATION=no,STATUS=no,resizable=yes,left='+left+',top='+top).focus();
 this.name = 'swissmii';
}

function PopUpFixed(url,name,width,height) 
{
 if (name) {windowname = name} else {windowname = 'swissmiipopup'}
 if (height) {windowheight = height} else {windowheight = '560'}
 if (width) {windowwidth = width} else {windowwidth = '400'}
 
 var left = (screen.availWidth - windowwidth) / 2;
 var top = (screen.availHeight - windowheight) / 2;
 
 window.open(url,windowname,'HEIGHT='+windowheight+',WIDTH='+windowwidth+',MENUBAR=no,SCROLLBARS=no,TOOLBAR=no,LOCATION=no,STATUS=no,resizable=no,left='+left+',top='+top).focus();
 this.name = 'swissmii';
}

