function CheckEmpty(Object,Name){
	if(typeof(Object)!="undefined") {
		if(Object.value=="") {
			alert(Name+" ÀÔ·ÂÇØÁÖ¼¼¿ä.");
			eval(Object.focus());
			return false;
		}
		else return true;
	} 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 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 WinOpen(a_Url,a_Name,a_Opt) {
	window.open(a_Url,a_Name,'width=100,height=100,'+a_Opt);}

// ¼ýÀÚ ÀÔ·Â¸¸ Çã¿ë
function OnlyNumber(){
	if(((event.keyCode<48)||(57<event.keyCode))&&(45!=event.keyCode)) event.returnValue=false;}

// 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("/admin/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("/admin/include/show_progress.asp?nav=ns",null,winstyle);}}

self.focus()

var prod_row_tmp_color='';
var prod_row_tmp_id='';
function click_mark(row){
	if(prod_row_tmp_id != '')
		document.getElementById(prod_row_tmp_id).bgColor = prod_row_tmp_color;	
		//document.getElementById(prod_row_tmp_id).bgColor = prod_row_tmp_color;
		var obj1 = document.getElementById("ProdRow_"+row);
		//prod_row_tmp_color	= obj1.bgColor;
		//prod_row_tmp_color	= obj1.bgColor;
		prod_row_tmp_color	= '#DDF1FE';
		prod_row_tmp_id		= obj1.id;
		obj1.bgColor="#DDDDFF";}