 
function MovePlayer(url, w, h){

var html;
html =	'<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="'+w+'" height="'+h+'">';
html +=        '<param name="filename" value="'+url+'">';
html +=        '<param name="AutoStart" value="1">';
html +=        '<param name="PlayCount" value="2147483647">';
html +=        '<param name="volume" value="1">';
html +=        '<param name="ShowControls" value="1">';
html +=        '<param name="ShowStatusBar" value="0">';
html +=        '<param name="EnableTracker" value="1">';
html +=        '<param name="ShowTracker" value="1">';
html +=        '<param name="ShowAudioControls" value="1">';
html +=        '<param name="ShowDisplay" value="0">';
html +=        '</object>';
document.write(html);
}


//¿¡µðÅÍ ¼öÁ¤
function setEditorBr(objId){
 
var _doc = oEditors.getById[objId].getWYSIWYGDocument()
if ($.browser.msie){ 
oEditors.getById[objId].getWYSIWYGDocument().attachEvent("onkeydown", function(e){
var range=oEditors.getById[objId].getWYSIWYGDocument().selection.createRange();
			if(e.keyCode==13 && range.parentElement().tagName!="LI")
			{			
				e.cancelBubble=true; e.returnValue=false;
				range.pasteHTML("<br />"); range.select(); return false;
			}						
																						
			});

}

}

function appendFileWeb(data, isdoc){
	
	 
		if (data.filetype =="attach"){
		addAttachWeb(data);	
		}
		
		
}


function addAttachWeb(objfile){
	var obj = document.getElementById(objfile.filetype + "list");
	var newDiv = document.createElement("div");
	var filesize = getSize(objfile.filesize);
	newDiv.innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="/lib/download.asp?if='+encodeURIComponent(objfile.infilename)+'&of='+objfile.filename+'">'+objfile.infilename+'</a></td><td width="100" align="right" class="imageInfo">'+filesize+'</td></tr></table>';
	//ÆûÅ×±×
	//newDiv.innerHTML += '<input type="hidden" name="up_'+objfile.filetype+'" value="'+objfile.filename+'" />';
	
	
	newDiv.id = "file_"+objfile.filename;
	obj.appendChild(newDiv);
 
 
	
}


function joinSupport(id){
	location.href = '/include/JoinSupport.asp?Id='+id;
}



$.fn.alphanumeric = function(p) { 
 p = $.extend({ ichars: "!@#$%^&*()+=[]\\\';,/{}|\":<>?~`.-_ ", nchars: "", allow: "" }, p);
 return this.each( function() {
  
  if (p.nocaps) p.nchars += "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  if (p.allcaps) p.nchars += "abcdefghijklmnopqrstuvwxyz";
  s = p.allow.split('');
  for ( i=0;i<s.length;i++) if (p.ichars.indexOf(s[i]) != -1) s[i] = "\\" + s[i];
  p.allow = s.join('|');
  var reg = new RegExp(p.allow,'gi');
  var ch = p.ichars + p.nchars;
  ch = ch.replace(reg,'');

  $(this).keypress( function (e) {
   if (!e.charCode) k = String.fromCharCode(e.which);
    else k = String.fromCharCode(e.charCode);
   if (ch.indexOf(k) != -1) e.preventDefault();
   if (e.ctrlKey&&k=='v') e.preventDefault();
     
  });
  
  $(this).bind('contextmenu',function () {return false});
 });
};

//¼ýÀÚ¸¸ °¡´ÉÇÏ°Ô(Á¡, ÄÞ¸¶ ºÒ°¡)
$.fn.numeric = function(p) {
 this.css("ime-mode", "disabled");
 var az = "abcdefghijklmnopqrstuvwxyz";
 az += az.toUpperCase();
 p = $.extend({ nchars: az }, p); 
 return this.each( function() { $(this).alphanumeric(p); });
};

//¹®ÀÚ/2byte¹®ÀÚ¸¸ °¡´ÉÇÏ°Ô(°ø¹é, ¼ýÀÚ ºÒ°¡)
$.fn.alpha = function(p) {
 var nm = "1234567890";
 p = $.extend({ nchars: nm }, p); 
 return this.each( function() { $(this).alphanumeric(p); });
};

//¼ýÀÚ/¹®ÀÚ/2byte¹®ÀÚ/°ø¹é¸¸ °¡´ÉÇÏ°Ô
$.fn.alphanumericWithSpace = function(p) {
 var nm = "";
 p = $.extend({ nchars: nm, allow: " " }, p); 
 return this.each( function() { $(this).alphanumeric(p); });
};

//¹®ÀÚ¸¸ °¡´ÉÇÏ°Ô(¼ýÀÚ, 2byte¹®ÀÚ, °ø¹é ºÒ°¡)
$.fn.alphaAsciiOnly = function(p) {
 this.css("ime-mode", "disabled");
 var nm = "1234567890";
 p = $.extend({ nchars: nm }, p); 
 return this.each( function() { $(this).alphanumeric(p); });
};
    
//¼ýÀÚ¸¸ °¡´ÉÇÏ°Ô(Á¡, ÄÞ¸¶ °¡´É)
$.fn.decimal = function(p) {
 this.css("ime-mode", "disabled");
 var az = "abcdefghijklmnopqrstuvwxyz";
 az += az.toUpperCase();
 p = $.extend({ nchars: az, allow: ".,"}, p); 
 return this.each( function() { $(this).alphanumeric(p); });
}; 

