//************** iFrame »çÀÌÁî Á¶Á¤ ½ÃÀÛ *************************


function reSize() 
{ 
try { 
var objBody = ibody.document.body; 
var objFrame = document.all["ibody"]; 
ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight); 
if (ifrmHeight > 550) { 
objFrame.style.height = ifrmHeight 
}else{ 
objFrame.style.height = 550; 
} 
objFrame.style.width = '100%' 
} catch(e) { 
// Do nothing 
} 
} 
function init_iframe() 
{ 
reSize(); 

setTimeout('init_iframe()',200) 
} 
init_iframe(); 

//************** iFrame »çÀÌÁî Á¶Á¤ ³¡ *************************







function Close(){
	window.close();
	return false;
}


//ÀüÃ¼È­¸é ÆäÀÌÁö ¿ÀÇÂ
function PageLoad() {
	sOptions = 'status=no,menubar=no,scrollbars=no,resizable=no,toolbar=no';
	sOptions = sOptions + ',width='  + (screen.availWidth - 20	).toString();
	sOptions = sOptions + ',height=' + (screen.availHeight - 30).toString();
	sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';
	wOpen    = window.open('','MAIN_WINDOW',sOptions);
	wOpen.location  = '/YYLogin.jsp';
	wOpen.focus();
	wOpen.moveTo( 2, 0 );
	wOpen.resizeTo( screen.availWidth, screen.availHeight );
	wOpen.opener    = self;
}


//·¹ÀÌ¾îº¸ÀÌ±â °¨Ãß±â
function ToggleDisplay(e){
	var x = event.x + document.body.scrollLeft;
	var y = event.y + document.body.scrollTop;
	
	if (e.style.display=="none"){
		var iObject = e;
			iObject.style.top = y + 15;
			iObject.style.left = x;
			iObject.style.display = "block";
	}else{
		var iObject = e;
			iObject.style.display = "none";
	}
	
}



//·¹ÀÌ¾îº¸ÀÌ±â °¨Ãß±â
function Toggle(e){
	var x = event.x + document.body.scrollLeft;
	var y = event.y + document.body.scrollTop;
	
	if (e.style.visibility=="hidden"){
		var iObject = e;
			iObject.style.top = y + 15;
			iObject.style.left = x;
			iObject.style.visibility = "visible";
	}else{
	
		e.style.visibility = "hidden";
	}
	
}



function hidden_progressbar() {
	try {
		top.progressbar.style.display = 'none';
	} catch(e) {
	}
}

//---------------------------------------------------------------------------------------
//	comm
//---------------------------------------------------------------------------------------
function go_url(url) {
	show_progressbar();
	location.href = url;
}


function go_frame(url,name){
	
	
	
	if (name == "" | name == "NEW"){
		window.open(url);
	}else{
		if (url != null){
			
			if (url.indexOf("http:") == -1){
				
				show_progressbar();
			}
			
			parent.document.frames(name).location.href= url;
			
		}
	}
	
	
}


//»õÃ¢¿ÀÇÂ
function popup(url, name, scrollbars, width, height){
	window.open(url, name, 'resizeable,scrollbars=' + scrollbars + ',width=' + width + ',height=' + height + ',top=30,left=30');
}


function wnd_resize(imgId) {
	try {
		var name = navigator.appName;
		var h = 0;
		var w = 0;
		var img = eval(imgId);
		if (name == 'Microsoft Internet Explorer') {
			h = img.height + 30;
			w = img.width + 10;
		} else {
			h = img.height + 9;
			w = img.width;
		}
	  var height = screen.height;
	  var width = screen.width;
	  var leftpos = width / 2 - w / 2;
	  var toppos = height / 2 - h / 2;
	  self.moveTo(leftpos, toppos);
	  self.resizeTo(w, h);
	} catch(e) {}
}



function view_topic(code, userId) {
	show_progressbar();
	var url;
	if (code.substring(0, 3) == "BRD") {
		url = "/board/BoardView.aspx?code="+ code;
	} else {
		url = "/article/ArticleList.aspx?code="+ code;
	}
	url += "&userId="+ userId;
	location.href = url;		
}

