<!--

window.onload = function() {
    
   ScrComBbsListing('C02'); ScrNewUpdateListing('M'); ScrCommunityListing('CM01'); ScrDailyStudyListing('CS01');
}


var scrMainObject = false;

//ÅëÇÕº¸µå ¸®½ºÆÃ ÇÔ¼ö
function ScrComBbsListing(strSection) {

    try {   //´ÙÁß ºê¶ó¿ìÀú XMLHttpRequest °´Ã¼ »ý¼º
          
        scrMainObject = new ActiveXObject("Msxml2.XMLHTTP");
        
    } catch (e) {
        
        try {
            
            scrMainObject = new ActiveXObject("Microsoft.XMLHTTP");
        
        } catch (e2) {
            
            scrMainObject = false;
      }
    }

    if (!scrMainObject && typeof XMLHttpRequest != 'undefined') {
        
        scrMainObject = new XMLHttpRequest();
    }    
        
    var scrSection = strSection;
    var scrPageUrl = "/Include/inc_main_eduboard.asp";
    
        
    scrMainObject.open("GET", scrPageUrl +"?strMainSection="+ scrSection, true);
    scrMainObject.onreadystatechange = ScrCallBackComBbsListing;
    scrMainObject.send(null);
    
    //var scrQueryString = "strMainSection="+ scrSection; //POST Àü¼Û ½Ã ÇÑ±ÛÆÄ¶ó¹ÌÅÍÀÇ °æ¿ì escape() »ç¿ë ¾È±×·¯¸é ±úÁ®¿ä.. Get ¹æ½ÄÀº ¾È½áµµ ¹«¹æ..
    
    //Post ¹æ½Ä Àü¼Û ½Ã 
    //scrMainObject.open("POST", scrPageUrl, true);
    //scrMainObject.onreadystatechange = ScrCallBackComBbsListing;
    //scrMainObject.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    //scrMainObject.send(scrQueryString); 
    
}


//ÅëÇÕº¸µå ¸®½ºÆÃ ÄÝ¹é ÇÔ¼ö
function ScrCallBackComBbsListing() {
    
    if (scrMainObject.readyState == 4) {
	    			
		if (scrMainObject.status == 200) {
			
			if(typeof(document.all.strDivComBbsListing) == "object") {
		       		       
		       document.all.strDivComBbsListing.innerHTML = scrMainObject.responseText;
		       			
			} 
		}
	}
    
}


var scrNewObject = false;

//ÃÖ½Å¾÷µ¥ÀÌÆ® ¸®½ºÆÃ ÇÔ¼ö
function ScrNewUpdateListing(strSection) {

     try {   //´ÙÁß ºê¶ó¿ìÀú XMLHttpRequest °´Ã¼ »ý¼º
          
        scrNewObject = new ActiveXObject("Msxml2.XMLHTTP");
        
    } catch (e) {
        
        try {
            
            scrNewObject = new ActiveXObject("Microsoft.XMLHTTP");
        
        } catch (e2) {
            
            scrNewObject = false;
      }
    }

    if (!scrNewObject && typeof XMLHttpRequest != 'undefined') {
        
        scrNewObject = new XMLHttpRequest();
    }
    
    var scrSection = strSection;
    var scrPageUrl = "/Include/inc_main_newupdate.asp";
    
    scrNewObject.open("GET", scrPageUrl +"?strNewSection="+ scrSection, true);
    scrNewObject.onreadystatechange = ScrCallBackNewUpdateListing;
    scrNewObject.send(null);
    
}


 //ÃÖ½Å¾÷µ¥ÀÌÆ® ¸®½ºÆÃ ÄÝ¹é ÇÔ¼ö
function ScrCallBackNewUpdateListing() {
    
    if (scrNewObject.readyState == 4) {
	    			
		if (scrNewObject.status == 200) {
			
			if(typeof(document.all.strDivNewUpdateListing) == "object") {
		       		       
		       document.all.strDivNewUpdateListing.innerHTML = scrNewObject.responseText;
		       			
			} 
		}
	}
    
}


var scrCmuObject = false;

//Ä¿¹Â´ÏÆ¼ ¸®½ºÆÃ ÇÔ¼ö
function ScrCommunityListing(strSection) {

     try {   //´ÙÁß ºê¶ó¿ìÀú XMLHttpRequest °´Ã¼ »ý¼º
          
        scrCmuObject = new ActiveXObject("Msxml2.XMLHTTP");
        
    } catch (e) {
        
        try {
            
            scrCmuObject = new ActiveXObject("Microsoft.XMLHTTP");
        
        } catch (e2) {
            
            scrCmuObject = false;
      }
    }

    if (!scrCmuObject && typeof XMLHttpRequest != 'undefined') {
        
        scrCmuObject = new XMLHttpRequest();
    }
    
    var scrSection = strSection;
    var scrPageUrl = "/Include/inc_main_community.asp";
        
    scrCmuObject.open("GET", scrPageUrl +"?strConSection="+ scrSection, true);
    scrCmuObject.onreadystatechange = ScrCallBackCommunityListing;
    scrCmuObject.send(null);
    
}


 //Ä¿¹Â´ÏÆ¼ ¸®½ºÆÃ ÄÝ¹é ÇÔ¼ö
