function getItem(theId)
{
    return document.getElementById(theId);
}

function confirm_del(question, url)
{
    if(confirm(question))
    {
        location.href = url;
    }
}

function verScroll(dir, oId, spd) {
    var oDiv, oContent;
	if (typeof dir != "undefined") {
        direction = dir;
    }
    if (typeof spd != "undefined") {
        speed = spd;
    }
    if (typeof oId != "undefined") {
        oItem = oId;
    } 
    scrolltimer = null;
    oDiv = document.getElementById(oId);
	if (dir == "dn") {
		oDiv.scrollLeft += spd;
	} else {
		oDiv.scrollLeft -= spd;
	}
    scrolltimer = setTimeout("verScroll(direction, oItem, speed)", 1);
} 
function stopScroll() {
    clearTimeout(scrolltimer);
} 

function w_open(url)
{
    window.open(url, '', 'height=480,width=500,status=yes,toolbar=no,menubar=no,location=no');
}