function showLogIn()
  {
  var winWidth = 416;
  var winHeight = 300;
  var leftPos = 0;
  var topPos = 0;

  var winName = "admin";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  if(screen){topPos = (screen.availHeight - winHeight)/2}

  window.location = 'indexLogIn.aspx'
  //var newWindow = window.open("logIn.aspx", winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=no,menubar=no,status=yes");			
  //newWindow.focus();
  }

function showAdmin()
  {
  var winWidth = 825;
  var winHeight = screen.availHeight-70;
  var leftPos = 0;
  var topPos = 0;

  var winName = "admin";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  //if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("admin/main.aspx", winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  }
  
function showBranch(i,d)
  {
  var winWidth = 500;
  var winHeight = 440;
  var leftPos = 0;
  var topPos = 0;

  var winName = "branch";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("branchOffice.aspx?id="+i+"&d="+d, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=no,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  } 
  
function showContact(i,d)
  {
  var winWidth = 518;
  var winHeight = 600;
  var leftPos = 0;
  var topPos = 0;

  var winName = "contact";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("contact.aspx?id="+i+"&d="+d, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  } 
  
function showTerritories(mbr)
  {
  var winWidth = 500;
  var winHeight = 400;
  var leftPos = 0;
  var topPos = 0;

  var winName = "territories";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("territories.aspx?mbr="+mbr, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=no,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  } 
  
function showManufacturers(mbr)
  {
  var winWidth = 500;
  var winHeight = 400;
  var leftPos = 0;
  var topPos = 0;

  var winName = "contact";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("repManufacturers.aspx?mbr="+mbr, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=no,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  } 
  
function showProductLines(m,mbr)
  {
  var winWidth = 500;
  var winHeight = 400;
  var leftPos = 0;
  var topPos = 0;

  var winName = "contact";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("productLines.aspx?m="+m+"&mbr="+mbr, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=no,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  }   
 
 function showProduct(i,m)
  {
  var winWidth = 500;
  var winHeight = 220;
  var leftPos = 0;
  var topPos = 0;

  var winName = "contact";

  if(screen){leftPos = (screen.availWidth - winWidth)/2}
  if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("productLine.aspx?id="+i+"&m="+m, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=no,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  }
  
 function showMember(m)
  {
  var winWidth = 800;
  var winHeight = screen.availHeight-50;
  var leftPos = 0;
  var topPos = 0;

  var winName = "memberDetails";

  //if(screen){leftPos = (screen.availWidth - winWidth)/2}
  //if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("memberFirmDetails.aspx?id="+m, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=no,menubar=no,status=yes");			
  newWindow.focus();
  } 
  
  function showDelegateReport()
  {
  var winWidth = screen.availWidth;
  var winHeight = screen.availHeight-50;
  var leftPos = 0;
  var topPos = 0;

  var winName = "delegateReport";

  //if(screen){leftPos = (screen.availWidth - winWidth)/2}
  //if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("report_DelegateAddresses.aspx", winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
  newWindow.focus();
  }   
  
function showScholarshipContributionsReport()
  {
  var winWidth = screen.availWidth;
  var winHeight = screen.availHeight-50;
  var leftPos = 0;
  var topPos = 0;

  var winName = "contributionReport";

  //if(screen){leftPos = (screen.availWidth - winWidth)/2}
  //if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("report_ScholarshipContributions.aspx", winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
  newWindow.focus();
  }
  
function showAnnualMeetingAttendanceReport()
  {
  var winWidth = screen.availWidth;
  var winHeight = screen.availHeight-50;
  var leftPos = 0;
  var topPos = 0;

  var winName = "attendanceReport";

  //if(screen){leftPos = (screen.availWidth - winWidth)/2}
  //if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("report_AnnualMeetingAttendance.aspx", winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
  newWindow.focus();
  }
  
  function showDuesReport()
  {
  var winWidth = screen.availWidth;
  var winHeight = screen.availHeight-50;
  var leftPos = 0;
  var topPos = 0;

  var winName = "attendanceReport";

  //if(screen){leftPos = (screen.availWidth - winWidth)/2}
  //if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("report_Dues.aspx", winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
  newWindow.focus();
  }
  
  function showManufacturerContacts()
  {
  var winWidth = screen.availWidth;
  var winHeight = screen.availHeight-50;
  var leftPos = 0;
  var topPos = 0;

  var winName = "attendanceReport";

  //if(screen){leftPos = (screen.availWidth - winWidth)/2}
  //if(screen){topPos = (screen.availHeight - winHeight)/2}

  var newWindow = window.open("report_Manufacturers.aspx", winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
  newWindow.focus();
  }
  
  
  function showEventActivity(i)
		{
		var winWidth = 520;
		var winHeight = 660;
		var leftPos = 0;
		var topPos = 0;

		var winName = "eventAct";

		if(screen){leftPos = (screen.availWidth - winWidth)/2}
		if(screen){topPos = (screen.availHeight - winHeight)/2}

		var newWindow = window.open("MemberEventActivityDetails.aspx?ID="+i, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
		newWindow.focus();
		}
		
		
	function showEventWebPage(i)
		{
		var winWidth = 520;
		var winHeight = 210;
		var leftPos = 0;
		var topPos = 0;

		var winName = "eventWebPage";

		if(screen){leftPos = (screen.availWidth - winWidth)/2}
		if(screen){topPos = (screen.availHeight - winHeight)/2}

		var newWindow = window.open("MemberEventWebPage.aspx?ID="+i, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
		newWindow.focus();
		}	
		
  
  function calendarPicker(strField)
	{
		window.open('datePicker.aspx?field=' + strField,'calendarPopup','width=250,height=190,resizable=yes');
	}
	
	function showReport(i)
  {
		 var winWidth = screen.availWidth;
		var winHeight = screen.availHeight-50;
		var leftPos = 0;
		var topPos = 0;

		var winName = "eventAttendance";

		//if(screen){leftPos = (screen.availWidth - winWidth)/2}
		//if(screen){topPos = (screen.availHeight - winHeight)/2}

		var newWindow = window.open("report_EventAttendees.aspx?id="+i, winName,"width="+winWidth+",height="+winHeight+",left="+leftPos+",top="+topPos+",scrollbars=yes,location=no,resizable=yes,menubar=no,status=yes");			
		newWindow.focus();
  }