function ScrCallBackCommunityListing() {
    
    if (scrCmuObject.readyState == 4) {
	    			
		if (scrCmuObject.status == 200) {
			
			if(typeof(document.all.strDivWorldListing) == "object") {
		       		       
		       document.all.strDivWorldListing.innerHTML = scrCmuObject.responseText;
		       			
			} 
		}
	}
    
}


var scrDayObject = false;

//µ¥ÀÏ¸® ÇÐ½À ¸®½ºÆÃ ÇÔ¼ö
function ScrDailyStudyListing(strSection) {

     try {   //´ÙÁß ºê¶ó¿ìÀú XMLHttpRequest °´Ã¼ »ý¼º
          
        scrDayObject = new ActiveXObject("Msxml2.XMLHTTP");
        
    } catch (e) {
        
        try {
            
            scrDayObject = new ActiveXObject("Microsoft.XMLHTTP");
        
        } catch (e2) {
            
            scrDayObject = false;
      }
    }

    if (!scrDayObject && typeof XMLHttpRequest != 'undefined') {
        
        scrDayObject = new XMLHttpRequest();
    }
    
    var scrSection = strSection;
    var scrPageUrl = "/Include/inc_main_dailystudy.asp";
        
    scrDayObject.open("GET", scrPageUrl +"?strConSection="+ scrSection, true);
    scrDayObject.onreadystatechange = ScrCallBackDailyStudyListing;
    scrDayObject.send(null);
    
}


 //µ¥ÀÏ¸® ÇÐ½À ¸®½ºÆÃ ÄÝ¹é ÇÔ¼ö
function ScrCallBackDailyStudyListing() {
    
    if (scrDayObject.readyState == 4) {
	    			
		if (scrDayObject.status == 200) {
			
			if(typeof(document.all.strDivDailyListing) == "object") {
		       		       
		       document.all.strDivDailyListing.innerHTML = scrDayObject.responseText;
		       			
			} 
		}
	}
    
}

//ÁÂÃø Å¬·¡½º º° ÅÇ ÀÌµ¿(onclick ¿ë)
function ScrTabGoToClass(string) {
        
    var scrEleDisplay = document.getElementById("strEleDisplay");
    var scrMidDisplay = document.getElementById("strMidDisplay");
    var scrHigDisplay = document.getElementById("strHigDisplay");
    
    scrEleDisplay.style.display = "none";
    scrMidDisplay.style.display = "none";
    scrHigDisplay.style.display = "none";
                
    document.images.strEleTabImage.src = "/Images/main/tapele_off.gif";
	document.images.strMidTabImage.src = "/Images/main/tapmid_off.gif";
	document.images.strHigTabImage.src = "/Images/main/taphig_off.gif";
    

    if (string == "E") {
        
        scrEleDisplay.style.display = "block";
                
        document.images.strEleTabImage.src = "/Images/main/tapele_on.gif";
	} 
	
	if (string == "M") {
        
      scrMidDisplay.style.display = "block";

	    document.images.strMidTabImage.src = "/Images/main/tapmid_on.gif";
	}  
	
	if (string == "H") {
        
      scrHigDisplay.style.display = "block";
                
	    document.images.strHigTabImage.src = "/Images/main/taphig_on.gif";
	}   
} 


function findObj(n, d) { 
    
    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=findObj(n,d.layers[i].document);
    
    if(!x && d.getElementById) x=d.getElementById(n); 
    
    return x;
}

function showhidelayers() { 
    
    var i,p,v,obj,args=showhidelayers.arguments;
    
    for (i=0; i<(args.length-2); i+=3) 
        
    if ((obj=findObj(args[i]))!=null) { 
        
        v=args[i+2];
        
        if (obj.style) {obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        
        obj.visibility=v; 
    }
}

//¿ì¸®ÇÐ³â ±âÃâÀÚ·á Ã£±â
function ScrGichoolSearching() {

    var scrEduClass = document.getElementById("strSelEduClass");
    var scrEduGrade = document.getElementById("strSelEduGrade");
    var scrExamYear = document.getElementById("strSelExamYear");
    var scrSearchText = document.getElementById("strTxtSearchText");
    
    if (scrEduClass.value == "") {
    
        alert("ÇÐºÎ¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä");
        scrEduClass.focus();        
        return;
    }
    
    if (scrEduGrade.value == "") {
    
        alert("ÇÐ³âÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä");
        scrEduGrade.focus();        
        return;
    }
    
    if (scrSearchText.value == "¿¹) ¼­ÃÊ, ¼­ÃÊÁß µî") {
        scrSearchText.value = "";    
    }
    
    
    if (scrSearchText.value == "") {
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä")
		scrSearchText.focus();
		return;
	}
	
	var scrPageUrl 
    
    if (scrEduClass.value == "M") {
        
        scrPageUrl = "/GicMidClass/MidExamZone/";
        
    } else if (scrEduClass.value == "H") {
    
        scrPageUrl = "/GicHigClass/HigExamZone/";
    }
    
    scrPageUrl = scrPageUrl + "?strEduSection=A02";
    scrPageUrl = scrPageUrl + "&strEduClass="+ scrEduClass.value;
    scrPageUrl = scrPageUrl + "&strEduGrade="+ scrEduGrade.value;
    scrPageUrl = scrPageUrl + "&strSelExamYear="+ scrExamYear.value;
    scrPageUrl = scrPageUrl + "&strSearchText="+ scrSearchText.value;
        
    location.href = scrPageUrl;
}


//-->