
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function myFlash_DoFSCommand(command, args)	{  
	if (command=="notice"){
		//window.open('http://','pop')}  	
		javascript:opennotice();}
		else if (command=="winclose"){
		javascript:wClose();}
		else if (command=="form_view"){
		javascript:formView();}
		else if (command=="form_close"){
		javascript:formClose();}
		else if (command=="pic1"){ //x
		javascript:pic1();}
		else if (command=="frame_load"){ //x
		javascript:chUrl_load();}
}

if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call myFlash_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
} 

function opennotice(){
	notice.style.visibility = "visible";
}

function wClose(){
	window.close();
}

function formView(){
	request.style.visibility = "visible";
}

function formClose(){
	request.style.visibility = "hidden";
}


/**************¼Ò¸®¾È³ª°Ô ÇÏ·ÁÇßÀ¸³ª ½ÇÆÐ.
function chUrl_load() {
   document.getElementById('frame_load').src = "http://blue.ivyro.net/zboard/zboard.php?id=list01"
} 
**************/
function chUrl() {
   document.getElementById('frame_load').src = "blank.htm"
   document.getElementById('frame_list').src = "blank.htm"
} 
/***************È®´ëµµ¸é
function pic1(){
picView.style.visibility = "visible";
}

function pic1close(){
picView.style.visibility = "hidden";
}
***************/

//======================== ¾àµµ=====================================

function content_prn (){
        print_content.document.open();
        print_content.document.writeln("<html><head><style>body,td,p,pre,input,textarea,select,option,a,a:hover {font-size:9pt; font-family:tahoma,±¼¸²;}</style></head><body>"); //½ºÅ¸ÀÏµîÀ» ÁöÁ¤
        print_content.document.writeln("<b>°¶·¯¸® ÀÌÁî Ã£¾Æ¿À½Ã´Â ±æ</b><br><img src=images/map.gif border=0>");
        print_content.document.writeln("</body></html>");
        print_content.document.close();

        print_content.document.execCommand('Print');
}


//========================== È®´ëÀÌ¹ÌÁö ÆË¾÷Ã¢ ½ºÅ©¸³Æ® ==============================

var win1Open = null

function viewimg(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=yes,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose(){
if(win1Open != null) win1Open.close() 
}

function doNothing(){}


function view(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,"newwin","left=100,top=0,toolbar=no,scrollbars=no,resizable=no,width=460,height=650")
if(winHandle != null){
var htmlString = "<html><head><title>¢Æ ½Ç¿ë½Å¾Èµî·ÏÁõ ¢Æ</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 >"
htmlString += "<a href=javascript:window.close()><img src=images/" + picName + " border=0 alt=´Ý±â></a></body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}

function BigPro(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,"newwin","left=100,top=30,toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>¢Æ È®´ëÀÌ¹ÌÁöº¸±â ¢Æ</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 >"
htmlString += "<a href=javascript:window.close()><img src=pro/" + picName + " border=0 alt=´Ý±â></a></body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}

function pvimage(imgname)
{
	MM_openBrWindow("app/view_photo.php?imgname="+imgname,"vp1","width=400,height=400,toolbar=0,menubar=0,status=1,scrollbars=0,resizable=0");
}

//===========================±âº» ÇÃ·¡½Ã Á¤ÀÇ==================================/

function visual(nu){ //±âº»
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" align="middle" name="myFlash" id="myFlash">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="main.swf"/>')	
document.write('<param name="FlashVars" value="PageNum=' + nu + '">')
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent" />')
document.write('<embed src="main.swf" quality="high"  name="myFlash" id="myFlash" width="100%" height="100%" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}

function photos(pno){ //Àü½ÃÆ÷½ºÅÍ
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="220" height="300" align="middle">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="photo.swf" />')	
document.write('<param name="FlashVars" value="photoNo=' + pno + '">')
document.write('<param name="wmode" value="transparent" />')
document.write('<param name="quality" value="high">')
document.write('<embed quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}

function visual_index(file){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" align="middle" name="myFlash" id="myFlash">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="'+ file +'.swf"/>')	
document.write('<param name="quality" value="high">')
document.write('<embed quality="high"  name="myFlash" id="myFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}

function btn(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="150" height="20" align="middle" name="myFlash" id="myFlash">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="btn.swf"/>')	
document.write('<param name="quality" value="high">')
document.write('<embed quality="high"  name="myFlash" id="myFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}

function resize(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" align="middle" name="myFlash" id="myFlash">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="resize.swf"/>')	
document.write('<param name="quality" value="high">')
document.write('<param name="wmode" value="transparent" />')
document.write('<embed src="resize.swf" quality="high"  width="550" height="400" name="myFlash" id="myFlash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}

function photo(pno){ //Àü½ÃÆ÷½ºÅÍ
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="220" height="300" align="middle">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />')	
document.write('<param name="movie" value="photo.swf" />')	
document.write('<param name="FlashVars" value="photoNo=' + pno + '">')
document.write('<param name="wmode" value="transparent" />')
document.write('<param name="quality" value="high">')
document.write('<embed quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>');
}


function full() {
	window.open('03.htm','pop',"fullscreen=yes,scrollbars=no,channelmode=2,toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no");
}
function pop1() {
	window.open('resize.htm','pop',"width=100, height=100, scrollbars=no,toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no");
}

function full2() {//Å×½ºÆ®¿ë
	window.self.open('01.htm','pop',"fullscreen=yes,scrollbars=no,channelmode=2,toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=no");
}

//===========================´ë°ü½ÅÃ»Æû==================================

function onlyNumber()
	{if ( ((event.keyCode < 48) || (57 < event.keyCode)) && (45 != event.keyCode) ) event.returnValue=false;}

function sendit(f){

	if(!f.name.value){

		alert("¼ºÇÔÀ» Àû¾îÁÖ½Ê½Ã¿À");

		f.name.focus();

		return false;

	}

	if(!f.email.value){

		alert("ÀÌ¸ÞÀÏÀ» Àû¾îÁÖ½Ê½Ã¿À");

		f.email.focus();

		return false;

	}

	if(!f.tel.value){

		alert("ÀüÈ­¹øÈ£¸¦ Àû¾îÁÖ½Ê½Ã¿À");

		f.tel.focus();

		return false;

	}

	if(!f.starttime.value){

		alert("³¯Â¥¸¦ ¼±ÅÃÇØÁÖ½Ê½Ã¿À");//Àü½Ã¿¹Á¤ÀÏ & ¹æ¹®¿¹Á¤ÀÏ

		f.starttime.focus();

		return false;

	}

	if(!f.content.value){

		alert("¹®ÀÇ³»¿ëÀ» Àû¾îÁÖ½Ê½Ã¿À");

		f.content.focus();

		return false;

	}	

	if(!f.address.value){ //Æû¸ÞÀÏ¿¡¼­ »ç¿ë

		alert("ÁÖ¼Ò¸¦ Àû¾îÁÖ½Ê½Ã¿À");

		f.address.focus();

		return false;

	}

	if(!f.comment.value){ //Æû¸ÞÀÏ¿¡¼­ »ç¿ë

		alert("¹®ÀÇ³»¿ëÀ» Àû¾îÁÖ½Ê½Ã¿À");

		f.comment.focus();

		return false;

	}
}