var newwindow;
var newwindow1;
function popstatic(url)
{
	newwindow = window.open(url,'name','height=480,width=640,toolbar=yes,menubar=yes,scrollbars=yes,top=0,resizable=yes');
	if (window.focus) 
		{	newwindow.focus()
		}
}

function popupTry(url)
{
	newwindow1 = window.open(url, 'name', 'height=170,width=830,toolbar=no,menubar=no,scrollbars=yes,top=380,left=165,resizable=yes');
	if (window.focus) 
		{	newwindow1.focus()
		}
}
function popPub(url)
{
	newwindow = window.open(url,'name','height=600,width=560,toolbar=yes,menubar=yes,scrollbars=yes,top=0,left=245,resizable=yes');
	if (window.focus) 
		{	newwindow.focus()
		}
}

function popsmall(url)
{
		newwindow=window.open(url,'name','height=300,width=375');
		if (window.focus) 
		{newwindow.focus()}
}

function popwin(list)
{
		var optselect = list.options.selectedIndex;
		var sel = list.options[optselect].value;
		sel = "http://www.dhcd.state.md.us/Website/programs/pfa/document/"+sel;
		window.open(sel);
		return true;
		
		/*var optselect = document.Form1.streetList.options.selectedIndex;
		var sel = document.Form1.streetList.options[optselect].value;
		alert("first>"+sel);
		sel = "http://isabel/DHCDWebSite/programs/pfa/document/"+sel;
		alert("second>"+sel);
		window.open(sel);
		return true;*/
}

function OpenWin(seriesName, filingDate, financingType)
{
 	alert('The Official Statement for '+financingType+' ' +seriesName+ ' served as the NRMSIR filing for ' +filingDate );
 	//window.open('http://www.google.com/?id='+id, 'MoreBikeInfo',								'height=30,width=250,top=50,left=50,toolbar=no,								menubar=no,location=no,resizab  le=no,scrollbars=yes,status=no');
 	return true;	    	
}

function OpenWinPre(seriesName, filingDate, financingType)
{
 	alert('The Preliminary Official Statement for '+financingType+' ' +seriesName+ ' served as the NRMSIR filing for ' +filingDate );
 	//window.open('http://www.google.com/?id='+id, 'MoreBikeInfo',								'height=30,width=250,top=50,left=50,toolbar=no,								menubar=no,location=no,resizab  le=no,scrollbars=yes,status=no');
 	return true;	    	
}

function focusElement(elementID){
	var elementVal = "document.NRMSIR."+elementID; 
	eval(elementVal);
	if( eval(elementVal) != null)
	{
		elementVal.focus()
	}
}

//Maintain Scroll position

/*function sstchur_SmartScroller_GetCoords()
   {
      var scrollX, scrollY;
      
      if (document.all)
      {
         if (!document.documentElement.scrollLeft)
            scrollX = document.body.scrollLeft;
         else
            scrollX = document.documentElement.scrollLeft;
               
         if (!document.documentElement.scrollTop)
            scrollY = document.body.scrollTop;
         else
            scrollY = document.documentElement.scrollTop;
      }   
      else
      {
         scrollX = window.pageXOffset;
         scrollY = window.pageYOffset;
      }
   
      document.forms[0].xCoordHolder.value = scrollX;
      document.forms[0].yCoordHolder.value = scrollY;
   }
   
   function sstchur_SmartScroller_Scroll()
   {
      var x = document.forms[0].xCoordHolder.value;
      var y = document.forms[0].yCoordHolder.value;
      window.scrollTo(x, y);
   }
   
   window.onload = sstchur_SmartScroller_Scroll;
   window.onscroll = sstchur_SmartScroller_GetCoords;
   window.onkeypress = sstchur_SmartScroller_GetCoords;
   window.onclick = sstchur_SmartScroller_GetCoords;*/

		
