var hwndPopup_demoflash1024;
function openpopup_demoflash1024(url){
var popupWidth = 1015;
var popupHeight = 768;
var popupTop = 300;
var popupLeft = 300;
var isFullScreen = false;
var isAutoCenter = true;
var popupTarget = "popupwin_demoflash1024";
var popupParams = "toolbar=0, scrollbars=0, menubar=0, status=0, resizable=0";

if (isFullScreen) {
	popupParams += ", fullscreen=1";
} else if (isAutoCenter) {
	popupTop	= parseInt((window.screen.height - popupHeight)/2);
	popupLeft	= parseInt((window.screen.width - popupWidth)/2);
}

var ua = window.navigator.userAgent;
var isOpera = (ua.indexOf("Opera") > -1);
var operaVersion;
if (isOpera) {
	var i = ua.indexOf("Opera");
	operaVersion = parseFloat(ua.substring(i + 6, ua.indexOf(" ", i + 8)));
	if (operaVersion > 7.00) {
		var isAccessible = false;
		eval("try { isAccessible = ( (hwndPopup_demoflash1024 != null) && !hwndPopup_demoflash1024.closed ); } catch(exc) { } ");
		if (!isAccessible) {
			hwndPopup_demoflash1024 = null;
		}
	}
}
if ( (hwndPopup_demoflash1024 == null) || hwndPopup_demoflash1024.closed ) {
	
	if (isOpera && (operaVersion < 7)) {
		if (url.indexOf("http") != 0) {
			hwndPopup_demoflash1024 = window.open(url,popupTarget,popupParams + ((!isFullScreen) ? ", width=" + popupWidth +", height=" + popupHeight : ""));
			if (!isFullScreen) {
				hwndPopup_demoflash1024.moveTo(popupLeft, popupTop);
			}
			hwndPopup_demoflash1024.focus();
			return;
		}
	}
	if (!(window.navigator.appName == "Netscape" && !document.getElementById)) {
		//not ns4
		popupParams += ", width=" + popupWidth +", height=" + popupHeight + ", left=" + popupLeft + ", top=" + popupTop;
	} else {
		popupParams += ", left=" + popupLeft + ", top=" + popupTop;
	}
	//alert(popupParams);
	hwndPopup_demoflash1024 = window.open("",popupTarget,popupParams);
	if (!isFullScreen) {
		hwndPopup_demoflash1024.resizeTo(popupWidth, popupHeight);
		hwndPopup_demoflash1024.moveTo(popupLeft, popupTop);
	}
	hwndPopup_demoflash1024.focus();
	with (hwndPopup_demoflash1024.document) {
		open();
		write("<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy onLoad=\"window.location.href='" + url + "'\"></bo"+"dy></ht"+"ml>");
		close();
	}
} else {
	if (isOpera && (operaVersion > 7.00)) {
		eval("try { hwndPopup_demoflash1024.focus();	hwndPopup_demoflash1024.location.href = url; } catch(exc) { hwndPopup_demoflash1024 = window.open(\""+ url +"\",\"" + popupTarget +"\",\""+ popupParams + ", width=" + popupWidth +", height=" + popupHeight +"\"); } ");
	} else {
		hwndPopup_demoflash1024.focus();
		hwndPopup_demoflash1024.location.href = url;
	}
}

}