function go_view(code, groupNo) {
	show_progressbar();
	var url;
	if (code.substring(0, 3) == "BRD") {
		url = "/board/BoardView.aspx?code="+ code;
	} else {
		url = "/article/ArticleView.aspx?code="+ code;
	}
	url += "&groupNo="+ groupNo;
	location.href = url;		
}
function show_imoticon() {
	if (msnImoticon.style.display == "") {
		showImticon.innerText = "Show Msn Imoticon";
		msnImoticon.style.display = "none";
	} else {
		showImticon.innerText = "Hidden Msn Imoticon";
		msnImoticon.style.display = "";
	}
}

function Sawon_Info(Id) {
	//show_progressbar();
	//var url = "/common/userDetail.aspx?id="+ userId;
	//location.href = url;		
	window.open('/Common/UserDetail.aspx?id=' + Id,'»ç¿øÁ¤º¸','width=600,height=250, toolbar=no, scrollbars=no, resizable=yes');
}

function win_open(_url, _feather) {
	if (_feather == "") {	
		_feather = "dialogWidth:400px;dialogHeight:150px;center:yes;help:no;resizable:no;toolbar:no;directories:no;status:no;menubar:no;scrollbars:no;location:no";
	}
	window.showModelessDialog(_url, window, _feather);
}

function do_submit(frm) {	
	show_progressbar();
	frm.target = "_self";
	frm.submit();	
}

function isEmpty(obj, msg) {
	if(trim(obj.value) == "") {
		alert(msg);
		obj.focus();
		return true;
	}
	return false;
}

function trim(value)
{
	var s = '';
	var sidx = 0;
	var eidx = value.length;
	
	for (var i = 0; value.length; i++) {
		if (value.charAt(i) != ' ') {
			sidx = i;
			break;
		}
	}
		
	for (var i = value.length - 1; i >= 0; i--) {
		if (value.charAt(i) != ' ') {
			eidx = i;
			break;
		}
	}
		
	return value.substring(sidx, eidx + 1);
}
function left(s,len) {
	var ret="";
	for(var i=0;i<len;i++) 
		ret += s.charAt(i);
	return ret;
}

function check_email(strEmail) {
	var pattern = /^(.+)@(.+)$/;
	var atom = "\[^\\s\\(\\)<>#@,;:!\\\\\\\"\\.\\[\\]\]+";
	var word="(" + atom + "|(\"[^\"]*\"))";
	var user_pattern = new RegExp("^" + word + "(\\." + word + ")*$");
	var ip_pattern = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
	var domain_pattern = new RegExp("^" + atom + "(\\." + atom +")*$");

	var arr = strEmail.match(pattern);
	if (!arr) return false;
	if (!arr[1].match(user_pattern)) return false;

	var ip = arr[2].match(ip_pattern);
	if (ip) {
			for (var i=1; i<5; i++) if (ip[i] > 255) return false;
	}
	else {
			if (!arr[2].match(domain_pattern)) return false;
			var domain = arr[2].match(new RegExp(atom,"g"));
			if (domain.length<2) return false;
			if (domain[domain.length-1].length<2 || domain[domain.length-1].length>3)
					return false;
	}
	return true;
} 


//Ãµ´ÜÀ§ ±¸ºÐÀÚ ³Ö±â


	function GetOriginStr(str, decPt)
	{
		var strOrigin="";
		var cnt=0;
		var decCnt=-1;
		for (var i=0; i<str.length; i++)
		{
			if ((str.charAt(i) >= "0" && str.charAt(i) <= "9"))
			{
				if (decCnt > -1)
				{
					if (++decCnt <= decPt)
					{
						strOrigin+=str.charAt(i);
						cnt++;
					}
					else
					{
						return strOrigin;
					}
				}
				else
				{
					strOrigin+=str.charAt(i);
					cnt++;
				}
			}
			else if (str.charAt(i) == ".")
			{
				if (decCnt == -1)
				{
					strOrigin+=str.charAt(i);
					decCnt++;
				}
			}
			else if (i == 0 && str.charAt(i) == "-")
			{
				strOrigin+=str.charAt(i);
			}
		}
		return strOrigin;
	}

	function MakeMoney(str)
	{
	
	
		if (str == ''){
			return '0';
		}
	
		var i=0, j=0, cnt=str.indexOf(".");
		var strFormed="";

		if (cnt == -1)
			cnt=str.length;
			
		for(i=0; i<cnt%3; i++)
		{
			strFormed+=str.charAt(i);
		}

		if (cnt/3 > 1 && cnt%3 != 0)
		{
			strFormed+=",";
		}

		for(i=cnt%3; i<cnt; i++,j++)
		{
			if (j==3)
			{
				strFormed+=","+str.charAt(i);
				j=0;
			}
			else
			{
				strFormed+=str.charAt(i);
			}
		}
		strFormed+=str.substr(cnt, str.length-cnt);
		return strFormed;
	}

	function SetMoneyForm(edit, decPt)
	{
		var strOrigin=GetOriginStr(edit.value, decPt);
		edit.value=MakeMoney(strOrigin);
	}

