function openWindow(fileURL,windowName,windowProperties) 
{
	newWindow = window.open (fileURL,windowName , 'toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, directories=no, status=no');
	newWindow.focus();
}

function smallPrintWindow(path)
{
//	 	pwin = window.open(path,'printwin','width=1,height=1,left=-500,top=-500');
		pwin = window.open(path);
		pwin.focus();
//		setTimeout ("pwin.print()", 5000);
//		setTimeout ("pwin.close()", 15000);

}

var llx;
function llWin(sUrl)
{
	llx = window.open(sUrl,'livelinkwindow','height=1,width=1,left=-10,top=1000');
	window.setTimeout("llx.close();",15000) ;
}


function navBlockBtnClick(sElmtID)
{
	contentRow = document.getElementById(sElmtID + '_content');
	img = document.getElementById(sElmtID + '_icon');
	if(contentRow.className=='visible') 
	{
		contentRow.className='hidden';
		img.src='Images/arrow_simple_white_down.gif';		
	}	
	else
	{			
		contentRow.className='visible';
		img.src='Images/arrow_simple_white_up.gif';
	}
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    // if cookie exists
    if (offset != -1) { 
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1) end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function doCookie(sTitle)
	{
		if(get_cookie(sTitle)=='hide')
		{
			document.cookie=sTitle+'=show';
		}
		else
		{
			document.cookie=sTitle+'=hide';
		}
	}
  
