/* 
activateActiveX 
--------------- 
Purpose:  Dynamically replace any elements that will be affected by the new security feature in IE6/IE7 that requires a user to click certain types of elements to activate them before use. 

Usage:  Include this file in the <head></head> section of your html document using the following... 
    <script language="JScript" type="text/jscript" src="activateActiveX_onload.js"></script> 


Since this script is in response to a software patent lawsuit, I feel it necessary to state the following...     

License: 
activateActiveX is Copyright (C) 2006 Jason Baker (therippa AT gmail.com). It is available as open source code from: 
http://therippa.blogspot.com 

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details http://www.gnu.org/licenses/gpl.html 
*/ 

//trap onload event 

//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage http://iezn.com
// @create date 2006.04.19
// @last modify 2006.04.25
// @version 0.41
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
//////////////////////////////////////
/**
* embed ÆÐÄ¡ Àû¿ë ÄÁÅ×ÀÌ³Ê
* nullÀÎ°æ¿ì document °ªÀ» ±âº»À¸·Î ÇÕ´Ï´Ù
* id°ªÀ» ¼³Á¤ÇÑ°æ¿ì ¼³Á¤¹üÀ§ ³»¿¡¸¸ Àû¿ëÀÌ µË´Ï´Ù
* 
* º»¹®ÀÌ³ª ÀÏºÎ ³ëµå¿¡¸¸ Àû¿ëÇÒ°æ¿ì ÇØ´ç ³ëµåÀÇ id °ªÀ» ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù
* ¿¹)
* var __embed_target_id = "contents";
* ·Î Ã³¸®ÇÑ°æ¿ì body ³»¿¡ <ÅÂ±× id="contents">ÇÃ·¡½¬,µ¿¿µ»ó...</ÅÂ±×>
* ¾È¿¡ ³»¿ë¿¡¸¸ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù
*/
if(typeof(__embed_target_id)=='undefined'){
	var __embed_target_id = null;
}

/**
* embed ÆÐÄ¡¸¦ Àû¿ëÇÒ ÅÂ±×¸¦ ¼³Á¤ÇÕ´Ï´Ù
* ±âº»°ªÀº object,eembed,appelt ÅÂ±×ÀÔ´Ï´Ù
* false °ªÀÎ°æ¿ì ÆÐÄ¡¿¡¼­ Á¦¿ÜµË´Ï´Ù
*/
if(typeof(__embed_tags)=='undefined'){
	var __embed_tags = {object:true,embed:true,applet:false}
}

/**
* ÇÃ·¡½¬ÆÄÀÏÁß flashvars ¸¦ »ç¿ëÇÒ°æ¿ì ÇØ´ç ÇÃ·¡½¬ÀÇ ¿ÀºêÁ§Æ®¾ÆÀÌµð:true °ªÀ¸·Î object¸¦ µî·ÏÇØ ÁÖ¼¼¿ä
*/
var __flash_force_objs = {};

if(document.attachEvent){
	document.write('<style type="text/css">');
	document.write('object,embed{display:none;}');
	document.write('</style>');
	document.attachEvent('onreadystatechange',
		function (){
			
			if(__embed_target_id===null){
				var __target = document;
			}else{
				var __target = document.getElementById(__embed_target_id);
			}
			if (document.readyState == "complete"){
				function _replace(obj){
//					alert(obj.outerHTML);
					var obj_re = document.createElement(obj.outerHTML);					
					obj_re.style.display='inline';
					obj.parentNode.replaceChild(obj_re,obj);
				}
				function _inner(obj){
					obj.style.display='inline';					
					var html = obj.outerHTML;
					var classid = obj.classid.toLowerCase();
					if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash ÀÎ°æ¿ì
						obj.insertAdjacentHTML('beforeBegin',html);
						obj.parentNode.removeChild(obj);
					}else{						
						//º¯°æÇÏ°íÀÚÇÏ´Â ActiveX classid ¸¦ Ãß°¡ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù
						if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
						classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
						classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
						classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'	
						){//media player 10
							embed_pos = html.indexOf('embed');
							if(embed_pos!=-1){//embed °¡ Á¸ÀçÇÏ´Â°æ¿ì
								var embed = '<'+html.substr(embed_pos);
								embed = embed.substr(0,embed.length-9);
								obj.insertAdjacentHTML('beforeBegin',embed);
								obj.parentNode.removeChild(obj);
							}else{
								//object·Î¸¸ µÇ¾î ÀÖ´Â°æ¿ì µ¿¿µ»ó ºÎºÐ¸¸ ÆÐÄ¡ÇÑ´Ù
								var embed = document.createElement('embed');
								var total = obj.childNodes.length;
								embed.setAttribute('autostart',0);
								if(obj.width){
									embed.setAttribute('width',obj.width);
								}
								if(obj.height){
									embed.setAttribute('height',obj.height);
								}
								for(var k=0;k<total;k++){
									n = obj.childNodes.item(k).getAttribute("name");
									v = obj.childNodes.item(k).getAttribute("value");
									if(n=='URL' || n=='url' || n=='FileName'){
										n = 'src';
									}
									embed.setAttribute(n,v);
								}
								if(embed.getAttribute('src')){
									embed.style.display = 'inline';
									obj.parentNode.replaceChild(embed,obj);
								}else{
									//ÆÄÀÏ¿¢¼¼½º object°¡ ¾Æ´Ñ°æ¿ì´Â À¯ÁöÇÑ´Ù								
								}
							}
						}
					}
				}

				if(__embed_tags.object===true){
					var objs = __target.getElementsByTagName('object');
					var i = objs.length;
					while(i-->0){
						_inner(objs[i]);
					}
				}
				if(__embed_tags.embed===true){
					var objs = __target.getElementsByTagName('embed');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}

				if(__embed_tags.applet===true){
					var objs = __target.getElementsByTagName('applet');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}
			}
		}
	);
}

