function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//Áø·á¿¹¾à - ´Þ·Â
function daily(){
	open("/booking/pop_01.jsp","timeTable","left=0,top=0,scrollbars=no, resizable=no, width=500, height=379");
	return false;
}

function daily01(mode, medDept, medDeptName, medDoc1, medDoc1Name, spcdryn, medDate1, medDateTime1, medDateTime){
	open("/booking/pop_02.jsp?mode="+mode+"&medDept="+medDept+"&medDeptName="+medDeptName+"&medDoc1="+medDoc1+"&medDoc1Name="+medDoc1Name+"&spcdryn="+spcdryn+"&medDate1="+medDate1+"&medDateTime1="+medDateTime1+"&medDateTime="+medDateTime,"timeTable","left=0,top=0,scrollbars=no, resizable=no, width=500, height=379");
	return false;
}

//Áø·á¿¹¾à - ÀÇ»ç¼±ÅÃ
function pop01(){
	open("/booking/pop_03.jsp","doctorList","left=510, top=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, status=no, width=300, height=379");
	return false;
}

//Áø·á¿¹¾à½ÅÃ» - ÇÁ¸°Æ®ÆË¾÷
function print01(medDept, medDoc1, medDateTime1, fstmedty){
	open("/booking/pop_04.jsp?medDept="+medDept+"&medDoc1="+medDoc1+"&medDateTime1="+medDateTime1+"&fstmedty="+fstmedty,"printReserve","left=0,top=0,scrollbars=yes, resizable=no, width=666, height=600");
	return false;
}

// ºñÈ¸¿ø Áø·á¿¹¾à½ÅÃ» - ÇÁ¸°Æ®ÆË¾÷
function print011(rsvNo){
	open("/booking/pop_04.jsp?rsvNo="+rsvNo,"printReserve","left=0,top=0,scrollbars=yes, resizable=no, width=666, height=600");
	return false;
}

//Áø·á¿¹¾à½ÅÃ» - ¿ìÆí¹øÈ£Ã£±âÆË¾÷
function pop_post(formName, zipcd1Name, zipcd2Name, addr1Name, addr2Name){
	url = "/common/popup/pop_post.jsp?formName="+formName+"&zipcd1Name="+zipcd1Name+"&zipcd2Name="+zipcd2Name+"&addr1Name="+addr1Name+"&addr2Name="+addr2Name;
	open(url, "pop_post","left=0,top=0,scrollbars=yes, resizable=no, width=416, height=460");
	return false;
}

//Áø·á¿¹¾à½ÅÃ» - ´Þ·ÂÆË¾÷
function pop_daily(formName, todayName, fieldName){
	url = "/common/popup/pop_daily.jsp?formName="+formName+"&todayName="+todayName+"&fieldName="+fieldName;
	open(url,"pop_daily","left=0,top=0,scrollbars=no, resizable=no, width=179, height=225");
	return false;
}

//Áø·á¿¹¾à½ÅÃ» - Áø·áºÎ¼­ ´ëÇ¥ÀüÈ­¹øÈ£ ÆË¾÷
function pop_tel(){
	open("/booking/pop_tel.jsp","telList","left=0,top=0,scrollbars=yes, resizable=no, width=266, height=450");
	return false;
}

//È¸¿ø°¡ÀÔ - ¾ÆÀÌµðÁßº¹È®ÀÔ ÆË¾÷
function search_id(id){
	if(id.value == ""){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		return false;
	}
	open("/member/pop_id_search.jsp?form_name=MemberInsert&id="+id,"search_id","left=0,top=0,scrollbars=no, resizable=no, width=400, height=192");
	return false;
}

//Ã¤¿ë - °íµîÇÐ±³/´ëÇÐ±³/´ëÇÐ¿ø ÆË¾÷
function school(){
	open("/intro/pop_school.jsp","code","left=0,top=0,scrollbars=no, resizable=no, width=450, height=273");
}

function school01(cfield){
	open("/intro/pop_school_2.jsp?cfield="+cfield,"scode","left=0,top=0,scrollbars=no, resizable=no, width=450, height=338");
}

function school02(cfield){
	open("/intro/pop_school_4.jsp?cfield="+cfield,"scode","left=0,top=0,scrollbars=no, resizable=no, width=450, height=338");
}

function school03(cfield){
	open("/intro/pop_school_6.jsp?cfield="+cfield,"scode","left=0,top=0,scrollbars=no, resizable=no, width=450, height=338");
}



//È¸¿ø°¡ÀÔ(ÀÇ»çÈ¸¿ø) - º´¿øÃ£±âÆË¾÷
function hosp(form){
	open("/member/pop_hosp_search.jsp?form="+form,"","left=0,top=0,scrollbars=yes, resizable=no, width=416, height=257");
	return false;
}


//Áø·á¿¹¾à - µµ¿ò¸»ÆË¾÷
function pop_help(){
	open("/booking/pop_help.jsp","","left=0,top=0,scrollbars=no, resizable=no, width=500, height=620");
	return false;
}

// ÆË¾÷
function pop_up(url, l, t, sc, re, w, h){
	open( url,"","left="+l+",top="+t+",scrollbars="+sc+", resizable="+re+", width="+w+", height="+h);
	return false;
}


//º´¿ø¾È³» - È«º¸µ¿¿µ»ó
function vod(num){
	open("/intro/pop_vod.jsp?num="+num,"view_vod","left=0,top=0,scrollbars=no, resizable=no, width=614, height=364");
	return false;
}

//°Ç°­Á¤º¸ - °­ÁÂµ¿¿µ»ó
function vodedu(num){
	open("/info/pop_vod.jsp?num="+num,"view_vod","left=0,top=0,scrollbars=no, resizable=no, width=614, height=564");
	return false;
}

function swf(src,w,h){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'" >');
	document.write('<param name="movie" value="'+src+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="Transparent">');
	document.write('<embed src="'+src+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="Transparent"></embed>');
	document.write('</object>');
}

function wmv(src,w,h){
	document.write('<embed src="'+src+'" width="'+w+'" height="'+h+'" autostart=1></embed>');
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function tabindex(num){
 for(i=0;i<list.length;i++){
  if(i != num) {
   list[i].style.display='none';
  }else{
   if(list[i].style.display=='') {
    list[i].style.display='none';
   } else {
    list[i].style.display='';
   }
  }
 }
}