function rollPic(strOffSrc, strOverSrc) {
	if (document.images) {
		this.off = new Image();
		this.over = new Image();
		this.off.src = strOffSrc;
		this.over.src = strOverSrc;
	}
}
function roll(strPic, strAction, strMsg) {
	if (document.images) {
		document.images[strPic].src = eval(strPic + '.' + strAction + '.src')
	}
	if (strMsg) {
		window.status = strMsg;
		return true;
	}
}
/*
function openWin(f_strUrl, width, height){
	newWin = window.open(f_strUrl, 'newWin', 'width=' + width + ', height=' + height + ', resizable, scrollbars');	
	newWin.focus();
}
*/

function openWin(f_strUrl, width, height){
	newWin = window.open(f_strUrl, 'Intres', 'width=' + width + ', height=' + height + ',toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhistory=0');	
	newWin.focus();
}

function openReservation(width, height){
	newWin = window.open('https://varaamo.villipohjola.com/scripts/intres.dll/frame_haku', 'Intres', 'toolbar=0, location=1, directories=0, status=1, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=1000, height=700');
	//newWin = window.open('https://varaamo.villipohjola.com/scripts/intres.dll/frame_haku', 'reservationWin', 'width=' + width + ', height=' + height + ', resizable');	
	//newWin = window.open('http://varaamo.villipohjola.com/scripts/intres.dll/frame_haku', 'reservationWin', 'width=' + width + ', height=' + height + ', resizable');	
	newWin.focus();
}

function openReservationFi(width, height){
	newWin = window.open('https://varaamo.villipohjola.com/scripts/fi/intres.dll/frame_haku', 'Intres', 'toolbar=0, location=1, directories=0, status=1, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=1000, height=700');
	//newWin = window.open('https://varaamo.villipohjola.com/scripts/fi/intres.dll/frame_haku', 'reservationWin', 'width=' + width + ', height=' + height + ', resizable=no');	
	//newWin = window.open('http://varaamo.villipohjola.com/scripts/intres.dll/frame_haku', 'reservationWin', 'width=' + width + ', height=' + height + ', resizable');	
	newWin.focus();
}

function openReservationEn(width, height){
	newWin = window.open('https://varaamo.villipohjola.com/scripts/en/intres.dll/frame_haku', 'Intres', 'toolbar=0, location=1, directories=0, status=1, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=1000, height=700');
	//newWin = window.open('https://varaamo.villipohjola.com/scripts/en/intres.dll/frame_haku', 'reservationWin', 'width=' + width + ', height=' + height + ', resizable');	
	//newWin = window.open('http://varaamo.villipohjola.com/scripts/intres.dll/frame_haku', 'reservationWin', 'width=' + width + ', height=' + height + ', resizable');	
	newWin.focus();
}



function openPurchase(width, height){
	newWin2 = window.open('http://varaamo.villipohjola.com/scripts/intres_lupa.dll/Lupalomake_1_3', 'Intres', 'toolbar=0, location=1, directories=0, status=1, menubar=0, scrollbars=1, resizable=1, copyhistory=0, width=1000, height=700');
	//newWin2 = window.open('http://varaamo.villipohjola.com/scripts/intres_lupa.dll/Lupalomake_1_3', 'purchaseWin', 'width=' + width + ', height=' + height + ', resizable, scrollbars');	
	//newWin2 = window.open('http://193.209.59.12/scripts/intres_lupa.dll/lupalomake_1_3', 'purchaseWin', 'width=' + width + ', height=' + height + ', resizable');	
	newWin2.focus();
}

// Netscape Resize Fix
if (document.layers) {
	widthCheck = window.innerWidth
	heightCheck = window.innerHeight
	window.onResize = resizeFix;
}
function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href
}