/*

window.onload = function () { 
    //Determine browser, we only need this for Internet Explorer 
    if (navigator.appName == "Microsoft Internet Explorer") { 
         
        //Array of elements to be replaced 
        var arrElements = new Array(3); 
        arrElements[0] = "object"; 
        arrElements[1] = "embed"; 
        arrElements[2] = "applet"; 
     
         
        //Loop over element types 
        for (n = 0; n < arrElements.length; n++) { 
         
            //set object for brevity 
            replaceObj = document.getElementsByTagName(arrElements[n]); 
             
            //loop over element objects returned 
            for (i = 0; i < replaceObj.length; i++ ) { 
             
                //set parent object for brevity 
                parentObj = replaceObj[i].parentNode; 
                 
                //grab the html inside of the element before removing it from the DOM 
                newHTML = parentObj.innerHTML; 
                 
                //remove element from the DOM 
                parentObj.removeChild(replaceObj[i]); 
                 
                //stick the element right back in, but as a new object 
                parentObj.innerHTML = newHTML; 
             
                } 
            } 
        } 
    } 

*/


var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

function encode64(input) {
   var output = "";
   var chr1, chr2, chr3;
   var enc1, enc2, enc3, enc4;
   var i = 0;

   do {
      chr1 = input.charCodeAt(i++);
      chr2 = input.charCodeAt(i++);
      chr3 = input.charCodeAt(i++);

      enc1 = chr1 >> 2;
      enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
      enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
      enc4 = chr3 & 63;

      if (isNaN(chr2)) {
         enc3 = enc4 = 64;
      } else if (isNaN(chr3)) {
         enc4 = 64;
      }

      output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) + 
         keyStr.charAt(enc3) + keyStr.charAt(enc4);
   } while (i < input.length);
   
   return output;
}

function decode64(input) {
   var output = "";
   var chr1, chr2, chr3;
   var enc1, enc2, enc3, enc4;
   var i = 0;

   // remove all characters that are not A-Z, a-z, 0-9, +, /, or =
   input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");

   do {
      enc1 = keyStr.indexOf(input.charAt(i++));
      enc2 = keyStr.indexOf(input.charAt(i++));
      enc3 = keyStr.indexOf(input.charAt(i++));
      enc4 = keyStr.indexOf(input.charAt(i++));

      chr1 = (enc1 << 2) | (enc2 >> 4);
      chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
      chr3 = ((enc3 & 3) << 6) | enc4;

      output = output + String.fromCharCode(chr1);

      if (enc3 != 64) {
         output = output + String.fromCharCode(chr2);
      }
      if (enc4 != 64) {
         output = output + String.fromCharCode(chr3);
      }
   } while (i < input.length);

   return output;
}
function encode64Han(str) {
  return encode64(escape(str))
}
function decode64Han(str) {
  return unescape(decode64(str))
}


 