function viewer(){
	shape  = 'width=500,height=500';
	shape += 'toolbar=no,location=no,directories=no,status=yes,';
	shape += 'menubar=no,scrollbars=yes,resizable=yes';
	path   = '/common/viewer.aspx' ;
  	var win1 = window.open(path, '', shape);
}


//ÀÔ·ÂÇÑ tabIndex·Î °´Ã¼¸®ÅÏ
function GetObjectByTabIndex(index)
{
 for (i = 0; i < document.forms[0].length; i++)
 {
  tmp = document.forms[0].elements[i];
  if (tmp.tabIndex == index)
  {
   return tmp;
  }
 }
 return null;
}


//¿£ÅÍÅ° ÀÔ·Â½Ã ´ÙÀ½ÅÇÀÎµ¦½º·Î Æ÷Ä¿½ºÀÌµ¿

function KeyDownFocus(obj)
{   
 if (event.keyCode == 13) {
  tmp = GetObjectByTabIndex(obj.tabIndex+1);     
  if (tmp == null) tmp = GetObjectByTabIndex(1);     
  if (tmp != null) tmp.focus();
 }    
}   


//»ç¾÷ÀÚ µî·Ï¹øÈ£·Î ¸¸µé±â
function SetSaUp(txtSaup){
		
		txtNumber = txtSaup.value;
		txtValue = parseInt(txtNumber.length);

		
		if (txtValue == 12){
			return;
		}
		
		if (txtValue == 0){
			txtSaup.value = "";
			return;
		}
		
		if (txtValue == 10){
			
			part1 = txtNumber.substring(0,3);
			part2 = txtNumber.substring(3,5);
			part3 = txtNumber.substring(5,10);
			
			totText = part1 + "-" + part2 + "-" + part3
			txtSaup.value = totText;

			
		}else{
			alert ('µî·Ï¹øÈ£¸¦ ´Ù½Ã È®ÀÎÇØ ÁÖ¼¼¿ä');
			txtSaup.value = "";
			txtSaup.focus();
			return;
		}

}



function onlyNumber(field, event) {
   var keyCode = event.keyCode ? event.keyCode : 
                  event.which ? event.which : event.charCode;
    
    
  
    
    
    	if ((keyCode < 46) ||(keyCode ==47)|| (keyCode > 57)){
  		event.returnValue=false;}
	else
      	return true;

	// ¿£ÅÍÅ°(13)ÀÌ¸é
	if (keyCode == 13) {


		//ÇöÀç ¹®¼­ÀÇ Æû ÇÊµå¸¦ ³»ºñ°ÔÀÌ¼Ç...
		for (i = 0; i < field.form.elements.length; i++){
			if (field == field.form.elements[i]) break;
		}
		
		FocusLoop(field, i);

		return false;
		
	}else{
		return true;
	}
}




function onlyNumberWithMinus(field, event) {
   var keyCode = event.keyCode ? event.keyCode : 
                  event.which ? event.which : event.charCode;
    
    
    
    	if ((keyCode < 45) ||(keyCode ==47)|| (keyCode > 57)){
  		event.returnValue=false;}
	else
      	return true;

	// ¿£ÅÍÅ°(13)ÀÌ¸é
	if (keyCode == 13) {


		//ÇöÀç ¹®¼­ÀÇ Æû ÇÊµå¸¦ ³»ºñ°ÔÀÌ¼Ç...
		for (i = 0; i < field.form.elements.length; i++){
			if (field == field.form.elements[i]) break;
		}
		
		FocusLoop(field, i);

		return false;
		
	}else{
		return true;
	}
}






