function getdate()
{
	tmpDate = new Date();
	date = tmpDate.getDate();
	month= tmpDate.getMonth() + 1 ;
	year= tmpDate.getYear();
	document.write("<font color='#fdfa02'>今天是");
	document.write(year);
	document.write("年");
	document.write(month);
	document.write("月");
	document.write(date);
	document.write("日");
	document.write("</font>&nbsp; ");
	myArray=new Array(7);
	myArray[0]="星期日"
	myArray[1]="星期一"
	myArray[2]="星期二"
	myArray[3]="星期三"
	myArray[4]="星期四"
	myArray[5]="星期五"
	myArray[6]="星期六"
	weekday=tmpDate.getDay();
	if (weekday==0 | weekday==6)
	{
	document.write("<font color='#fdfa02'>" + myArray[weekday] + "</font>")
	}
	else{
	document.write("<font color='#fdfa02'>" + myArray[weekday] + "</font>")
	};
	
}

function getUrlPara(url,paraName)
{  
	var sUrl  = url; 
	var sReg  =  "(?:\\?|&){1}"+paraName+"=([^&]*)" 
	var re=new RegExp(sReg,"gi"); 
	re.exec(sUrl); 
	return RegExp.$1; 
} 

function GetUrl()
{
	return document.location.pathname;
}

function GetPara()
{
	var ac_para=document.location.search;
	var p=getUrlPara(ac_para,"page");
	return ac_para;
}

function GetBackUrl()
{
	return GetUrl()+GetPara();	
}

function isNumber(oNum)
{
	if(!oNum) return false;
	var strP=/^\d+(\.\d+)?$/;
	if(!strP.test(oNum)) return false;
	try{
	if(parseFloat(oNum)!=oNum) return false;
	}
	catch(ex)
	{
	return false;
	}
	return true;
}

function Msg(str)
{
	alert(str);	
}

function g(url)
{
   window.location.href=url;
}



