function popup(l,w,h,scroll){window.open(l,'window',"width="+w+",height="+h+",toolbar=no,location=no,status=no,menubar=no,scrollbars="+scroll+",resizable=yes,top="+(screen.height-h)/2+",left="+(screen.width-w)/2).focus();}

function popupLong(loc, name, width, height, scrollbars, status) {
	var _params = "width="+width+",height="+height+",toolbar=no,location=no,status="+status+",menubar=no,scrollbars="+scrollbars+",resizable=yes,top=" + (screen.height-height)/2 + ",left=" + (screen.width-width)/2;

	var newWin = window.open(loc, name, _params);
	newWin.focus();
}

function popupform(loc, name, width, height, scrollbars)
{
	var _params = "width="+width+",height="+height+",toolbar=no,location=no,status=no,menubar=no,scrollbars="+scrollbars+",resizable=yes,top=" + (screen.height-height)/2 + ",left=" + (screen.width-width)/2;

	if (! window.focus)return true;
	window.open('', name, _params);
	loc.target=name;
	return true;
}

// ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// 
// Coded by Travis Beckham
// http://www.squidfingers.com | http://www.podlob.com
// If want to use this code, feel free to do so, but please leave this message intact.
//
// ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// --- version date: 02/04/03 ---------------------------------------------------------
var ScrollWin = {
iex : document.all,
scrollLoop : false, 
scrollInterval : null, // setInterval id
lastY : -1,
getScrollTop : function(){
if(this.iex) return (document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
else return window.pageYOffset;
},
scrollTo : function(x,y){
if(this.scrollLoop){
var top = this.getScrollTop();
if(Math.abs(top-y) <= 1){
window.scrollTo(0,y);
clearInterval(this.scrollInterval);
this.scrollLoop = false;
this.scrollInterval = null;
}else{
if (this.lastY == top+(y-top)/2) {
clearInterval(this.scrollInterval);
this.scrollLoop = false;
this.scrollInterval = null;				
}else
this.lastY = top+(y-top)/2;
window.scrollTo(0, this.lastY);
}
}else{
this.scrollInterval = setInterval("ScrollWin.scrollTo(0,"+y+")",100);
this.scrollLoop = true;
}
}
};
ScrollWin.containerName="container";
ScrollWin.anchorName="anchor";
ScrollWin.blockName="block";
ScrollWin.onClassName="active";
ScrollWin.offClassName="visited";
