
var INDEX_TSG		= 0;
var INDEX_JTK		= 1;
var INDEX_WEBMASTER	= 2;


var EMAIL_JTK		= 'kirkhope@terrorism-studies.com';
var EMAIL_WEBMASTER	= 'webmaster@terrorism-studies.com';

var PHONE		= 'TEL : ';
var PHONE_JTK		= '(703) 380-9194';

var FAX			= 'FAX : ';
var FAX_JTK		= '';


/* ************************************************** */
/* ************************************************** */


function getEmail( index )
	{
	var email = EMAIL_JTK; 		// set as default
	if ( index == INDEX_JTK )       email = EMAIL_JTK;
	if ( index == INDEX_TSG )       email = EMAIL_JTK;
	if ( index == INDEX_WEBMASTER ) email = EMAIL_WEBMASTER;
	return email;
	}

function writeEmail( index, name )
	{
	var email = getEmail( index );
	document.write('<a href="mailto:' + getEmail(index) + '">');
	document.write(name);
	document.write('</a>');
	}

function writeEmailIndex( index )
	{
	var email = getEmail( index );
	writeEmail( index, email );
	}

function writeEmail_JTK() 
	{ 
	writeEmailIndex( INDEX_JTK ) ; 
	}

function writeEmail_TSG() 
	{ 
	writeEmailIndex( INDEX_TSG ) ; 
	}

function writeEmail_Webmaster() 
	{ 
	writeEmailIndex( INDEX_WEBMASTER ) ; 
	}



/* ************************************************** */
/* ************************************************** */

function getPhone( index )
	{
	var phone = PHONE_JTK; // set as default
	return phone;
	}

function writePhone(index, prefix)
	{
	var phone = getPhone(index);
	document.write( prefix );
	document.write(phone);
	}

function writePhone_JTK()
	{
	writePhone( INDEX_JTK, PHONE );
	}

/* ************************************************** */
/* ************************************************** */

function getFAX( index )
	{
	var fax = FAX_JTK; // set as default
	return fax;
	}

function writeFAX(index,prefix)
	{
	//var fax = getFAX(index);
	//document.write(prefix);
	//document.write(fax);
	}

function writeFAX_JTK()
	{
	writeFAX( INDEX_JTK, FAX );
	}

/* ************************************************** */
/* ************************************************** */



function writeHeading( theHeading )
	{
	document.write('<center>');
	document.write('<table ');
		document.write(' cellspacing="0" ');
		document.write(' border="5" ');
		document.write(' width="80%" ');
		//document.write(' bordercolorlight="#003366" ');
		//document.write(' bordercolordark="#003366" ');
	document.write(' > ');

	document.write('<tr>');
	document.write('<td class="heading" align="center" valign="middle">');
	document.write('<br />');
	document.write('<h1>');
	document.write( theHeading );
	document.write('</h1>');
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</center>');

	document.write('<br />');
	document.write('<br />');

	}
