// copyright for homepage
function copyRightHome()
{
	var copystr;
	if ((navigator.appName=="Netscape")&&(navigator.appVersion<="3"))
	{
	copystr = " ";
	}
	else
	{
	var date = new Date();
	var year = date.getYear();
	year = year < 1000 ? year + 1900 : year;
	copystr = "Your use of this website is subject to our <a href='terms.shtml'><font color='#999999'>terms &amp; conditions</font></a>. " + "&copy; Barclays Bank PLC " + year + ".</div>";
	}
	document.write(copystr);
}

function copyRightYear()
{
	var copystr;
	if ((navigator.appName=="Netscape")&&(navigator.appVersion<="3"))
	{
	copystr = " ";
	}
	else
	{
	var date = new Date();
	var year = date.getYear();
	year = year < 1000 ? year + 1900 : year;
	copystr = year;
	}
	document.write(copystr);
}

// popup
function openPopup(url,nme,h,w,s,r,t)
{
	var s1 = r1 = t1 = 'no';
	if (s) s1 = s;
	if (r) r1 = r;
	if (t) t1 = t;
	window.open(url,nme,'height='+h+',width='+w+',scrollbars='+s1+',resizable='+r1+',toolbar='+t1);
}

// copyright
function copyRight()
{
	var copystr;
	if ((navigator.appName=="Netscape")&&(navigator.appVersion<="3"))
	{
	copystr = " ";
	}
	else
	{
	var date = new Date();
	var year = date.getYear();
	year = year < 1000 ? year + 1900 : year;
	copystr = "Your use of this website is subject to our <a href='/terms.shtml'><font color='#999999'>terms &amp; conditions</font></a>. " + "&copy; Barclays Bank PLC " + year + ".</div>";
	}
	document.write(copystr);
}

// table tag for content
function tableTag(eib)
{
	var H = 500;
	
	if ((navigator.appName=="Netscape")&&(navigator.appVersion>="4"))
	{
		if (eib == 'true') { H = window.innerHeight - 29; }
		else { H = window.innerHeight - 76; }
	}
	else if (navigator.appName=="Microsoft Internet Explorer")
	{
		if (eib == 'true') { H = document.body.offsetHeight - 33; }
		else { H = document.body.offsetHeight - 76; }
	}
	tabletag = "<table cellspacing='0' cellpadding='0' border='0' height='"+H+"' width='100%'>";
	document.write(tabletag);
}

// date function
function writeDate()
{
	now = new Date();
	day = new Object();
	month = new Object();
	day[0] = "Sunday";
	day[1] = "Monday";
	day[2] = "Tuesday";
	day[3] = "Wednesday";
	day[4] = "Thursday";
	day[5] = "Friday";
	day[6] = "Saturday";
	month[0] = "January";
	month[1] = "February";
	month[2] = "March";
	month[3] = "April";
	month[4] = "May";
	month[5] = "June";
	month[6] = "July";
	month[7] = "August";
	month[8] = "September";
	month[9] = "October";
	month[10] = "November";
	month[11] = "December";
	year = now.getYear();
	var hour=now.getHours();
	var mins=now.getMinutes();
	if (mins < 10)	mins = "0" + mins;
	if (year < 1000) year += 1900;
	document.write("<p>" + day[now.getDay()] + ", " + now.getDate() + " " + month[now.getMonth()] + " " + year + " " + hour + ":" + mins + "</p>");
}


function openwin(url,win,cont) {
	window.open(url,win,cont);
}
