// JavaScript Document

function NewWindow(mypage, myname, w, h, scroll) 
	{
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=0'
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) 
			{ 
				win.window.focus(); 
			}
	}
function NewWindowImages(mypage,w,h){
	winl = (screen.width - w) / 2;
	wint = (screen.height - h) / 2;
	winprops="width="+w+",height="+h+",top="+wint+",left="+winl+",scrollbars=no,resizable=no";
	win = window.open(mypage, "", winprops)
	if (parseInt(navigator.appVersion) >= 4){ 
		win.window.focus(); 
	}
}

function calcielos(){
	NewWindow("calcularcielos.html","windowresults",420,260,"NO");
}

function calparedes(){
	NewWindow("calcularparedes.html","windowresults",340,270,"NO");
}
