// JavaScript Document

function popup01(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

/*function showmenufirst(strID){
    document.getElementById(strID).style.display="none";
    document.getElementById(strID+"0").style.display="block";
	
}

function hidemenufirst(strID){
	document.getElementById(strID).style.display="block";
	document.getElementById(strID+"0").style.display="none";

}
*/
function showHide(weeklyID) 
{   
	var divs = document.getElementById('ShowHidePanel').getElementsByTagName('div'); 
	
    if(document.getElementById(weeklyID).style.display=="block")
	{
	    document.getElementById(weeklyID).style.display="none";
	}
	else if(document.getElementById(weeklyID).style.display=="none")
	{
	    HideAllPanels(divs.length /2);
	    document.getElementById(weeklyID).style.display="block";
	}
}
function HideAllPanels(NoOfPanel)
{
    for(var i=1; i<=NoOfPanel;i++)
    {
        var listingID = document.getElementById("link"+i);
        if(listingID!=null)
        {
            listingID.style.display="none";
        }
    }
}


function open_win1(p)
{
tm=window.open( p ,"news","toolbar=no,left=100, top=200, location=center,location=left, directories=no,menubar=no, width=529, height=550, scrollbars=yes, resizable=no, copyhistory=yes");
	tm.focus()
}
