// Calculate four digit year.
function fourdigits(number) {
return (number < 1000) ? number + 1900 : number;
}
function GetTheDay() {
// Get today's current date.
var now = new Date();
// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
// Join it all together
today = days[now.getDay()] + ", " +
months[now.getMonth()] + " " +
date + ", " +
(fourdigits(now.getYear())) ;
// Print out the data.
//document.write("" +today+"");
return today;
}
/*
function setCookie(cookieName, cookieValue, cookiePath, cookieExpires) {
cookieValue = escape(cookieValue); if (cookieExpires == "") { var nowDate = new Date(); nowDate.setMonth(nowDate.getMonth() + 6); cookieExpires = nowDate.toGMTString(); }
if (cookiePath != "") { cookiePath = ";Path=" + cookiePath; }
document.cookie = cookieName + "=" + cookieValue + ";expires=" + cookieExpires + cookiePath;}*/
function setCookie(name, value, days) {
if (!days) days = 100;
var expire = new Date();
expire.setTime(expire.getTime() + 3600000*24*days);
document.cookie = name + "=" + escape(value) + "; expires=" + expire.toGMTString();
}
function getCookie(name) { var cookieString = document.cookie; var index = cookieString.indexOf(name + "=");
if (index == -1) { return null; }
index = cookieString.indexOf("=", index) + 1; var endstr = cookieString.indexOf(";", index);
if (endstr == -1) { endstr = cookieString.length; }
return unescape(cookieString.substring(index, endstr));}
function delCookie(name) {
if (getCookie(name)) document.cookie = name + "=" + "; expires=Fri, 31-Dec-99 23:59:59 GMT";
}
function putFocus(formInst, elementInst) {
self.name="main";
if (document.forms.length > 0) {
document.forms[formInst].elements[elementInst].focus();
}
}
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
{field.value = field.value.substring(0, maxlimit);}
else
{countfield.value = field.value.length;}
}
function popup(doc){
var page_name = "/" + doc + ".php"
window.self.name="main";
window.open(page_name,"popup","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=750,height=450");
}
/*
Contractible Headers Script- © Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and TOS,
Visit http://www.dynamicdrive.com
*/
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''
function expandit(curobj){
folder=ns6?curobj.nextSibling.nextSibling.style:document.all[curobj.sourceIndex+1].style
if (folder.display=="none")
folder.display=""
else
folder.display="none"
}
function openwindow(link,h,w)
{
toploc = screen.height/2 - h/2;
leftloc = screen.width/2 - w/2;
window.open(link,"popwindow1","width=" + w + ",height=" + h + ",top=" + toploc + ",left=" + leftloc + ",scrollbars=yes,location=no,resizable=yes");
}
function wusage(){
var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var ver;
if (bName == "Netscape" && bVer >= 4) {
ver = 4;
} else if (bName == "Microsoft Internet Explorer" && bVer >= 4) {
ver = 4;
} else {
ver = 0;
}
if (ver >= 4) {
document.write('
');
document.writeln();
}
}
function info(what){
var P = '
'; switch(what){ case 'about': Q.innerHTML = P+''; var Q = document.getElementById('intro'); var R = '
More about Bristol-online
Bristol-online is Bristol\'s biggest directory of the websites of all kinds of Bristol-based organisations\' websites. There are over 5,000 listings classified in over 300 categories
The categories are browseable, from the Home page and searchable from the Search box on each page.
We are constantly adding new features such as MyBristol-online in order to improve the service for our users.
Bristol-online welcomes feedback from users and listing owners. For example, if you know of a website of a Bristol-based organisation that is not currently listed (you can easily check using our \'Are you Listed\' facility) please tell us using our Feedback page and we will add the website to our listings (subject to review).
'+R+''; break; case 'privacy': Q.innerHTML = P+'Privacy
No personal data is stored on our system except your email address. We do not share email addresses with any 3rd party.
Your MyBristol-online account can only be accessed through our sign in box (requiring a valid email address and password) unless you choose the \'Remember me on this computer\' option in which case, and following normal practice, your browser saves a small file on your computer (a \'cookie\') which is read by your browser each time you visit Bristol-online to automatically sign you in. You can remove this cookie by simply unticking the \'Remember me\' option. If you are using a public computer we advise you NOT to use the \'Remember me\' option.
'+R+''; break; } }