//·Î±×ÀÎÇÑ»ç¶÷¸¸ ´ñ±ÛÀ»¾µ¼öÀÕÀ½
function loginText(){
var theForm=document.theFormAttach;
	
	if(theForm.strUserId.value == "False") {
			alert('·Î±×ÀÎÇÏ¼¼¿ä..');
			theForm.strAttachName.value="";
			theForm.strAttachText.value="";
			return;
	}else{
		
	}
	
}

function CheckStr(strOriginal, strFind, strChange) {
	var position, strOri_Length;
	position = strOriginal.indexOf(strFind); 

	while (position != -1) {
		strOriginal = strOriginal.replace(strFind, strChange);
		position = strOriginal.indexOf(strFind);
	}

	strOri_Length = strOriginal.length;
	return strOri_Length;
}

	function showPicture(src,wid,heig,auto,strtitle) {
		var imgObj = new Image();
		imgObj.src = src;
		var wopt = "scrollbars=no,status=no,resizable=no";
		
		if (auto=="no")
		{//¶ç¿ì°í½ÍÀºÅ©±â
		//wopt += ",width=" + wid;
		//wopt += ",height=" + heig;
		}else{
		//ÀÚ±â°¡ ¾Ë¾Æ¼­ ¶ç¿ì´ÂÅ©±â
		//wopt += ",width=" + imgObj.width;
		//wopt += ",height=" + imgObj.height;
		}
		wopt += ",width=" + imgObj.width;
		wopt += ",height=" + imgObj.height;
		var wbody = "<head><title>"+strtitle+"</title>";
		wbody += "</head>";
		
		if (strtitle==""){
			wbody += "<body onLoad='' style='margin:0'>";
			wbody += "<a href='javascript:window.close()'><img src='" + src + "' border=0></a>";
		}else{
			wbody += "<body onLoad='' style='margin-top:10;margin-left;5;'>";
			wbody += "<a href='javascript:window.close()'><img src='" + src + "' border=0></a><br>";

		}
		wbody += "</body>";
		winResult = window.open("about:blank","",wopt);
		winResult.document.open("text/html", "replace");
		winResult.document.write(wbody);
		winResult.document.close();
		return;
		}

		//ÄíÅ°

		
			function notice_getCookie(name)
			{
			var nameOfCookie = name + "=";
			var x = 0;
			while ( x <= document.cookie.length ){
			var y = (x+nameOfCookie.length);
			if ( document.cookie.substring( x, y ) == nameOfCookie ) {
			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )endOfCookie = document.cookie.length;return unescape( document.cookie.substring( y, endOfCookie) );
			}
			x = document.cookie.indexOf( " ", x ) + 1;
			if ( x == 0 )
			break;
			}
			return "";
			}
//ÆË¾÷¶ç¿ì±â

			function PopupView(seq,left){
				if ( notice_getCookie( "POPUPs"+seq ) != "done" ) { // ¶ç¿ï ÆË¾÷ÀÇ check()ÀÇ setCookie Name °ú ¸ÂÃç¾ß ÇÑ´Ù.

					window.open("PopupView.asp?view="+seq,"popup"+seq,"width=450,height=520,top=0,left="+left);
				}
			}


//°ü¸®ÀÚ ¶ç¾îÁÖ±â
	function popAdmin(Url){
		var theForm=document.LoginForm;

		window.open(Url,"popAdmin","width=820,height=620,top=0,left=0,scrollbars=1");
	}
	//¾ÆÀÌµð ÆÐ½º¿öµå Ã£±â
	function idpwSearch(Url){
		window.open(Url,"search","width=400,height=420,top=0,left=0,scrollbars=0");
	}

