
	var IE = document.all?true:false; 
	if (!IE) document.captureEvents(Event.MOUSEMOVE) 
	document.onmousemove = getMouseXY; 
	var tempX = 0; 
	var tempY = 0; 
	function getMouseXY(e) { 
	if (IE) { // grab the x-y pos.s if browser is IE 
	tempX = event.clientX + document.body.scrollLeft; 
	tempY = event.clientY + document.body.scrollTop; 
	} 
	else {  // grab the x-y pos.s if browser is NS 
	tempX = e.pageX; 
	tempY = e.pageY; 
	}   
	if (tempX < 0){tempX = 0;} 
	if (tempY < 0){tempY = 0;}   
	return true; 
	} 

function AddFile()
{
var objTbl = document.getElementById('tblAttFiles');
var objRow = objTbl.insertRow(objTbl.rows.length);
var objCell = objRow.insertCell(0);
objCell.innerHTML =
"<img width=50 height=50 src='/img/im.gif' align=absbottom>\n" +
"<input type=file onChange='CkImageVal()' name=upfile[] size=40>";
//document.write.f_num.value  =  parseInt(document.write.f_num.value) + 1;
//alert(document.write.f_num.value);
document.recalc();
}
function AddFile2()
{
var objTbl = document.getElementById('tblAttFiles2');
var objRow = objTbl.insertRow(objTbl.rows.length);
var objCell = objRow.insertCell(0);
objCell.innerHTML =
"ÆÄÀÏ\n" +
"<input type=file  name=upfile2[] size=40>";
//document.write.f_num.value  =  parseInt(document.write.f_num.value) + 1;
//alert(document.write.f_num.value);
document.recalc();
}

function CkImageVal() {
var oInput = event.srcElement;
var fname = oInput.value;
if((/(.jpg|.jpeg|.gif|.png)$/i).test(fname))
  oInput.parentElement.children[0].src = fname;
   
else
  alert('ÀÌ¹ÌÁö´Â gif, jpg, png ÆÄÀÏ¸¸ °¡´ÉÇÕ´Ï´Ù.');

} 

function msgset_list2(str,str2){ 
var text 
text ='<table align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="" style="font-size:9pt; border-width:0; border-color:black; border-style:solid; word-break:break-all;">'
text += '<tr><td align=center>'+str+'<br>'+str2+'</td></tr></table>'
message.innerHTML=text 
} 

function msghide_list2(){ 
message.innerHTML='' 
} 


function msgposit_list2(){
 
var XX=0
if (tempY >= 385){ var YY = -180;} else { var YY= -10;}	
message.style.posLeft = event.x + 42 + document.body.scrollLeft 
message.style.posTop = event.y + YY + document.body.scrollTop 
 
} 

