//print date//
function printdate(){
	var months=new Array(13);
	months[1]="1";
	months[2]="2";
	months[3]="3";
	months[4]="4";
	months[5]="5";
	months[6]="6";
	months[7]="7";
	months[8]="8";
	months[9]="9";
	months[10]="10";
	months[11]="11";
	months[12]="12";
	var time=new Date();
	var year=time.getYear()
	if (year < 2000) year = year + 1900;
	printdate=year+'&#24180;'+months[time.getMonth() + 1]+'&#26376;'+time.getDate()+'&#26085;';
	return printdate;
}

function changelang(targetlang){
	var tempURL=document.location.href;
	if (tempURL.match('.html')){
		templength=(tempURL.length-tempURL.lastIndexOf('/')-1)*-1;
		tempURL=tempURL.slice(0,templength);
	}
	//document.location.href=tempURL.replace('/chi/',targetlang);//
}

function popwin(url){
	window.open(url,"newwin");
}

function OpenWin(name,wwidth,wheight) {
	win=window.open(name,"message","top=10,left=10,scrollbars=no,location=no,memubar=no,directories=no,toolbar=no,width="+wwidth+",height="+wheight+"");
	if (win==null) win.creator=self;
		win.focus();
	}


function docDownload(url){
	window.open(url, 'downloadwin');
}



//onload = OpenWin('popup.html',300,350);