function SpecifyClosedMeetings()
{
	var intMonitorW = screen.width;
	var myWin;
	var punt;
	
	if (intMonitorW < 1000)
  	myWin = window.open("a11-closed_meetings17.php",'','width=400,height=260,top=180,left=155,menubar=no,status=no,scrollbar=no,resizable=no')
	else		
  	myWin = window.open("a11-closed_meetings19.php",'','width=450,height=300,top=200,left=520,menubar=no,status=no,scrollbar=no,resizable=no')
}

function SpecifyOpenMeetings()
{
	var intMonitorW = screen.width;
	var myWin;
	var punt;
	
	if (intMonitorW < 1000)
  	myWin = window.open("a11-open_meetings17.php",'','width=400,height=260,top=180,left=155,menubar=no,status=no,scrollbar=no,resizable=no')
	else		
  	myWin = window.open("a11-open_meetings19.php",'','width=450,height=300,top=200,left=520,menubar=no,status=no,scrollbar=no,resizable=no')
}

function Weeknumber()
{
	var intMonitorW = screen.width;
	var myWin;
	var punt;
	
	if (intMonitorW < 1000)
  	myWin = window.open("a11-weeknumber17.php",'','width=400,height=350,top=154,left=155,menubar=no,status=no,scrollbar=no,resizable=no')
	else		
  	myWin = window.open("a11-weeknumber19.php",'','width=480,height=410,top=250,left=520,menubar=no,status=no,scrollbar=no,resizable=no')
}

function SniffBrowser()
{		
	// Specification browserversions
	version=parseInt(navigator.appVersion);
		if (navigator.appVersion.indexOf('5.')>-1)
			{version = 5};
		if (navigator.appVersion.indexOf('6.')>-1)
			{version = 6};
		if (navigator.appVersion.indexOf('7.')>-1)
			{version = 7}; browser='OTHER';
		if (navigator.appName == 'Netscape')
			{browser = 'NS'+version;}
		// Sniffing Internet Explorer	
		if (navigator.appName == 'Microsoft Internet Explorer')
			{browser = 'MSIE'+version;}
		if (navigator.appVersion.indexOf('MSIE 3')>0)
			{browser = 'MSIE3';}
		if(browser == 'NS5')
			{browser = 'NS6'};
			
		if (browser == 'MSIE3')
			{adres = 'aaindex.php'}
		if (browser == 'MSIE4')
			{adres = 'aaindex.php'}
		if (browser == 'MSIE5')
			{adres = 'aaindex.php'}
		if (browser == 'MSIE6')
			{adres = 'aaindex.php'}
		if (browser == 'MSIE7')
			{adres = 'aaindex.php'}
				
		// Sniffing Netscape Navigator	
		if (browser == 'NS3')
			{adres = 'aaindex.php'}
		if (browser == 'NS4')
			{adres = 'aaindex.php'}
		if (browser == 'NS6')
			{adres = 'aaindex.php'}
		if (browser == 'NS7')
			{adres = 'aaindex.php'}
		// Sniffing Other Browsers	
		if (browser == 'OTHER')
			{adres = 'aaindex.php'}
			
	var adres;
	var intMonitorW = window.screen.width;
	
	if (intMonitorW < 1000)	
		if (adres == "aaindex.php")
			adres = "aaindex17.php";
		else
			adres = "aaindex17.php";
	else
		if (adres == "aaindex.php")
			adres = "aaindex19.php";
		else
			adres = "aaindex19.php";
			
	window.location = adres;
}

function Word_format()
{
  alert("The document you want to see or download is available here in MS WORD-format only. If you'd rather have it in another format (*.PDF or *.TXT), contact postmaster@aa-netherlands.org.");
}

//Select Resolution ----------------------------------------------- 
function selectResolution()
{
	var intMonitorW = screen.width;
	var myWin;
	var punt;
	punt = document.URL.indexOf('17.htm');
	
	if (intMonitorW > 1000)
		myWin = location.replace(document.URL.substring(0, punt) + '19.htm');
}

/* --------------------------- < PAGE TABLE FREQUENCY MEETINGS > -- */
function CityTableHdr(city, mon, tue, wed, thu, fri, sat, sun)
{
	document.write('<TABLE WIDTH="96%" ALIGN="center" BORDER="1" BORDERCOLOR="#FFFFFF">');
	document.write('<TR ALIGN="center">',
		'<TD CLASS="tblname" WIDTH="20%" VALIGN="top">',
		city, '</TD><TD CLASS="tblname" WIDTH="7%" VALIGN="top">',
		mon, '</TD><TD CLASS="tblname" WIDTH="7%" VALIGN="top">',
		tue, '</TD><TD CLASS="tblname" WIDTH="7%" VALIGN="top">',
		wed, '</TD><TD CLASS="tblname" WIDTH="7%" VALIGN="top">',
		thu, '</TD><TD CLASS="tblname" WIDTH="7%" VALIGN="top">',
		fri, '</TD><TD CLASS="tblname" WIDTH="7%" VALIGN="top">',
		sat, '</TD><TD CLASS="tblname" WIDTH="7%" VALIGN="top">',
		sun, '</TD></TR>');
}

function CityTableBody(city, mon, tue, wed, thu, fri, sat, sun)
{
	document.write('<TR ALIGN="center"><TD CLASS="tblname" ALIGN="left" VALIGN="top">',
		city, '</TD><TD VALIGN="top">',
		mon, '</TD><TD VALIGN="top">',
		tue, '</TD><TD VALIGN="top">',
		wed, '</TD><TD VALIGN="top">',
		thu, '</TD><TD VALIGN="top">',
		fri, '</TD><TD VALIGN="top">',
		sat, '</TD><TD VALIGN="top">',
		sun, '</TD></TR>');
}

function CityTableCls()
{
	document.write('<TR><TD COLSPAN="8" ALIGN="center" BORDERCOLOR="#006699">To view the group\'s details: click on a day or a town</TD></TR></TABLE>');
}
// Voorbereiding Euro conversion ---------------------------------- 
var obj;
function Converteer(obj)
{
	var strDuizObj;
	var strObj;
	var strPfObj;
	strObj = "" + obj;
	
	if(obj<1000)
		strObj = "" + strObj.substr(0, 3);
	else
	if(obj<10000)
	{
		strDuizObj = strObj.substr(0, 1);	
		strPfObj = "." + strObj.substr(1, 3);
		strObj = strDuizObj + strPfObj;
	}
	else
	{
		strDuizObj = strObj.substr(0, 2);
		strPfObj = "." + strObj.substr(2, 3);
		strObj = strDuizObj + strPfObj;
	}
	return strObj;
}

function ShowRouting()
{
	var adress = document.URL;
	document.write('<A HREF="plfl', adress, '.html" TARGET="main"></A>');
}

function Doorschakelen(){
	setTimeout("location.replace('index.html')", 5000);
}

function selectBrowser()
{
	var myWin;
	var name = navigator.appName;
	var basis;
	basis = document.URL;
	var indicator;
	indicator = basis.substring(31, 40);
	var adresIE;
	adresIE = indicator + "-ie.html";
	var adresNN;
	adresNN = indicator + "-nn.html";
	document.write(indicator);
	
	if (name == 'Netscape')
		myWin = location.replace(adresNN);
	else
		myWin = location.replace(adresIE);
}