function select_open( path) {
 	window.open(path,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=700,top=0,left=0");
	 
}
function select_open2( path) {
 	window.open(path,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=750,top=0,left=0");
	 
}
function select_open3( path,width,height) {
 	window.open(path,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",top=0,left=0");
	 
}
function select_open4( path,width,height,top,left) {
 	window.open(path,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",top="+top+",left="+left);
	 
}
function select_open5( path,width,height,target) {
 	window.open(path,target,"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+width+",height="+height+",top=0,left=0");
	 
}
function select_open6( path) {
 	window.open(path,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,resizable=0,width=800,height=750,top=0,left=0");
	 
}

function view_image(uid) {
 	
	window.open("popup.php?uid=" + uid,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=700,top=0,left=0");
}

function NvChange() {

	this.version = "0.1";
	this.name = "NvChange";
	this.item = new Array();
	this.itemcount = 0;
	this.itemoffset = 0;
	this.item_i = new Array();
	this.item_icount = 0;
	this.item_ioffset = 0;
	this.currentspeed = 0;
	this.scrollspeed = 50;
	this.pausedelay = 1000;
	this.pausemouseover = false;
	this.stop = 0;
	this.height = 100;
	this.heightGap = 0;
	this.width = 100;
	this.height_i = 300;
	this.width_i = 100;
	this.stopHeight=0;
	this.count=0;
	this.flag=true;
	this.position="absolute";
	this.item_position="absolute";

	this.add = function () {
		var text = arguments[0];
		this.item[this.itemcount] = text;
		this.itemcount = this.itemcount + 1;
	};

	this.addImage = function () {
		var text = arguments[0];
		this.item_i[this.item_icount] = text;
		this.item_icount = this.item_icount + 1;
	};

	this.start = function () {
		this.display();
		this.currentspeed = this.scrollspeed;
		obj = document.getElementById(this.name+'item0').style;
		obj.display='block';
		this.count++;
		setTimeout(this.name+'.scroll()',this.currentspeed);
	};

 
	this.display = function () {
		document.write('<div id="'+this.name+'" style="overflow:hidden;" OnMouseOver="'+this.name+'.onmouseover();" OnMouseOut="'+this.name+'.onmouseout();">');
		for(var i = 0; i < this.itemcount; i++) {
				document.write('<div id="'+this.name+'item'+i+'"style="display:none; ">');
				document.write(this.item[i]);
				document.write('</div>');
		}
		document.write('</div>');
	};

 

	this.scroll = function () {
		this.currentspeed = this.scrollspeed;
		if ( !this.stop ) {
			this.imageChange();
		}
		window.setTimeout(this.name+".scroll()",this.currentspeed);
	};


	this.imageChange = function ()
	{
 
		for (k = 0; k < this.itemcount; k++) {
			obj = document.getElementById(this.name+'item'+k).style;
			if (this.count % this.itemcount == k) {
				obj.display = 'block';
			} else {
				obj.display = 'none';
			}
		}
		this.count++;
	}

	this.onmouseover = function ()
	{
		if ( this.pausemouseover ) {
			this.stop = 1;
		}
	};
 
	this.onmouseout = function ()
	{
		if ( this.pausemouseover ) {
			this.stop = 0;
		}
	};

	this.up = function ()
	{
		var i;
		this.stop++;

		if ( this.itemcount <= this.itemoffset )
			this.itemoffset = this.itemoffset % this.itemcount;

		 

 
		for (i = 0; i < this.itemcount; i++) {
			obj = document.getElementById(this.name+'item'+i).style;
			if ( obj.display == "block" ) {this.itemoffset = i+1;obj.display="none";}
		}
		if (this.itemoffset < this.itemcount) {
			obj = document.getElementById(this.name+'item'+this.itemoffset).style;
			obj.display = "block";
		} else {
			obj = document.getElementById(this.name+'item0').style;
			obj.display = "block";
		}
		window.setTimeout(this.name + ".stop--;",this.pausedelay);
		//this.stop--;
	}



}
 
function doResize() {
  for (i = 45; i < document.images.length; i ++)
  {
    if (parseInt(document.images[i].width) > 600) {
      // document.images[i].style.width = '600';
 

    }
  }
}

 
function img_resize() { 
    // content ¾ÆÀÌµð ³»ÀÇ ¸ðµç ÀÌ¹ÌÁö Å©±â°¡ maxsize º¸´Ù Å©¸é maxsize·Î ¸®»çÀÌÁî. 
    maxsize = 560; 

    var content = document.getElementById("content"); 
    var img = content.getElementsByTagName("img"); 

    for(i=0; i<img.length; i++) { 
        if ( eval('img[' + i + '].width > maxsize') ) { 
            eval('img[' + i + '].width = maxsize') ; 
        } 
    } 
} 

 	function send_string(j)
	{
	var checked_string = "";
	var unchecked_string = "";
	var name_len;  
	var uid_len;
	name_len = 0;
	uid_len =0;
	
 

		for(i=0;i<j;i++)
		{
			if(document.f1.visuable1[i].checked == true)
				{
		 
				  
				checked_string = checked_string + document.f1.uid[i].value;
				checked_string = checked_string + ",";
		 
			 
	 
			} else if(document.f1.visuable1[i].checked == false) {
				
				unchecked_string = unchecked_string + document.f1.uid[i].value;
				unchecked_string = unchecked_string + ",";
		 
			}
	 
		
		}
	 
 
	 
				checked_len = checked_string.length -1;
				unchecked_len = unchecked_string.length -1;
				checked_string = checked_string.substring(0,checked_len);
				unchecked_string = unchecked_string.substring(0,unchecked_len);
	   

	//	alert(checked_string);


		if (document.f1.a_mode[0].checked )
		{
			  var aaa = confirm(checked_string + "¹ø °Ô½Ã¹°À» Á¤¸»·Î »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?");
			if (!aaa)
			{
				return;
			}

		}
		if (document.f1.a_mode[1].checked)
		{
			  var aaa = confirm(checked_string + "¹ø °Ô½Ã¹°À» Á¤¸»·Î ÀÌµ¿ÇÏ½Ã°Ú½À´Ï±î?");
			if (!aaa)
			{
				return;
			}

		}
		 

		 
		document.f1.checked_uid.value= checked_string;
		document.f1.unchecked_uid.value= unchecked_string;
		 document.f1.submit();

 
	}

