/*공통 common.js 파일               */ 
/*IE 패치로 인한 <object>, <embed>, <applet> 태그 대응하기 위한 스크립트 */ 
function __ws__(id) 
{ 
  document.write(id.innerHTML); 
  id=""; 
} 

//Ȯ���� üũ �Լ�
	function Ck_file(file_name) 
	{
		allowSubmit = 0;
		file = file_name;
		extArray = new Array(".jpg", ".gif", ".doc", ".bmp", ".hwp", ".xls", ".zip", ".rar", ".pdf");  //������� ��d
	  
		if(file){
			while (file.indexOf("\\") != -1)
				file = file.slice(file.indexOf("\\") + 1);
				ext = file.slice(file.indexOf(".")).toLowerCase();

			for (var i = 0; i < extArray.length; i++) {
				if (extArray[i] == ext) { allowSubmit++; }
			}

			if(allowSubmit > 0){
				return true;
			}else{
				alert("��ε尡 ������ �ʴ� ���� Ȯ�����Դϴ�.");
				return false;
			}
		}else{
			return true;
		}
	}