function SetCardNo(txtSaup){
		
	txtNumber = txtSaup.value;
	txtValue = parseInt(txtNumber.length);

	
	if (txtValue == 19){
		return;
	}
	
	if (txtValue == 0){
		txtSaup.value = "";
		return;
	}
	
	if (txtValue == 16){
		
		part1 = txtNumber.substring(0,4);
		part2 = txtNumber.substring(4,8);
		part3 = txtNumber.substring(8,12);
		part4 = txtNumber.substring(12,16);
		
		
		totText = part1 + "-" + part2 + "-" + part3 + "-" + part4;
		txtSaup.value = totText;

		
	}else{
		alert ('Ä«µå¹øÈ£¸¦ ´Ù½Ã È®ÀÎÇØ ÁÖ¼¼¿ä');
		txtSaup.value = "";
		txtSaup.focus();
		return;
	}

}



function handleEnter (field, event) {
		// ºê¶ó¿ìÀú Á¾·ù¿Í ¹öÀü¸¶´Ù Å°º¸µå ÀÌº¥Æ® Ä¸ÃÄÇÏ´Â ¹æ½ÄÀÌ ´Ù¸£´Ù
		var keyCode = event.keyCode ? event.keyCode : 
                  event.which ? event.which : event.charCode;


			// ¿£ÅÍÅ°(13)ÀÌ¸é
			if (keyCode == 13) {


				//ÇöÀç ¹®¼­ÀÇ Æû ÇÊµå¸¦ ³»ºñ°ÔÀÌ¼Ç...
				for (i = 0; i < field.form.elements.length; i++){
					if (field == field.form.elements[i]) break;
				}
				
				FocusLoop(field, i);
				

				return false;
				
			}else{
				return true;
			}

		
} 

function FocusLoop(field, i){

		try{
				
				
				pre = i;
				
				
				for (x = i; x < field.form.elements.length; x++){
					
					if (x+1 == field.form.elements.length){
						return;
					}
					
					if (field.form.elements[x+1].tabIndex == 0 || 
						field.form.elements[x+1].tabIndex >= 2
					)
						break;

				}
					
				// ´ÙÀ½ Æû ÇÊµåÀÇ ÀÎµ¦½º ±¸ÇÏ±â
				x = (x + 1) % field.form.elements.length;

				//´ÙÀ½ Æû ÇÊµå·Î Æ÷Ä¿½º ÀÌµ¿
				field.form.elements[x].focus();
				
				return x;
		}catch(e){
			FocusLoop(field,x++);
		}	
				
		
}


//µÚ·Î °¡±â
function Back(step){
	history.back(step);
	
	return false;
}




function time ()

{

var now = new Date();

var yr = now.getYear();

var mName = now.getMonth() + 1;

var dName = now.getDay() + 1;

var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();

var ampm = (now.getHours() >= 12) ? " ¿ÀÈÄ" : " ¿ÀÀü"

var hours = now.getHours();

hours = ((hours > 12) ? hours - 12 : hours);

var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();

var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();



if(dName==1) Day = "ÀÏ¿äÀÏ";

if(dName==2) Day = "¿ù¿äÀÏ";

if(dName==3) Day = "È­¿äÀÏ";

if(dName==4) Day = "¼ö¿äÀÏ";

if(dName==5) Day = "¸ñ¿äÀÏ";

if(dName==6) Day = "±Ý¿äÀÏ";

if(dName==7) Day = "Åä¿äÀÏ";



if(mName==1) Month="1¿ù";

if(mName==2) Month="2¿ù";

if(mName==3) Month="3¿ù";

if(mName==4) Month="4¿ù";

if(mName==5) Month="5¿ù";

if(mName==6) Month="6¿ù";

if(mName==7) Month="7¿ù";

if(mName==8) Month="8¿ù";

if(mName==9) Month="9¿ù";

if(mName==10) Month="10¿ù";

if(mName==11) Month="11¿ù";

if(mName==12) Month="12¿ù";



// String to display current date.

var DayDateTime=(" "
+ yr
+ "³â"
+ " "
+ Month
+ " "
+ dayNr
+ "ÀÏ"
+ " "
+ Day
+ " "

+ ampm
+ hours
+ minutes
+ seconds
+ " "


);



// Displays Day-Date-Time on the staus bar.

window.status=DayDateTime;
document.Form1.TopFirst1_txtDateTime.value = DayDateTime;
timerID = setTimeout("time()",1000);
timerRunning = true;
}


