function pageScroll() 
{
   	window.scrollBy(0,5000); // horizontal and vertical scroll increments   	
}

function insertEmailText()
{
	document.write('<a href="mai'+'lto:');
	document.write('&#105;&#110;&#102;&#111;');
	document.write('@');
	document.write('&#98;&#97;&#100;&#119;&#111;&#108;&#102;&#115&#111;&#102;&#116;&#119;&#97&#114;&#101;&#46&#99;&#111;&#109;">');
	document.write('&#105;&#110;&#102;&#111;');
	document.write('@');
	document.write('&#98;&#97;&#100;&#119;&#111;&#108;&#102;&#115&#111;&#102;&#116;&#119;&#97&#114;&#101;&#46&#99;&#111;&#109;');
	document.write('<\/a>');

	return true;
}

function insertEmail(sValue)
{	
	document.write('<a href="mai'+'lto:');
	document.write('&#105;&#110;&#102;&#111;');
	document.write('@');
	document.write('&#98;&#97;&#100;&#119;&#111;&#108;&#102;&#115&#111;&#102;&#116;&#119;&#97&#114;&#101;&#46&#99;&#111;&#109;">');
	document.write(sValue+'<\/a>');

	return true;
}

function buildHref(sValue, sPostAddress)
{
	document.write('<a href="mai'+'lto:');
	document.write('&#100;&#97;&#114;&#114;&#101;&#110;');
	document.write('@');
	document.write('&#98;&#97;&#100;&#119;&#111;&#108;&#102;&#115&#111;&#102;&#116;&#119;&#97&#114;&#101;&#46&#99;&#111;&#109;">');	
	document.write(sPostAddress);	
	document.write('>');
	document.write(sValue+'<\/a>');

	return true;
}

function insertCopyright()
{
	document.write('&copy; 2005-2012 &nbsp;&nbsp;&nbsp;');
	
	return true;
}


function insertContactName()
{
	document.write('Bad Wolf Software');
	
	return true;
}

function insertAddressDetails()
{
	document.write('Bad Wolf Software');
	document.write(', Suite 121, 13 Upper Baggot Street, 2nd Floor, Dublin 4, Ireland');			
	
	return true;
}

function insertPersonName()
{
	document.write('&#68;&#97;&#114;&#114;&#101;&#110;');
	document.write(' ');
	document.write('&#68;&#101;&#118;&#105;&#116;&#116;');
	
	return true;
}

var imgWindow;
function showImage(imgURL, imgWidth, imgHeight)
{			
	var winWidth = imgWidth + 20;
	var winHeight = imgHeight + 20;		
	
	var winTop = (screen.height/2) - (winWidth/2);
	var winLeft = (screen.width/2) - (winHeight/2); 

	var winParams = "width=" + winWidth + ",height=" + winHeight + ",resizable=yes,";
	winParams = winParams + "left=" + winLeft + ",top=" + winTop;				
				
	imgWindow = window.open(imgURL, "", winParams);
	imgWindow.focus();		
	
	return false;	
}
