function hidealllong(thelong) {
	i = 1;
	do 
        {
       		thisDiv = document.getElementById('l'+i);
			thisDiv.style.display = "none";
			i++
			thatDiv = document.getElementById('l'+i);
        }
	while (thatDiv)
    if (thelong=='true') {
    thisDiv = document.getElementById('l1');
    thisDiv.style.display = "block";
    }
}
function showalllong() {
	i = 1;
	thisDiv = document.getElementById('l'+i);
	do 
        {
       		thisDiv = document.getElementById('l'+i);
			thisDiv.style.display = "block";
			i++
			thisDiv = document.getElementById('l'+i);
        }
	while (thisDiv)
}
function toggle(divName) {
    var thisDi = document.getElementById(divName);
	//alert(thisDi.id);
    if (thisDi) {
		//alert(thisDi.id);
        if (thisDi.style.display == "none") {
        	hidealllong(false);
            thisDi.style.display = "block";
        }
        else {
			//alert(thisDi.id);
            thisDi.style.display = "none";
        }
    }
//    return false;
}
function popitup(url)
{
	newwindow=window.open(url,'name','top=200,left=400,height=400,width=500,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}
function popWinUp(URL)
{
	//child = window.open(URL, "spawn", "height=450,width=650,menubar=yes,resizable=yes,status=yes,scrollbars=yes,toolbar=yes,location=yes");
	child = window.open(URL, "spawn", "");
	child.opener = self;
	child.focus();
}