//¾ó·µÃ¢ ¸¸µé±â




	//·Î±×ÀÎ ÇÏ±â

	function LoginSubmit(){
		var theForm=document.LoginForm;
		
			if(CheckStr(theForm.UserId.value, " ", "") == 0) {
				alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
				theForm.UserId.value = "";
				theForm.UserId.focus();
			return;
			}

			if(CheckStr(theForm.UserPw.value, " ", "") == 0) {
				alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿À.");
				theForm.UserPw.value = "";
				theForm.UserPw.focus();
			return;
			}
		theForm.method="post";
		theForm.action="/LoginCheck.asp";
		theForm.submit();
	}

	function LoginSubmit_vt(){
		var theForm=document.LoginForm;
		
			if(CheckStr(theForm.UserId.value, " ", "") == 0) {
				alert("Please insert ID.");
				theForm.UserId.value = "";
				theForm.UserId.focus();
			return;
			}

			if(CheckStr(theForm.UserPw.value, " ", "") == 0) {
				alert("Please insert password.");
				theForm.UserPw.value = "";
				theForm.UserPw.focus();
			return;
			}
		theForm.method="post";
		theForm.action="/LoginCheck.asp";
		theForm.submit();
	}

	//*****************************//
	//***ÀÌ¸ÞÀÏÀÌ ¿Ã¹Ù¸¥Áö Ã¼Å© ***//
	//*****************************//
	function emailCheck (emailStr) {
	// Email check ÇÔ¼ö
	var emailPat=/^(.+)@(.+)$/
	var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
	var validChars="\[^\\s" + specialChars + "\]"
	var firstChars=validChars
	var quotedUser="(\"[^\"]*\")"
	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
	var atom="(" + firstChars + validChars + "*" + ")"
	var word="(" + atom + "|" + quotedUser + ")"
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")

	var matchArray=emailStr.match(emailPat)
	if (matchArray==null) {
	alert("E-mail ÁÖ¼Ò°¡ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù.\n @ ¿Í . À» È®ÀÎÇÏ½Ê½Ã¿À")
	return false
	}
	var user=matchArray[1]
	var domain=matchArray[2]

	if (user.match(userPat)==null) {
	alert("¸ÞÀÏ ¾ÆÀÌµð°¡ Á¤È®ÇÑ °Í °°Áö ¾Ê½À´Ï´Ù.")
	return false
	}

	var IPArray=domain.match(ipDomainPat)
	if (IPArray!=null) {
	for (var i=1;i<=4;i++) {
	if (IPArray[i]>255) {
	alert("IP°¡ Á¤È®ÇÏÁö ¾Ê½À´Ï´Ù!")
	return false
	}
	}
	return true
	} 

	var domainArray=domain.match(domainPat)

	if (domainArray==null) {
	alert("µµ¸ÞÀÎ ÀÌ¸§ÀÌ Á¤È®ÇÑ °Í °°Áö ¾Ê½À´Ï´Ù.")
	return false
	}
	var atomPat=new RegExp(atom,"g")
	var domArr=domain.match(atomPat)
	var len=domArr.length

	if (domArr[domArr.length-1].length<2 ||
	domArr[domArr.length-1].length>3) {
	alert("µµ¸ÞÀÎ¸íÀÇ ±¹°¡ÄÚµå´Â 2ÀÚº¸´Ù Å©°í 3ÀÚº¸´Ù ÀÛ¾Æ¾ß ÇÕ´Ï´Ù")
	return false
	}

	if (domArr[domArr.length-1].length==2 && len<3) {
	var errStr="This address ends in two characters, which is a country"
	errStr+=" code. Country codes must be preceded by "
	errStr+="a hostname and category (like com, co, pub, pu, etc.)"
	alert(errStr)
	return false
	}

	if (domArr[domArr.length-1].length==3 && len<2) {
	var errStr="ÀÌ ÁÖ¼Ò´Â È£½ºÆ®¸íÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù"
	alert(errStr)
	return false
	}
	return true;
	}

	//ÀÌ¸ÞÀÏ Ã¼Å© ³¡
	//ÀÎÇ²¹Ú½º µîµî Ã¼Å©..
