function CheckEmpty(Object,Name){
	if(typeof(Object)!="undefined"){
		if(Object.value==""){
			alert(Name+"未输入");
			eval(Object.focus());
			return false;}}}

function CheckMessage(Object,Name){
	if(typeof(Object)!="undefined"){
		if(Object.value==""){
			alert(Name+"未输入");
			return false;}}}

function CheckSelect(Object,Name){
	if(!Object.options[Object.selectedIndex].value){
		alert(Name+"为选择");
		return false;}}

function CheckInputBox(Object,Name){
	var Key=0;
	for(i=0;i<Object.length;i++) if(!Object[i].checked) Key++;
	if(Key==Object.length){
		alert(Name+"为选择");
		return false;}}

function CheckLength(Object,Name,Length,Mode){
	if(Object.value && !Object.disabled){
		if(!Mode && Object.value.length!=Length){
			alert(Name+"的长度应该为 "+Length+"字");
			SetFalse();
			return false;
		}else if(Mode==1 && Object.value.length<Length){
			alert(Name+"的长度太短");
			SetFalse();
			return false;
		}else if(Mode==2 && Object.value.length>Length){
			alert(Name+"的长度太长");
			SetFalse();
			return false;}}

function SetFalse(){
	Object.focus();
	Object.select();
	return false;}}

function CheckPassSame(Object1,Object2){
	if(Object1.value!=Object2.value){
		alert("密码不一致");
		Object2.value='';
		eval(Object2.focus());
		return false;}}

function Comma(cnj_str) { 
	var cnjValue=""; 
	var cnjValue2="";
	for(i=0;i<cnj_str.value.length;i++){   
		if(cnj_str.value.charAt(cnj_str.value.length-i-1)!=",") cnjValue2=cnj_str.value.charAt(cnj_str.value.length-i-1)+cnjValue2; 
	} 
	for(i=0;i<cnjValue2.length;i++){ 
		if(i>0&&(i%3)==0) cnjValue=cnjValue2.charAt(cnjValue2.length-i-1)+","+cnjValue; else cnjValue=cnjValue2.charAt(cnjValue2.length-i-1)+cnjValue;} 
	cnj_str.value=cnjValue;} 

function Only_Numeric(){
	if((event.keyCode<48)||(event.keyCode>57)){
		event.keyCode=0;}}

function WinOpen(a_Url,a_Name,a_Opt) {
	window.open(a_Url,a_Name,'width=100,height=100,'+a_Opt);}

function WinOpenBook(a_Url,a_Name,a_Opt) {
	//새창의 크기
	cw=800;
	ch=600;
	//스크린의 크기
	sw=screen.availWidth;
	sh=screen.availHeight;
	//열 창의 포지션
	px=(sw-cw)/2;
	py=(sh-ch)/2;
	window.open('/include/sample_book.asp?BookNM='+a_Url,'SampleB','width='+cw+',height='+ch+',top='+py+',left='+px+','+a_Opt);}

function setPng24(obj){
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter =
	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='';
	return '';
}

// DEXT UpLoad ShowProgress 함수
function f_show_progress(){
	strAppVersion = navigator.appVersion;
	if (strAppVersion.indexOf('MSIE') !=-1 && strAppVersion.substr(strAppVersion.indexOf('MSIE')+5,1)>4){
		winstyle = "dialogWidth=385px; dialogHeight:200px; center:yes;help:no;scroll:no;resizable:yes;status:no;";
		window.showModelessDialog("/include/show_progress.asp?nav=ie", null, winstyle);
//		window.open('/admin/include/show_progress.asp?nav=ie','_Progress','width=385,height=200');
	}else{
		winpos = "left=" + ((window.screen.width-380)/2) + ",top=" + ((window.screen.height-110)/2);
		winstyle="width=380,height=110,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,copyhistory=no," + winpos;
		window.open("/include/show_progress.asp?nav=ns",null,winstyle);}}

self.focus()