var hwndPopup_demoflash;
function openpopup_demoflash(url){
var popupWidth = 790;
var popupHeight = 635;
var popupTop = 300;
var popupLeft = 300;
var isFullScreen = false;
var isAutoCenter = true;
var popupTarget = "popupwin_demoflash";
var popupParams = "toolbar=0, scrollbars=0, menubar=0, status=0, resizable=0";

if (isFullScreen) {
	popupParams += ", fullscreen=1";
} else if (isAutoCenter) {
	popupTop	= parseInt((window.screen.height - popupHeight)/2);
	popupLeft	= parseInt((window.screen.width - popupWidth)/2);
}

var ua = window.navigator.userAgent;
var isOpera = (ua.indexOf("Opera") > -1);
var operaVersion;
if (isOpera) {
	var i = ua.indexOf("Opera");
	operaVersion = parseFloat(ua.substring(i + 6, ua.indexOf(" ", i + 8)));
	if (operaVersion > 7.00) {
		var isAccessible = false;
		eval("try { isAccessible = ( (hwndPopup_demoflash != null) && !hwndPopup_demoflash.closed ); } catch(exc) { } ");
		if (!isAccessible) {
			hwndPopup_demoflash = null;
		}
	}
}
if ( (hwndPopup_demoflash == null) || hwndPopup_demoflash.closed ) {
	
	if (isOpera && (operaVersion < 7)) {
		if (url.indexOf("http") != 0) {
			hwndPopup_demoflash = window.open(url,popupTarget,popupParams + ((!isFullScreen) ? ", width=" + popupWidth +", height=" + popupHeight : ""));
			if (!isFullScreen) {
				hwndPopup_demoflash.moveTo(popupLeft, popupTop);
			}
			hwndPopup_demoflash.focus();
			return;
		}
	}
	if (!(window.navigator.appName == "Netscape" && !document.getElementById)) {
		//not ns4
		popupParams += ", width=" + popupWidth +", height=" + popupHeight + ", left=" + popupLeft + ", top=" + popupTop;
	} else {
		popupParams += ", left=" + popupLeft + ", top=" + popupTop;
	}
	//alert(popupParams);
	hwndPopup_demoflash = window.open("",popupTarget,popupParams);
	if (!isFullScreen) {
		hwndPopup_demoflash.resizeTo(popupWidth, popupHeight);
		hwndPopup_demoflash.moveTo(popupLeft, popupTop);
	}
	hwndPopup_demoflash.focus();
	with (hwndPopup_demoflash.document) {
		open();
		write("<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy onLoad=\"window.location.href='" + url + "'\"></bo"+"dy></ht"+"ml>");
		close();
	}
} else {
	if (isOpera && (operaVersion > 7.00)) {
		eval("try { hwndPopup_demoflash.focus();	hwndPopup_demoflash.location.href = url; } catch(exc) { hwndPopup_demoflash = window.open(\""+ url +"\",\"" + popupTarget +"\",\""+ popupParams + ", width=" + popupWidth +", height=" + popupHeight +"\"); } ");
	} else {
		hwndPopup_demoflash.focus();
		hwndPopup_demoflash.location.href = url;
	}
}

}


