u1="/center/greeting.asp";
u11="/center/greeting.asp";
u111="/center/greeting.asp";
u112="/center/purpose.asp";
u12="/center/childhouse.asp";
u121="/center/childhouse.asp";
u122="/center/childedu.asp";
u123="/center/youthedu.asp";
u13="/center/news.asp";
u131="/center/news.asp";
u132="/center/letter.asp";
u14="/center/map.asp";
u21="/children/forteacher/index.asp";
u211="/children/forteacher/institute/operate_list.asp?bbsno=1";
u212="/children/forteacher/schedule/year.asp?age=1";
u213="/children/forteacher/childcare/index.asp";
//u213="/children/forteacher/institute/program02_list.asp";
u214="/children/forteacher/institute/form.asp?midx=CS13";
//2009.03.16 Mod by Cha ------------------------------------> Start
//u215="/children/forteacher/institute/operate07.asp?midx=CS07";
u215="/children/forteacher/institute/operate10.asp";
//2009.03.16 Mod by Cha ------------------------------------> End
u216="/children/forteacher/culture/index.asp";
u217="/children/forteacher/childcare/program03_list.asp";
u218="/children/forteacher/nurture/seminar.asp";
u219="/children/forteacher/handicap/process.asp";
u22="/children/forfamily/index.asp";
u221="/children/forfamily/familyinfo/happy.asp";
u222="/children/forfamily/familyinfo/happy02.asp?midx=CF02";
u223="/children/forfamily/familyinfo/joyful.asp?midx=CF03";
u224="/children/forfamily/familyinfo/joyful02.asp?midx=CF04";
u225="/children/forfamily/environment/physical.asp?midx=CF06";
u226="/children/forfamily/environment/physical02.asp?midx=CF07";
u227="/children/forfamily/environment/rights.asp?midx=CF09";
u228="/children/forteacher/childcare/program03_list.asp";
u229="/children/forfamily/site/site.asp";
u23="/children/forchildren/index.asp";
u231="/children/forchildren/art/art_main.asp";
u232="/children/forchildren/music/music.asp";
u233="/children/forchildren/picture/picture.asp";
u234="/children/forchildren/culture/culture.asp";
u24="/children/forteacher/campus/index.asp";
u25="/counsel/counsel.asp";
u31="/youth/foryouth/index.asp";
u311="/youth/foryouth/course/search.asp	";
u312="/youth/foryouth/course/job.asp";
u313="/youth/foryouth/course/qna.asp";
u314="/youth/foryouth/violence/story01.asp";
u315="/youth/foryouth/study/subject.asp";
u316="/youth/foryouth/friend/friends.asp";
u32="/youth/forparents/index.asp";
u321="/youth/forparents/job/interest.asp";
u322="/youth/forparents/school/prevention.asp";
u323="/youth/forparents/coach/time.asp";
u324="/youth/forparents/life/help.asp";
u325="/youth/forparents/life/internet.asp";
u326="/youth/forparents/column/column.asp";
u33="/youth/forexpert/index.asp";
u331="/youth/forexpert/studyinfo/human.asp";
u332="/youth/forexpert/studyinfo/camp.asp";
u333="/youth/forexpert/studyinfo/parents.asp";
u334="/youth/forexpert/violence/program.asp";
u335="/youth/forexpert/violence/guide.asp";
u336="/youth/forexpert/data/report.asp";
u41="http://child.samsungfoundation.org/common/gate.asp?gate=http://www.samsungfoundation.org/html/welfare/nursery/recruit.asp";
//2009.03.16 Mod by Cha ------------------------------------> Start
//u42="/children/forteacher/schedule/month.asp?age=1";
u42="/children/forteacher/schedule/year.asp?age=1";
//2009.03.16 Mod by Cha ------------------------------------> End
//u43="/children/forteacher/nurture/conference.asp";
u43="/children/forteacher/campus/index.asp";

function Slink(){
	var url = "";
	var depth = arguments.length;
	var f = document.pop;

	try {
		if(depth==0) return;

		/*ÆË¾÷ÀÏ°æ¿ì*//*
		if (arguments[0]=="6" && arguments[1] =="3" && arguments[2] =="3") {
			window.open('/culture/moral/principle/index.htm','Principle','width=1002,height=580,scrollbars=no');
			return;
		}*/

		else if(depth==1) url = eval("u"+arguments[0]);
		else if(depth==2) url = eval("u"+arguments[0]+arguments[1]);
		else if(depth==3)	url = eval("u"+arguments[0]+arguments[1]+arguments[2]);
		else if(depth==4) url = eval("u"+arguments[0]+arguments[1]+arguments[2]+arguments[3]);
		
		if(url ==u41){
			window.open(url,'win','');	
			return;
		}
		if(url ==u231){ 
			window.open('','pop1','width=820,height=600,left=100,top=100'); 	
			sendpage(f, url, 'pop1');
			return;
		}
		if(url ==u232){ 
			window.open('','pop1','width=820,height=600,left=100,top=100'); 	
			sendpage(f, url, 'pop1');
			return;
		}
		if(url ==u233){ 
			window.open('','pop1','width=820,height=600,left=100,top=100'); 	
			sendpage(f, url, 'pop1');
			return;
		}
		if(url ==u234){ 
			window.open('','pop1','width=820,height=600,left=100,top=100'); 	
			sendpage(f, url, 'pop1');
			return;
		}
		if(url=="") window.open('/pop_secret/secret.asp','popwin','width=387,height=184');
		else SLink(url);

	}catch(e) { window.open('/pop_secret/secret.asp','popwin','width=387,height=184'); }
}

function sendpage(f,action_url,ntarget){
//	if(SecuiSS.getKEYIV().length > 0)	{ //Å° ÀÖÀ½
		TargetSecuiSubmit(f, action_url, '2', ntarget);
//	}
//	else	{//Å° ¾øÀ½
//		TargetSecuiSubmit(f, action_url, '1', ntarget);
//	}
}

function SLink(url,target)
{
	var f=document.bLaNk;
	if(!target) target="_self";
	f.innerHTML="";

	pos=url.indexOf("?");

	if(pos!=-1)
	{
		action_url=url.substring(0,pos);
		value=url.substring(pos+1,url.length);

		arr = value.split("&");
	
		for(i=0;i<arr.length;i++)
		{
			tmp = arr[i].split("=");
			f.innerHTML+="<input type=hidden name='"+tmp[0]+"' value='"+tmp[1]+"'>";
		}
		f.innerHTML+="<input type=hidden name='__default' value=''>";	
	}
	else
	{
		action_url=url;
	}
	TargetSecuiSubmit(f, action_url, '1', target);
}
