﻿/* ---------------------popUpWindow script */
window.onload = function() {
var node_a = document.getElementsByTagName('a');
for (var i in node_a) {
if (node_a[i].className == 'external') {
node_a[i].onclick = function() {
window.open(this.href, '', '');
return false;
}; }} };

/* ---------------------popUpWindow script */
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height){
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

/* ---------------------windowPrint script */
function printWin(){
	if(document.getElementById || document.layers){
		window.print();
	}
}

/* ---------------------pageSurfaceScrollToTop script */
function rollUp() {
var scrj = 1;
if(navigator.appName == "Microsoft Internet Explorer" && document.compatMode == "CSS1Compat") {
var scdist = document.body.parentNode.scrollTop;
} else {
var scdist = document.body.scrollTop;
}
if(scrj<50 && scdist) {
scdist = (scdist>2) ? Math.ceil(scdist*.2) : 1;
scrj++;
scrollBy(0,-scdist);
setTimeout("rollUp()",20);
} else {
scrollTo(0,0);
scrj = 1;
} } 


