type1=document.URL.lastIndexOf("\\");
type1=document.URL.substr(type1+1);
type2=document.URL.lastIndexOf("/");
type2=document.URL.substr(type2+1);
function URLcheck(link,str){
var tmp=link+".html"
	if(type1==tmp||type2==tmp){
		document.write("<span>"+str+"</span>");
	}else{
		document.write("<a href=\"./"+link+".html\">"+str+"</a>");
	}
}
