//v1.0

nowPageName = location.href;
function pageToGo(getPageName,t1){
	if(getPageName =="login"){
		top.location.href=getPageName+".php?m_referrer=" + encodeURI(nowPageName);		
		return;
		}
	if(getPageName =="about01"){
		top.location.href=getPageName+"team.php";		
		return;
		}
	
	if(t1==undefined){
			top.location.href=getPageName+".php";
		} else {
			top.location.href=getPageName+".php#"+t1;
		}
	
	}
	
function toDelNO(){
document.newsForm.fn.value = "3";
document.newsForm.submit();
document.newsForm.fn.value = "0";
}


var popUpWin=0;
function popUpWindow(URLStr, mywidth, myheight)
{
ww=screen.availWidth;
hh=screen.availHeight;
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  myleft=(ww-mywidth)/2;
  mytop=(hh-myheight)/2-50;
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+mywidth+',height='+myheight+',left='+myleft+', top='+mytop+',screenX='+myleft+',screenY='+mytop+'');
}



var popUpWin2=0;
function popUpWindow2(URLStr, mywidth, myheight)
{
ww=screen.availWidth;
hh=screen.availHeight;
  if(popUpWin2)
  {
    if(!popUpWin2.closed) popUpWin2.close();
  }
  myleft=(ww-mywidth)/2;
  mytop=(hh-myheight)/2-50;
  popUpWin2 = open(URLStr, 'popUpWin2', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+mywidth+',height='+myheight+',left='+myleft+', top='+mytop+',screenX='+myleft+',screenY='+mytop+'');
}