	function Click_Show(name){

		var lay = eval("document.all."+ name);

		if(lay.style.display == ""){
		
			lay.style.display = "none";
		
		}else if(lay.style.display == "none"){
		
			lay.style.display = "";
	
		}

	}

function Click_Show2(id1,id2,mode){

	var lay = eval("document.all."+ id1);
		if(mode == "view") lay.style.display = "block";
		else if(mode == "hide") lay.style.display = "none";

	if(id2 != ""){
	var lay2 = eval("document.all."+ id2);
		if(mode == "view") lay2.style.display = "block";
		else if(mode == "hide") lay2.style.display = "none";
	}
}
function pop_open(url,width,height,scroll,name){
if(name == '') name = 'help';
var newWin = window.open('',name,'width='+width+',height='+height+',scrollbars='+scroll+',resizable=no');
newWin.location.href = url;
}

function pop_open2(url,width,height,scroll,name){
if(name == '') name = 'help';
var top = (screen.height-height)/2;
var left = (screen.width-width)/2;
var newWin = window.open('',name,'top='+top+',left='+left+',width='+width+',height='+height+',scrollbars='+scroll+',resizable=no');
newWin.location.href = url;
}

function process_open(url,width,height,scroll,name){
if(name == '') name = 'help';
var newWin = window.open('',name,'top=3000,left=3000,width='+width+',height='+height+',scrollbars='+scroll+',resizable=no');
newWin.location.href = url;
}

function img_pop(img,name){
if(name == '') name = 'img';
var newWin = window.open('',name,'top=30,left=30,width=20,height=20,scrollbars=no,resizable=no');
newWin.location.href = '/include/image_view.php?img='+img;
}

	function License(win,name,obj){
		var height=510, width=450;
		var top = (screen.height-height)/2;
		var left = (screen.width-width)/2;
		var newWin = window.open(win, name, obj+'top='+top+',left='+left);
	}




        
	function upload_tip(){
		var top = (screen.height-230)/2;
		var left = (screen.width-450)/2;
		window.open('/html/source_service.htm','','width=450, height=230, top='+top+', left='+left);
	}

	function selectall(s){
		var doc = document.body.createTextRange();
		doc.moveToElementText(document.all(s));
		doc.select();
		doc.execCommand('copy');
		alert('ÄÚµå¸¦ º¹»çÇÏ¿´½À´Ï´Ù.\n\n¿øÇÏ´Â°÷¿¡ ºÙ¿©³Ö±â¸¦ ÇÏ¼¼¿ä.      ');
	}

	function check_ftp(id,s){
		var top = (screen.height-480)/2;
		var left = (screen.width-640)/2;

/**
		var doc = document.body.createTextRange();
		doc.moveToElementText(document.all(s));
		doc.select();
		doc.execCommand('copy');
**/
		window.open("/include/my_page1/ftp_search_step1.php?id=" + id, "FTP", "top="+top+",left="+left+",width=640,height=480,resizable=no,scrollbars=no");

        }


        
	function Select_ch(obj, gv){
		for(i=0; i<obj.length; i++){
			if(obj[i].value == gv) obj[i].selected = true; //alert(obj);
		}
	}

	function Radio_ch(obj, gv){
		for(i=0; i<obj.length; i++){
			if(obj[i].value == gv) obj[i].checked = true; //alert(obj);
		}
	}


	function sample_close(){
		document.all.sampleImage2.style.visibility = 'hidden';
	}

	function Layer_sample1(uid){
		document.all.sampleImage2.style.top = document.body.scrollTop;
		document.all.sampleImage2.style.left = 0;
		strHTML = "<A onclick='sample_close()'><img src='/include/img1.php?pop=1&tt=sm&ss=0&nn="+uid+"' border='0'></a>";
		sampleImage2.innerHTML = strHTML;
		document.all.sampleImage2.style.visibility = 'visible';
	}

	function Layer_sample(zid, uid, tt){
		document.all.sampleImage2.style.top = document.body.scrollTop;
		document.all.sampleImage2.style.left = 0;
		strHTML = "<A onclick='sample_close()'><img src='/include/img.php?pop=1&tt="+tt+"&ss=0&idi="+zid+"&nn="+uid+"' border='0'></a>";
		sampleImage2.innerHTML = strHTML;
		document.all.sampleImage2.style.visibility = 'visible';
	}
	document.write("<div id='sampleImage2' onmouseover='drag=1;move=0;' onmouseout='drag=0' style='top:0; left:0; position:absolute; visibility:hidden; border:1px solid #666666'></div>");


	function Mypop_hide(){
		document.all.sampleImageM.style.visibility = 'hidden';
	}
	function Mypop_view(uid, Mid, wi, he){
		document.all.sampleImageM.style.top = document.body.scrollTop;
		document.all.sampleImageM.style.left = 0;

		document.all.Mylist.src = "/include/my_page1/layer_ppp.php?uid="+uid+"&Mid="+Mid
		document.all.Mylist.style.width = wi;
		document.all.Mylist.style.height = he;

		document.all.MYmove.style.width = wi;
		document.all.MYmove.style.height = he;

		document.all.sampleImageM.style.visibility = 'visible';
	}
	MY_popview = "<div id='sampleImageM' onmouseover='drag=1;move=0;' onmouseout='drag=0' style='top:0; left:0; position:absolute; visibility:hidden; border:1px solid #666666'>"
		+"<iframe name='Mylist' frameborder='0' name='popupkorea' marginwidth='0' marginheight='0' scrolling='no'></iframe>"
		+"<div id='MYmove' style='position:absolute; filter:alpha(opacity:0); z-index:1000; border:0px solid #666666; top:0; left:0'><table bgcolor='#FFFFFF' onclick='Mypop_hide()' onmouseover='drag=1;move=0' onmouseout='drag=0' width='100%' height='100%' cellpadding='0' cellspacing='0'><tr><td></td></tr></table></div>"
		+"</div>";
	document.write(MY_popview);