/*
id¿¡¼­ ¾µ ²¨.(ÅäÀÎºñ´Â °ÅÀÇ id·Î(¿ÀºêÁ§Æ®·Î ÇØ¼­±×·±Áö.)
ÇöÀç ±ÍÂú¾Æ¼­ (required,Ãß°¡¿¹Á¤)
»ç¿ë¹æ¹ý Ãß°¡ ÇÏ¸é µÈ´Ù. (required AlertV="ÀÔ·ÂÇØÁÖ¼À1")
*/
function hanRequired(cKV,alertCN){

	if (cKV.value.replace(/ /gi,"")==""){
		cKV.focus();
		alert(alertCN);
		return false;
	}else{
		return true;
	}

}
 function hanEmail(cKV,alertCN) {


        //var pattern = /(\S+)@(\S+)\.(\S+)/; ÀÌ¸ÞÀÏÁÖ¼Ò¿¡ ÇÑ±Û »ç¿ë½Ã
        var pattern = /([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)\.([0-9a-zA-Z_-]+)/;
		  if (!pattern.test(cKV.value)) { 
			cKV.focus();
			alert(alertCN);
			return false;
		}else{
			return true;
		}
 }
 function hanNumeric(cKV,alertCN) { 
	var ns="";

	if(cKV.value==""){
		alert("¼ýÀÚ¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä!");
		cKV.focus();
		return false;
	}else{
        if (cKV.value.length > 0) { 
           
                if (cKV.value.charAt(0) < '0' || cKV.value.charAt(0) > '9') { 
					ns="alert";
						alert(alertCN);
						cKV.focus();
						return false;
			
				 }
				 
			 
		}
		
	
  }
}
function goChk(objID){
//objID (input) ÇöÀç ÆäÀÌÁö¿¡ÀÖ´Â ÀÎÇ² ÀüºÎ Ã¼Å©ÇÑ´Ù.
//Å×½ºÆ® °á°ú (¾çÈ£..)

var arrID= objID.split(",");/*±¸ºÐÀÚ ¼³Á¤. ¼³Á¤À» Array ·Î ÇÏ¸é Á¶±Ý´õ ºü¸¦Áö ¸ð¸£°Ú±º.*/

	for (j=0;j<=arrID.length-1;j++){/*³­ ¿ù·¡  i -> j  ¼ø¼­ÀÎµ¥  ÀÌ¹ø¿£ ¿ªÀ¸·Î ¹Ù²ñ.Â¥Áõ..*/

		var inputCount=document.getElementsByTagName(arrID[j]).length;

			for (i=0;i< inputCount;i++){
				cKV=document.getElementsByTagName(arrID[j])[i];
				alertCN=document.getElementsByTagName(arrID[j])[i].getAttribute("AlertV");
					/*Å¸ÀÔÀº ±»ÀÌ ¹è¿­·Î µ¹¸± ÇÊ¿ä¾øÀ»µíÇØ¼­..*/
				 if (cKV.type == "text" || cKV.type == "file" || cKV.type == "password" ) {
				
					if (document.getElementsByTagName(arrID[j])[i].getAttribute("required") != null ){
							/*
							cKV=""º§·ù°ª
							alertCN=""¾ó·µÃ¢ º¸¿©ÁÙ.
							replace Á¤±Ô½Ä ¾¸.
							*/
							if(hanRequired(cKV,alertCN) == false){
								return false;
							}
							
					}
					
					else if (document.getElementsByTagName(arrID[j])[i].getAttribute("mail") != null ){

							if (hanEmail(cKV,alertCN)==false){
								return false;
							}
							
					}
					/*
					else if (document.getElementsByTagName(arrID[j])[i].getAttribute("Numeric") != null ){

							if (hanNumeric(cKV,alertCN)==false){
								return false;
							}
							
					}
					*/
				}
		}
	}
}


//¸¶¿ì½º ÀÌº¥Æ®
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_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_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 AcaManage(academySeq,userSeq,userPort){

	if (userSeq =="05120005"   ){
		//alert('Àü»êÆÀ¿¡ ¹®ÀÇÇÏ¼¼¿ä.');
		//return  
	}
	var port_years=userPort;
	if (userPort=="80"){
		port_years="";
	}else{
		port_years=":"+userPort;
	}
	if (academySeq == "1001001") //Vietnam ¿µ¹® ÇÐ¿ø°ü¸®ÇÁ·Î±×·¥ Ã³¸® 2010.07.05 -Clark-
	{
		window.open('http://vt.koreapolyschool.com'+port_years+'/logIn/LogOn.asp?academySeq='+academySeq+'&userSeq='+userSeq+'','_blank','location=no,directiories=yes,scrollbars=no,resizable=no,width=1000,height=700,top=0,left=0');
	}
	else
	{
		window.open('http://aca.koreapolyschool.com'+port_years+'/logIn/LogOn.asp?academySeq='+academySeq+'&userSeq='+userSeq+'','_blank','location=yes,directiories=yes,scrollbars=yes,resizable=yes,width=1000,height=700,top=0,left=0');
		//window.open('http://aca.koreapolyschool.com/logIn/LogOn.asp?academySeq='+academySeq+'&userSeq='+userSeq+'','dd','fullscreen=2');
	}
	
}

function obj_swf(src,width,height){
    object = '';
    object += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" id="param" width="'+width+'" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    object += '<param name="quality" value="high">';
    object += '<param name="wmode" value="transparent">';
    object += '<embed src="'+src+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>';
    object += '<\/object>';
    document.write(object);
}





//



