<%
//--------------------------------------------------------------------
// Microsoft ADO
//
// (c) 1996 Microsoft Corporation.  All Rights Reserved.
//
//
//
// ADO constants include file for JScript
//
//--------------------------------------------------------------------
Const_ConStr = "DSN=JMSSWEB";
Const_DateSign = "#";
Const_TimeOut = 1;

//---- CursorTypeEnum Values ----
adOpenForwardOnly = 0;
adOpenKeyset = 1;
adOpenDynamic = 2;
adOpenStatic = 3;

//---- LockTypeEnum Values ----
adLockReadOnly = 1;
adLockPessimistic = 2;
adLockOptimistic = 3;
adLockBatchOptimistic = 4;

//---- CommandTypeEnum Values ----
adCmdUnknown = 0;
adCmdText = 0x0001;
adCmdTable = 0x0002;
adCmdStoredProc = 0x0004;

//---- Data Values ----
user_id = "";
getflg = 0;
look_type = "1";
look_count = 50;
look_syear = "";
look_smonth = "";
look_sday = "";
look_ntype = "1";
look_ncount = 50;
look_nsyear = "";
look_nsmonth = "";
look_nsday = "";
look_jobin = 0;
admin = "CHECKED";
REG_DATE = "";
updcnt="";

year="";
month="";
day="";
hours="";
minutes="";
seconds="";

function CurrentDateTime(cstr){

	var newDateObj = new Date();
	cstr=newDateObj.toLocaleString();
	if(cstr.length>0){
		month=cstr.substring(0,2);
		day=cstr.substring(3,5);
		if(cstr.indexOf(" ")==8){
			year=cstr.substring(6,8);
			hours=cstr.substring(9,11);
			minutes=cstr.substring(12,14);
			seconds=cstr.substring(15,17);
		}
		else{
			year=cstr.substring(6,10);
			hours=cstr.substring(11,13);
			minutes=cstr.substring(14,16);
			seconds=cstr.substring(17,19);
		}
		cstr=year+"/"+month+"/"+day+" "+hours+":"+minutes+":"+seconds;
	}
	return cstr;

}

function CurrentDateyear(cstr){

	var newDateObj = new Date();
	cstr=newDateObj.getYear();
/*	cstr=newDateObj.toLocaleString();
	if(cstr.length>0){
		if(cstr.indexOf(" ")==8){
			year=cstr.substring(6,8);
			if(parseInt(year,10)<=69 && parseInt(year,10)>=0)
				cstr="20"+year;
			else
				cstr="19"+year;
		}
		else{
			year=cstr.substring(6,10);
			cstr=year;
		}
	}*/
	return cstr;

}

function CurrentDatemon(cstr){

	var newDateObj = new Date();
	cstr=newDateObj.getMonth()+1;
/*	cstr=newDateObj.toLocaleString();
	if(cstr.length>0){
		month=cstr.substring(0,2);
		cstr=month;
	}*/
	return cstr;

}

function CurrentDateday(cstr){

	var newDateObj = new Date();
	cstr=newDateObj.getDate();
/*	cstr=newDateObj.toLocaleString();
	if(cstr.length>0){
		day=cstr.substring(3,5);
		cstr=day;
	}*/
	return cstr;

}

function CurrentDateweek(cstr){

	var newDateObj = new Date();
	cstr=newDateObj.getDay();
/*	cstr=newDateObj.toLocaleString();
	if(cstr.length>0){
		day=cstr.substring(3,5);
		cstr=day;
	}*/
	return cstr;

}
%>