//ÁÖ¹Î¹øÈ£¿Í ¿Ü±¹ÀÎ µî·Ï¹øÈ£ µ¿½Ã Á¦¾î
function jumin_fgn(juminNo){


	if (juminNo.value == ''){
		return;
	}

	var checkjumin = true;
	if (!jumin(juminNo)){
		checkjumin = false;
	}
	

	var checkfgn = true;
	if (!fgn_no_chksum(juminNo)){
		checkfgn = false;
	}
	
	
	if (checkjumin == true | checkfgn == true){
		juminNo.value = juminNo.value.substring(0,6) + "-" + juminNo.value.substring(6,13);
	}else{
		alert('ÁÖ¹Î(¿Ü±¹ÀÎ)¹øÈ£¸¦ È®ÀÎÇÏ¼¼¿ä');
			juminNo.value = '';
			
	}
	


}


//¿Ü±¹ÀÎ ÁÖ¹Î¹øÈ£Ã¼Å©
function fgn_no_chksum(reg_no) {
    var sum = 0;
    var odd = 0;
    
    
    //reg_no.value = reg_no.value.replace('-','');
    
    
    
    buf = new Array(13);
    for (i = 0; i < 13; i++) buf[i] = parseInt(reg_no.value.charAt(i));

    odd = buf[7]*10 + buf[8];
    
    if (odd%2 != 0) {
      return false;
    }

    if ((buf[11] != 6)&&(buf[11] != 7)&&(buf[11] != 8)&&(buf[11] != 9)) {
      return false;
    }
     
    multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
    for (i = 0, sum = 0; i < 12; i++) sum += (buf[i] *= multipliers[i]);


    sum=11-(sum%11);
    
    if (sum>=10) sum-=10;

    sum += 2;

    if (sum>=10) sum-=10;

    if ( sum != buf[12]) {
        return false;
    }
    else {
        return true;
    }
}

                                                                                               
//ÁÖ¹Î¹øÈ£ Ã¼Å©
function jumin(txtJuminNo)
{
  var intSSN1,intSSN2,a,b,c,d,e,f,g,h,i,j,k,l,sum,pivot,modulus,endnumber;
  intSSN1 = txtJuminNo.value.substring(0,6);
 
 intSSN2 = txtJuminNo.value.substring(6,14);
 
       a = intSSN1.substring(0, 1) 
         aa = a * 2;
       b = intSSN1.substring(1, 2) 
         bb = b * 3;
       c = intSSN1.substring(2, 3) 
         cc = c * 4;
       d = intSSN1.substring(3, 4) 
         dd = d * 5;
       e = intSSN1.substring(4, 5) 
         ee = e * 6;
       f = intSSN1.substring(5, 6) 
         ff = f * 7;
       g =intSSN2.substring(0, 1) 
         gg = g * 8;
       h = intSSN2.substring(1, 2) 
         hh = h * 9;
       i = intSSN2.substring(2, 3) 
         ii = i * 2;
       j = intSSN2.substring(3, 4) 
         jj = j * 3;
       k = intSSN2.substring(4, 5) 
         kk = k * 4;
       l = intSSN2.substring(5, 6) 
         ll = l * 5;
     pivot =intSSN2.substring(6,7) 
      sum = aa + bb + cc + dd + ee + ff + gg + hh + ii + jj + kk + ll;
      modulus = sum % 11
      endnumber = 11 - modulus
      if(endnumber == 11) 
         endnumber = 1;
      else if(endnumber == 10) 
         endnumber = 0;
      else 
         endnumber = endnumber;
	if (pivot != endnumber) 
    {
    //alert("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ´Ù½Ã ÀÔ·ÂÇØÁÖ½Ê½Ã¿À.");
    //document.SSNCHECK.intSSN1.focus();
    return false;
    } 
    return true;
}


                                                          
                                                                                                              
