
// wmvÆË¾÷ ¿¹¹è¿µ»ó º¸±â ÆË¾÷
function Sermon_view(seq,tb,divcode,mode) {
    var openWin = window.open('/Include/Sermon_View.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=760 , height=570'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
	openWin.focus();
}
function Sermon_view640(seq,tb,divcode,mode) {
    var openWin = window.open('/Include/Sermon_View640.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=1081 , height=615'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
	openWin.focus();
}

// flashÆË¾÷ ¿µ»ó º¸±â ÆË¾÷
function flash300_view(seq, tb, divcode, mode) {
    var openWin = window.open('/Include/flash300_view.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=762 , height=590'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
	openWin.focus();
}

// ¿¹¹è¿µ»ó ½Ç¹ö¶óÀÌÆ®ÆË¾÷ º¸±â ÆË¾÷
function silverlight_view(seq,tb,divcode,mode) {
    var openWin = window.open('/Include/silverlight_view.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=762 , height=590'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
	openWin.focus();
}
// ¿µ¾î¿¹¹è¿µ»ó ½Ç¹ö¶óÀÌÆ®ÆË¾÷ º¸±â ÆË¾÷
function Engsilverlight_view(seq, tb, divcode, mode) {
    var openWin = window.open('/Include/EngSermonSilverlight.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=762 , height=590'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
    openWin.focus();
}

// µ¿¿µ»ó flashÆË¾÷ ±³È¸Çà»ç,ºÎ¼­Çà»ç µ¿¿µ»ó2 º¸±â ÆË¾÷
function flash_HD_view(seq,tb,divcode,mode) {
    var openWin = window.open('/Include/flash_Hd_event.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=360 , height=575'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
	openWin.focus();
}
// ±³È¸Çà»ç¿µ»ó ½Ç¹ö¶óÀÌÆ®wideÆË¾÷ ±³È¸Çà»ç,ºÎ¼­Çà»ç µ¿¿µ»ó2 º¸±â ÆË¾÷
function Silverlight_Wide_view(seq, tb, divcode, mode) {
    var openWin = window.open('/Include/Sliverlight_HD_EventWide.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=360 , height=575'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
    openWin.focus();
}
// Çà»ç¿µ»ó ½Ç¹ö¶óÀÌÆ®ÆË¾÷ ±³È¸Çà»ç,ºÎ¼­Çà»ç µ¿¿µ»ó2 º¸±â ÆË¾÷
function Silverlight_HD_view(seq, tb, divcode, mode) {
    var openWin = window.open('/Include/Sliverlight_HD_Event.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=360 , height=575'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
    openWin.focus();
}
//°íÈ­Áú 720
function Sermon_view720(seq, tb, divcode, mode) {
    var openWin = window.open('/Include/Sermon_View720.aspx?seq=' + seq + '&tb=' + tb + '&divcode=' + divcode + '&mode=' + mode, '', 'width=1160 , height=595'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
    openWin.focus();
}

// ´å³ÝÀ¸·Î ¸¸µç ±³È¸Àå¼Ò¾È³»flashÆË¾÷º¸±â ÆË¾÷
function Place_Churh() {
	var openWin = window.open('ChurchPlaceInfo/main.aspx','', 'width=1014 , height=700'); //762 / 577 /'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0'
	openWin.focus();
}
// »çÁøº¸±â½Ã ¼±ÅÃÆË¾÷
function Photo() {
    var openWin = window.open('PhotoGuide.aspx', '', 'width=480 , height=500');
    openWin.focus();
}
/* È­¸é Áß¾Ó¿¡ ÀÌ¹ÌÁö Ç¥½Ã */
function openImageWinCenter(imageRef){
	var x,y,w,h,loadingMsg;
	//ÆË¾÷µÉ Ã¢ÀÇ ÃÊ±â Å©±â
	w=300;h=200;
	//È­¸é ÇÑ°¡¿îµ¥·Î ÆË¾÷Ã¢ ¶ç¿ì±â À§ÇÑ ÁÂÇ¥ °è»ê
	x=Math.floor( (screen.availWidth-(w+12))/2 );y=Math.floor( (screen.availHeight-(h+30))/2 );

	//ÀÌÁö¹Ì°¡ ·ÎµùÁß¿¡ ³»º¸³¾ ¸Þ½ÃÁö
	loadingMsg="<table width=100% height=100%><tr><td valign=center align=center><font size='2' color='#ffffff' face='termanal'>NOW LODDING...</font></td></tr></table>";

	with( window.open("","",'height='+h+',width='+w+',top='+y+',left='+x+',scrollbars=yes,resizable=yes') )
	{
		document.write(
		"<body topmargin=0 rightmargin=0 bottommargin=0 leftmargin=0 bgcolor=#808080>",
		loadingMsg,
		"<div align=center><img src=\""+imageRef+"\" hspace=0 vspace=0 border=0 alt=\"ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù.\"  style=\"cursor: hand;\" onmousedown=\"window.close();\" onload=\"document.title=this.src;document.body.removeChild(document.body.children[0]);window.resizeTo(this.width+12,this.height+30);window.moveTo(Math.floor( (screen.availWidth-(this.width+12))/2),Math.floor( (screen.availHeight-(this.height+30))/2 ));\"></div>",
		"</body>");
		focus();
	}
}
//»ó´Ü ³»ºñ°ÔÀÌ¼Ç ÇÃ·¡½Ã
function swf2(src)
{
	html = '';
	html += '<embed src="'+ src + '" quality=high bgcolor="#ffffff" width="952" height="78" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	document.write(html);
}
//¸ÞÀÎ ·Ñ¸µº£ÅÍ ÇÃ·¡½Ã
function swf3(src)
{
	html = '';
	html += '<embed src="'+ src + '" quality=high bgcolor="#ffffff" width="274" height="143" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	document.write(html);
}
//¸ÞÀÎ ¼¾ÅÍ ÇÈ½º ±¤°í ÇÃ·¡½Ã
function swf4(src)
{
	html = '';
	html += '<embed src="'+ src + '" quality=high bgcolor="#ffffff" width="678" height="175" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	document.write(html);
}
function swf5(src)
{
	html = '';
	html += '<embed src="'+ src + '" quality=high bgcolor="#ffffff" width="952" height="202" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	document.write(html);
}

function swf6(src)
{
	html = '';
	html += '<embed src="'+ src + '" quality=high bgcolor="#ffffff" width="640" height="480" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	document.write(html);
}


//È¸¿ø°¡ÀÔ½Ã »ç¿ë¾à°ü µ¿ÀÇ Ã¼Å©
function Check_agree()
{
   var count = 0;
   for(var i = 0; i < document.form1.elements.length; i++)
   {
      if(form1.elements[i].type == "checkbox")      // ÆûÀÇ ¸ðµç Dom °³Ã¼°¡ Ã¼Å©¹Ú½ºÀÎÁö È®ÀÎ
      {
         if(form1.elements[i].checked==false)       // Ã¼Å©¹Ú½ºÀÇ Ã¼Å©¿©ºÎ È®ÀÎ
        {
             alert("ÀÌ¿ë¾à°ü¿¡ °üÇÑ µ¿ÀÇ¸¦ ¸ðµÎÃ¼Å© ÇØÁÖ¼¼¿ä"); 
             form1.elements[i].focus();
             return false;
             //count = count +1;
        }
      }
    }
 
//     if(count == 0)
//    {
//         alert("ÀÌ¿ë¾à°ü¿¡ °üÇÑ µ¿ÀÇ¸¦ ¸ðµÎÃ¼Å© ÇØÁÖ¼¼¿ä"); 
//         return;
//     }

}

//È¸¿ø°¡ÀÔ½Ã ½Ç¸í ¹× ÁÖ¹Î¹øÈ£ Ã¼Å©
//function Jumin_Check()
//{
//     if(document.form1.UserName.value=="")
//     {
//         alert("ÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä");
//         document.form1.UserName.focus();
//         return false;
//     }
//     if(document.form1.SocialNum.focus();
//     {
//          alert("ÁÖ¹Î¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
//          document.form1.SocialNum.focus();
//          return false;
//     }
//}

// -------------------------------------------------------------------
// Image Thumbnail Viewer Script- By Dynamic Drive, available at: http://www.dynamicdrive.com
// Last updated: Jan 22nd, 2007
// -------------------------------------------------------------------




//mode = È­Áú
function vod_view(seq, mode, width, height) {

    var openWin = window.open('http://www.d21.org/worship/vod_view.aspx?seq=' + seq + '&mode=' + mode, '', 'width=' + width + ' height=' + height);
    openWin.focus();
}