<!--
	var rowCount;
	var totalNoRows;
	var ButtonString;
  	var EndOfButtonString;
	var AlertString;
	var ItemSplitArray;
	var theWindowType;
	var TitleString;
	var canClose = false;
	var theProgress = false;

function popAlert(AlertMessage,TitleMessage,Buttons,theWidth,theHeight,WindowType)
{
	theProgress = false;
	canClose = false;
	ButtonString ='<TABLE cellpadding="0" cellspacing="0" border="0"><TR align="center">\n';
  	EndOfButtonString = '</TR></TABLE>';
	AlertString='Please contact www.hazeljsemple.com support. If you are seeing this message an error has occurred';

	if(AlertMessage !=null && AlertMessage != false)
		AlertString = AlertMessage;
		
	if(TitleMessage !=null && TitleMessage != false)
		TitleString = TitleMessage;
		
	if(WindowType !=null)
		theWindowType = WindowType;
	else
		alert("A window type must be specified");
		
	if(Buttons !=null && Buttons != false)
	{
		var ButtonArray = Buttons.split(',');
		var ItemSplitArray;
		totalNoRows = ButtonArray.length;
		for (rowCount = 0; rowCount < totalNoRows; rowCount++)
		{
			if(ButtonArray[rowCount]!='' && ButtonArray[rowCount]!=null)
			{
				ItemSplitArray = ButtonArray[rowCount].split('|');
				if (ItemSplitArray[1].indexOf('opener.')>-1 && WindowType==1){
					ItemSplitArray[1]=ItemSplitArray[1].replace('opener','callerWindowObj');
					ButtonString += '<TD class=flat width="100" onMouseOver="this.className=\'over\';" onMouseDown="this.className=\'down\';" onMouseOut="this.className=\'flat\';" onClick="this.className=\'flat\';' + ItemSplitArray[1] + ';window.close();">' + ItemSplitArray[0] + '</TD>';
				} else {
					ButtonString += '<TD class=flat width="100" onMouseOver="this.className=\'over\';" onMouseDown="this.className=\'down\';" onMouseOut="this.className=\'flat\';" onClick="this.className=\'flat\';window.close();window.returnValue=' + ItemSplitArray[1] + ';">' + ItemSplitArray[0] + '</TD>';
				}
			}
		}
	}
	else
	{
		ButtonString += '<TD class=flat border="0" onMouseOver="this.className=\'over\';" onMouseDown="this.className=\'down\';" onMouseOut="this.className=\'flat\';" onClick="this.className=\'flat\';window.close();window.returnValue=True";>OK</TD>';
	}
	ButtonString += EndOfButtonString;
	
	if(AlertString !=null)
	{
		var winFeatures = "scroll:off;edge:raised;status:off;help:off;";
		var diagWidth;
		var diagHeight;

		if (theWidth)
			diagWidth = theWidth + 'px;';
		else
			diagWidth = "400px";

		if (theHeight)

			diagHeight = theHeight + 'px;';
		else
			diagHeight ="300px";
		winFeatures += 'dialogWidth:' + diagWidth + ';';
		winFeatures += 'dialogHeight:'+ diagHeight + ';';
		var alertWindow;
		if (WindowType==0)
		{
			alertWindow = window.showModalDialog("alert.htm", window, winFeatures);
			if (typeof alertWindow != "undefined")
				return alertWindow;
			else
				return false;
		}
		else if (WindowType==1)
		{
			alertWindow = window.showModelessDialog("alert.htm", window, winFeatures);
		}
	}
}
window.onunload= window_onunload;
function window_onunload()
{
	canClose=true;
}
function insertDate()
{
	dayName = new Array("", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday");
	monName = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	now = new Date;

	var strDay;
	if ((now.getDate() == 1) || (now.getDate() != 11) && (now.getDate() % 10 == 1)) 		// Correction for 11th and 1st/21st/31st
		strDay = "st ";
	else if ((now.getDate() == 2) || (now.getDate() != 12) && (now.getDate() % 10 == 2)) 	// Correction for 12th and 2nd/22nd/32nd
		strDay = "nd ";
	else if ((now.getDate() == 3) || (now.getDate() != 13) && (now.getDate() % 10 == 3)) 	// Correction for 13th and 3rd/23rd/33rd
		strDay = "rd ";
	else
		strDay = "th ";
	document.write(dayName[now.getDay()] + ' ' + now.getDate() + strDay + monName[now.getMonth()] + ' ' + now.getFullYear());
}
function changeimage(img_name,img_src) {
document[img_name].src=img_src;
}
function picchange(theImage){
	var imgSrc=theImage.src;
	var imgName=theImage.name;
	var ext=imgSrc.substr(imgSrc.length-3,imgSrc.length);
	var imgPre;
	if (imgSrc.indexOf('_on')>-1)
	{
		imgSrc=imgSrc.substr(0,imgSrc.indexOf('_on'))+'.' + ext;
	} else 
	{
		imgSrc=imgSrc.substr(0,imgSrc.indexOf('.' + ext))+'_on.' + ext;
	}
	document[imgName].src=imgSrc;
}
var arrayEmails=new Array();
	arrayEmails[0]=new Array();
	arrayEmails[0][0]='enq';
	arrayEmails[0][1]='oliviagraham.co.uk';
	
function email(thisLink,what,which)
{
	switch (which)
	{
		case 0:
			thisLink.href='mai' + 'lto:' + arrayEmails[what][0] + '@' + arrayEmails[what][1];
			return true;
			break;
		case 1:
			window.status='mai' + 'lto:' + arrayEmails[what][0] + '@' + arrayEmails[what][1];
			return true;
			break;
		case 2:
			window.status='';
			return true;
			break;
		case 3:
			return arrayEmails[what][0] + '@' + arrayEmails[what][1];
	}
}
-->