function SetSaUp(txtSaup){                                                                                    
		                                                                                              
		txtNumber = txtSaup.value;                                                                    
		txtValue = parseInt(txtNumber.length);                                                        
                                                                                                              
		                                                                                              
		                                                                                              
		if (txtValue == 0){                                                                           
			txtSaup.value = "";                                                                   
			return;                                                                               
		}                                                                                             
		                                                                                              
		if (txtValue == 10 || txtValue == 12){                                                        
			                                                                                      
			part1 = txtNumber.substring(0,3);                                                     
			part2 = txtNumber.substring(3,5);                                                     
			part3 = txtNumber.substring(5,10);                                                    
			                                                                                      
			totText = part1 + "-" + part2 + "-" + part3                                           
			txtSaup.value = totText;                                                              
                                                                                                              
			                                                                                      
		}else{                                                                                        
			alert ('µî·Ï¹øÈ£¸¦ ´Ù½Ã È®ÀÎÇØ ÁÖ¼¼¿ä');                                              
			txtSaup.value = "";                                                                   
			txtSaup.focus();                                                                      
			return;                                                                               
		}                                                                                             
                                                                                                              
}                                                                                                             
                                                                                                              
                                                                                                              
function delTech(txt){                                                                                        
	temp = "";                                                                                            
	txttemp = "";                                                                                         
	txtValue = txt.value;                                                                                 
	                                                                                                      
	                                                                                                      
	if (txtValue == ""){                                                                                  
		return;                                                                                       
	}                                                                                                     
	                                                                                                      
	for (i = 0;i<=txtValue.length-1;i++){                                                                 
		temp = txtValue.charAt(i);                                                                    
		                                                                                              
		if ( temp == "-"){                                                                            
		}else{                                                                                        
			txttemp = txttemp + temp                                                              
		}                                                                                             
		txt.value = txttemp;                                                                          
	}                                                                                                     
}                                                                                                             






var theMenu=0
function toggleMenu(currMenu)  {
	if (document.all)   {
		thisMenu = eval('document.all.' + currMenu + '.style')
		if (parseInt(currMenu.substring(4,5)) == theMenu) {
			if (thisMenu.display == 'none') {
				thisMenu.display = 'block'
			}
			else {
				thisMenu.display = 'none'
			}
		}
		else {
			if (thisMenu.display == 'none') {
				thisMenu.display = 'block'
			}
			else {
				thisMenu.display = 'none'
			}
		}
		

	}
	else if (document.getElementById)   {
   		thisMenu = eval('document.getElementById("'+currMenu+'").style')
		if (parseInt(currMenu.substring(4,5)) == theMenu) {
			if (thisMenu.display == 'none') {
				thisMenu.display = 'block'
			}
			else {
				thisMenu.display = 'none'
			}
		}
		else {
			if (thisMenu.display == 'none') {
				thisMenu.display = 'block'
			}
			else {
				thisMenu.display = 'none'
			}
		}

	}
		switch (currMenu) {
			case 'menu1' : theMenu=1; break;
			case 'menu2' : theMenu=2; break;
			case 'menu3' : theMenu=3; break;
			case 'menu4' : theMenu=4; break;
			case 'menu5' : theMenu=5; break;
			case 'menu6' : theMenu=6; break;
			case 'menu7' : theMenu=7; break;
			case 'menu8' : theMenu=8; break;
			case 'menu9' : theMenu=9; break;
			case 'menu10' : theMenu=10; break;
			case 'menu11' : theMenu=11; break;
			case 'menu12' : theMenu=12; break;			
		}	
		
		
  }




