﻿

function updatePage(page, section, task) {
	document.thisForm.action = page;
	document.thisForm.section.value = section;
	document.thisForm.task.value = task;
	document.thisForm.submit();
}

function showMessage(the_title, the_message) {
	newwin = window.open('','','resizable=1,top=150,left=150,width=250,height=270');
	if (!newwin.opener) newwin.opener = self;
	with (newwin.document)
	{
	open();
	write('<html>');
	write('<head><title>北歐華人基督教會斯德哥爾摩福音堂 - Scandinavia Chinese Christian Church in Stockholm, Sweden</title></head>');
	write('<body background="../images/bg.gif" onLoad="document.form.box.focus()">');
	write('<table width="230" border="0" cellspacing="0" cellpadding="0" height="1" align="center"><tr><td background="../images/1x1.gif"><img src="../images/1x1.gif" width="1" height="1"></td></tr></table>');
	write('<table bgcolor="white" border="0" cellspacing="0" cellpadding="0" width="100%">');
	write('<tr><td background="../images/1x1.gif" width="1"><img src="../images/1x1.gif" width="1" height="1"></td><td>');
	write('<table bgcolor="white" border="0" cellspacing="5" cellpadding="0" width="100%">');
	if (the_title != null) 	
		write('<tr bordercolor="#A9AB87"><td bgcolor="#E7ECEF" height="20" bordercolor="#E7ECEF" class="text"><font size="2"/><b>&nbsp;' + the_title + '</b></td></tr>');
	else 
		write('<tr bordercolor="#A9AB87"><td bgcolor="#E7ECEF" height="20" bordercolor="#E7ECEF" class="text"><font size="2"/><b>&nbsp;</b></td></tr>');
	if (the_message != null && the_message != "") 		
		write('<tr><td valign="top"><font size="2"/>' + the_message + '</td></tr>');
	write('<tr><td><br/><input type="button" value="關閉/Close" onClick="window.close()"/></td></tr>');
	write('</table></td><td background="../images/1x1.gif" width="1"><img src="../images/1x1.gif" width="1" height="1"></td><td>');
	write('</tr></table>');
	write('<table width="230" border="0" cellspacing="0" cellpadding="0" height="1" align="center"><tr><td background="../images/1x1.gif"><img src="../images/1x1.gif" width="1" height="1"></td></tr></table>');
	write('</body></html>');
	close();
   	}
}

