<!--
function dougsw_goto_byselect(sel, targetstr) {
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'mywin', popupSettings);
     }
     else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}

function dougsw_goto(url, targetstr) {
  if (url == 'backward') history.back(1);
  else if (url == 'forward') history.forward(1);
  else {
     if (targetstr == 'blank') {
       window.open(url, 'win1', popupSettings);
     }
     else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null) frameobj.location = url;
     }
  }
}

function headlines_loading_text() {
	document.getElementById('headlines-loading').style.display = 'block';
}


function headlines_unloading_text() {
	document.getElementById('headlines-loading').style.display = 'none';
}

var myWindow;

function opencenteredwindow(url) {
    var width = 800;
    var height = 500;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",resizable,scrollbars,location,status,menubar,toolbar,directories,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures);
}


//On scrolling of DIV tag.

function OnDivScroll()
{
    var lstBlogroll = document.getElementById("lstBlogroll");

    //The following two points achieves two things while scrolling

    //a) On horizontal scrolling: To avoid vertical

    //   scroll bar in select box when the size of 

    //   the selectbox is 8 and the count of items

    //   in selectbox is greater than 8.

    //b) On vertical scrolling: To view all the items in selectbox


    //Check if items in selectbox is greater than 8, 

    //if so then making the size of the selectbox to count of

    //items in selectbox,so that vertival scrollbar

    // won't appear in selectbox

    if (lstBlogroll.options.length > 8)
    {
        lstBlogroll.size=lstBlogroll.options.length;
    }
    else
    {
        lstBlogroll.size=8;
    }
}

//On focus of Selectbox

function OnSelectFocus()
{
    //On focus of Selectbox, making scroll position 

    //of DIV to very left i.e 0 if it is not. The reason behind

    //is, in this scenario we are fixing the size of Selectbox 

    //to 8 and if the size of items in Selecbox is greater than 8 

    //and to implement downarrow key and uparrow key 

    //functionality, the vertical scrollbar in selectbox will

    //be visible if the horizontal scrollbar of DIV is exremely right.

    if (document.getElementById("divForumBlogroll").scrollLeft != 0)
    {
        document.getElementById("divForumBlogroll").scrollLeft = 0;
    }

    var lstBlogroll = document.getElementById('lstBlogroll');
    //Checks if count of items in Selectbox is greater 

    //than 8, if yes then making the size of the selectbox to 8.

    //So that on pressing of downarrow key or uparrowkey, 

    //the selected item should also scroll up or down as expected.

    if( lstBlogroll.options.length > 8)
    {
        lstBlogroll.focus();
        lstBlogroll.size=8;
    }
}
//
-->