function pop3() { 
window.open("http://www.passeli.com/site/demot/kokp/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop4() { 
window.open("http://www.passeli.com/site/demot/kipi/asukaslaskutus/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop5() { 
window.open("http://www.passeli.com/site/demot/kipi/asunnossakaynti/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop6() { 
window.open("http://www.passeli.com/site/demot/kipi/asukasluettelo/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop7() { 
window.open("http://www.passeli.com/site/demot/kipi/autopaikkaluettelo/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop8() { 
window.open("http://www.passeli.com/site/demot/kipi/avaimet/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop9() { 
window.open("http://www.passeli.com/site/demot/kipi/halytys/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop10() { 
window.open("http://www.passeli.com/site/demot/kipi/henkilosto/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop11() { 
window.open("http://www.passeli.com/site/demot/kipi/huolto_poikkeus/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop12() { 
window.open("http://www.passeli.com/site/demot/kipi/huoltokirja/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop13() { 
window.open("http://www.passeli.com/site/demot/kipi/huoltomuistio/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop14() { 
window.open("http://www.passeli.com/site/demot/kipi/huoneistokirja/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop15() { 
window.open("http://www.passeli.com/site/demot/kipi/isannoitsijantodistus/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop16() { 
window.open("http://www.passeli.com/site/demot/kipi/jatehuolto/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop17() { 
window.open("http://www.passeli.com/site/demot/kipi/kalusto/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop18() { 
window.open("http://www.passeli.com/site/demot/kipi/kayttoarvot/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop19() { 
window.open("http://www.passeli.com/site/demot/kipi/kello-ohjaukset/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop20() { 
window.open("http://www.passeli.com/site/demot/kipi/korjauspaivakirja/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop21() { 
window.open("http://www.passeli.com/site/demot/kipi/korjaustarverekisteri/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop22() { 
window.open("http://www.passeli.com/site/demot/kipi/kulutusseuranta/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop23() { 
window.open("http://www.passeli.com/site/demot/kipi/kutsutjatiedotteet/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop24() { 
window.open("http://www.passeli.com/site/demot/kipi/lainaosuuslaskenta/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop25() { 
window.open("http://www.passeli.com/site/demot/kipi/laskupankki/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop26() { 
window.open("http://www.passeli.com/site/demot/kipi/laskutus/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop27() { 
window.open("http://www.passeli.com/site/demot/kipi/lvi_sahko/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop28() { 
window.open("http://www.passeli.com/site/demot/kipi/maksukehotukset_korkolaskut/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop29() { 
window.open("http://www.passeli.com/site/demot/kipi/myyntireskontra/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop30() { 
window.open("http://www.passeli.com/site/demot/kipi/osakeluettelo/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop31() { 
window.open("http://www.passeli.com/site/demot/kipi/peruskorjaukset/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop32() { 
window.open("http://www.passeli.com/site/demot/kipi/pesutupalista/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop33() { 
window.open("http://www.passeli.com/site/demot/kipi/rakennusautomaatio/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop34() { 
window.open("http://www.passeli.com/site/demot/kipi/rakennuskuvat/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop35() { 
window.open("http://www.passeli.com/site/demot/kipi/rakennustekniset_tiedot/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop36() { 
window.open("http://www.passeli.com/site/demot/kipi/saunavuorolista/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}
function pop37() { 
window.open("http://www.passeli.com/site/demot/kipi/sijaintirekisteri/index.htm","win1","width=1015,height=768,left=0,top=0,scrollbars=no") 
}

var hwndPopup_2ebe;
function openpopup_2ebe(url){
var popupWidth = 1015;
var popupHeight = 768;
var popupTop = 300;
var popupLeft = 300;
var isFullScreen = false;
var isAutoCenter = true;
var popupTarget = "popupwin_2ebe";
var popupParams = "toolbar=0, scrollbars=0, menubar=0, status=0, resizable=0";

if (isFullScreen) {
	popupParams += ", fullscreen=1";
} else if (isAutoCenter) {
	popupTop	= parseInt((window.screen.height - popupHeight)/2);
	popupLeft	= parseInt((window.screen.width - popupWidth)/2);
}

var ua = window.navigator.userAgent;
var isOpera = (ua.indexOf("Opera") > -1);
var operaVersion;
if (isOpera) {
	var i = ua.indexOf("Opera");
	operaVersion = parseFloat(ua.substring(i + 6, ua.indexOf(" ", i + 8)));
	if (operaVersion > 7.00) {
		var isAccessible = false;
		eval("try { isAccessible = ( (hwndPopup_2ebe != null) && !hwndPopup_2ebe.closed ); } catch(exc) { } ");
		if (!isAccessible) {
			hwndPopup_2ebe = null;
		}
	}
}
if ( (hwndPopup_2ebe == null) || hwndPopup_2ebe.closed ) {
	
	if (isOpera && (operaVersion < 7)) {
		if (url.indexOf("http") != 0) {
			hwndPopup_2ebe = window.open(url,popupTarget,popupParams + ((!isFullScreen) ? ", width=" + popupWidth +", height=" + popupHeight : ""));
			if (!isFullScreen) {
				hwndPopup_2ebe.moveTo(popupLeft, popupTop);
			}
			hwndPopup_2ebe.focus();
			return;
		}
	}
	if (!(window.navigator.appName == "Netscape" && !document.getElementById)) {
		//not ns4
		popupParams += ", width=" + popupWidth +", height=" + popupHeight + ", left=" + popupLeft + ", top=" + popupTop;
	} else {
		popupParams += ", left=" + popupLeft + ", top=" + popupTop;
	}
	//alert(popupParams);
	hwndPopup_2ebe = window.open("",popupTarget,popupParams);
	if (!isFullScreen) {
		hwndPopup_2ebe.resizeTo(popupWidth, popupHeight);
		hwndPopup_2ebe.moveTo(popupLeft, popupTop);
	}
	hwndPopup_2ebe.focus();
	with (hwndPopup_2ebe.document) {
		open();
		write("<ht"+"ml><he"+"ad></he"+"ad><bo"+"dy onLoad=\"window.location.href='" + url + "'\"></bo"+"dy></ht"+"ml>");
		close();
	}
} else {
	if (isOpera && (operaVersion > 7.00)) {
		eval("try { hwndPopup_2ebe.focus();	hwndPopup_2ebe.location.href = url; } catch(exc) { hwndPopup_2ebe = window.open(\""+ url +"\",\"" + popupTarget +"\",\""+ popupParams + ", width=" + popupWidth +", height=" + popupHeight +"\"); } ");
	} else {
		hwndPopup_2ebe.focus();
		hwndPopup_2ebe.location.href = url;
	}
}

}





