sw	= screen.width
sh	= screen.height
pich	= 1100
picw	= 900

function PopPicture(url) 
{ 
	toppos = (sh - pich) / 2
	leftpos = (sw - picw) / 2
	
	pw = window.open(url, 'PopPicture', 'height=' + pich + ', width=' + pich + ', location=yes, scrollbars=yes, top=' + toppos + ', left=' + leftpos)
} 

function PopActivity(url,h,w) 
{ 
	toppos = (sh - h) / 2
	leftpos = (sw - w)/ 2

	pw = window.open(url, 'PopActivity', 'height=' + h + ', width=' + w + ', scrollbars=yes, top=' + toppos + ', left=' + leftpos)
} 


function popupWin() {
	text =  "<html>\n<head>\n<title>Silkeborg Frømandsklub</title>\n<body>\n";
	text += "<center>\n<br>";
	text += "<b>BLIV DYKKER!!!</b>\n<br>";
	text += "Nyt CMAS **  hold starter primo oktober. Ring for yderligere information til Josefine 26258594 eller Jens 23350650</h2></a>";
	text += "</center>\n</body>\n</html>\n";
	setTimeout('windowProp(text)', 3000); 		
}

function windowProp(text) {
	newWindow = window.open('','newWin','width=500,height=200');
	newWindow.document.write(text);
	setTimeout('closeWin(newWindow)', 60000);	
}

function closeWin(newWindow) {
	newWindow.close();				// close small window and depart
}
