<!--

// ***********************************************************************//
//                     -- General Functions --                            //
//                                                                        //
//  http://www.locostmortgages.com					  					  //
//  Design & Development Tony@boxedindesign.co.uk			  			  //
//  									  								  //
//  http://www.boxedindesign.co.uk										  //
//                                                                        //
// ***********************************************************************//


// open new window 
function newwin(url, w, h)
{
	var features = "width=" + w + ",height=" + h + ",scrollbars=yes";
	popup = window.open(url,'remote',features);
}

// display alert message
function display(message)
{
	alert(message);
}

// write the current date to the screen
function todaydate()
{
	//v1.0 by Tony Burgess
	var today = new Date();
	document.write (cDay(today.getDay()) + ', ' +  cMonth(today.getMonth()) + ' ' + today.getDate() + ', ' + (today.getFullYear() ));
}

// get the current month
function cMonth(nMonth) 
{
	//v1.0 by Tony Burgess
	if (nMonth == 0) return 'January';
	if (nMonth == 1) return 'February';
	if (nMonth == 2) return 'March';
	if (nMonth == 3) return 'April';
	if (nMonth == 4) return 'May';
	if (nMonth == 5) return 'June';
	if (nMonth == 6) return 'July';
	if (nMonth == 7) return 'August';
	if (nMonth == 8) return 'September';
	if (nMonth == 9) return 'October';
	if (nMonth == 10) return 'November';
	if (nMonth == 11) return 'December';
}

// get the current Day
function cDay(nDay) 
{
	//v1.0 by Tony Burgess
	if (nDay == 1) return 'Monday';
	if (nDay == 2) return 'Tuesday';
	if (nDay == 3) return 'Wednesday';
	if (nDay == 4) return 'Thursday';
	if (nDay == 5) return 'Friday';
	if (nDay == 6) return 'Saturday';
	if (nDay == 7) return 'Sunday';
}

// Close newly opened browser window

function closeWin()
{
    //v1.0 by Tony Burgess
    this.window.close()
}

//-->