function SaupCheck(user, type){
        var err=0
        com_num1 = user.saupjano1.value   
        com_num2 = user.saupjano2.value  
        com_num3 = user.saupjano3.value  
        com_num = com_num1 + com_num2 + com_num3

        if (type == 1) {
		if (com_num1.length != 3 || com_num1 < 0 || com_num1 > 999) {
		    err = 1;
                alert(' »ç¾÷ÀÚµî·Ï¹øÈ£ ÀÔ·ÂÇü½Ä ¿À·ùÀÔ´Ï´Ù. (xxx-xx-xxxxx)');
		    user.saupjano1.value="";
		    user.saupjano1.focus()  
		}
	  } else if (type == 2) {
		if (com_num2.length != 2 || com_num2 < 00 || com_num2 > 99) {
		    err = 1;
                alert(' »ç¾÷ÀÚµî·Ï¹øÈ£ ÀÔ·ÂÇü½Ä ¿À·ùÀÔ´Ï´Ù. (xxx-xx-xxxxx)');
                user.saupjano2.value="";
		    user.saupjano2.focus()
		}
	  } else if (type == 3) {
		if (com_num3.length != 5 || com_num3 < 00000 || com_num3 > 99999) {
		    err = 1;
                alert(' »ç¾÷ÀÚµî·Ï¹øÈ£ ÀÔ·ÂÇü½Ä ¿À·ùÀÔ´Ï´Ù. (xxx-xx-xxxxx)');
                user.saupjano3.value="";
		    user.saupjano3.focus()    
		}
	  }
       
 }


 
 
 
 //IE ActiveX¼³°èº¯°æ ÆÐÄ¡
 function Flash(width, height, src){
 
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + width + '" height="' + height + '" VIEWASTEXT>');

    document.write('<param name="movie" value="' + src + '">');

    document.write('<param name="quality" value="high">');

    document.write('<param name="wmode" value="window"> ');                      

    document.write('<embed src="/image/sunjin.swf" width="600" height="300" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="window"></embed>');

    document.write('</object>');

 }
 
 
 function XFileUpload_UpLoad(width, height, DialTitle, MaxCount, Filter, UploadPath, DisplayMode, UpMode , initDir, PopUpVisibled, SelectAllVisibled, UnSelectAllVisibled, DeleteVisibled, UploadVisibled){
 
     document.write('<object id="ListUpCTL" tabindex=1 classid="CLSID:3BE0021D-5CC6-4701-B8B1-F5D45A5BCC88" width="' + width + '" height="' + height + '" codeBase="http://group.sunjin.co.kr/XFileUpload/XFileUpload_OnlyOne.CAB#version=1,4,0,8" VIEWASTEXT>');

     document.write('<param name="_ExtentX" value="8334">');

     document.write('<param name="_ExtentX" value="8334">');
     
     document.write('<param name="BackColor" value="&HFFFDE3">');
     
     document.write('<param name="ForeColor" value="-2147483630">');

     
     document.write('<param name="DialTitle" value="' + DialTitle + '">');
 
	 document.write('<param name="MaxCount" value="' + MaxCount + '">');
 
     document.write('<param name="Fillter" value="' + Filter + '">');

     document.write('<param name="UploadPath" value="' + UploadPath + '">');
     
     document.write('<param name="DisplayMode" value="' + DisplayMode + '">');
     
     document.write('<param name="UpMode" value="' + UpMode + '">');
     
     document.write('<param name="initDir" value="' + initDir + '">');
     
     document.write('<param name="PopUpVisibled" value="' + PopUpVisibled + '">');
     
     document.write('<param name="SelectAllVisibled" value="' + SelectAllVisibled + '">');
     
     document.write('<param name="UnSelectAllVisibled" value="' + UnSelectAllVisibled + '">');
     
     document.write('<param name="DeleteVisibled" value="' + DeleteVisibled + '">');
      
     document.write('<param name="UploadVisibled" value="' + UploadVisibled + '">');
     
     document.write('</object>');

}


 function XFileUpload_View(width, height, ViewMode, URL, DownloadPath, PopUpVisibled, SelectAllVisibled, UnSelectAllVisibled,RunVisibled,DownloadVisibled){
 
    document.write('<OBJECT id="ListDownCTL" tabindex=1 style="LEFT: 0px; TOP: 0px" codeBase="http://group.sunjin.co.kr/XFileUpload/XFileUpload_OnlyOne.CAB#version=1,4,0,8" width="' + width + '" height="' + height + '" classid="CLSID:F36BB72B-9876-4C6D-B22F-D68E480A39B5" VIEWASTEXT>');
    
    document.write('<param name="_ExtentX" value="6562">');

    document.write('<param name="_ExtentX" value="2910">');
     
    document.write('<param name="BackColor" value="&HFFFDE3">');
    
    document.write('<param name="ForeColor" value="-2147483630">');
    
    document.write('<param name="Enabled" value="-1">');
				
    document.write('<param name="ViewMode" value="' + ViewMode + '">');
    
    document.write('<PARAM NAME="URL" VALUE="' + URL + '">');
    
	document.write('<PARAM NAME="DownloadPath" VALUE="' + DownloadPath + '">');
	
	document.write('<param name="PopUpVisibled" value="' + PopUpVisibled + '">');
     
    document.write('<param name="SelectAllVisibled" value="' + SelectAllVisibled + '">');
     
    document.write('<param name="UnSelectAllVisibled" value="' + UnSelectAllVisibled + '">');
     
    document.write('<param name="RunVisibled" value="' + RunVisibled + '">');
      
    document.write('<param name="DownloadVisibled" value="' + DownloadVisibled + '">');
				
	document.write('</object>');
 
 }
 
 
//------------------------
    
 