function writeit(imgName,comment,year){
var baseurl = "http://"+location.host+"/archives/archived05-06/football/";
//var baseurl = "http://www.bowieband.com/pictures/"
// var baseurl = "http://localhost:81/pictures/" // testing

// Following variables allow me to get only the name of the image being displayed
var getSlash = imgName.lastIndexOf("/")
var nameLength = imgName.length
var getImgName = imgName.substr(getSlash+1,nameLength)

parent.mainFrame.document.open("text/html");
parent.mainFrame.document.write('<link rel="stylesheet" href="../../../../bowiestyle.css" type="text/css">');
parent.mainFrame.document.write('<img src="'+baseurl+imgName+'" border="0">');
parent.mainFrame.document.write('<br><font face="Arial" size="3"><b>'+comment+'</b></font>')
// Following layer allows me to display a picture name on top of the image displayed
parent.mainFrame.document.write('<div id="indexnumber" style="position:absolute; width:55; height:20px; z-index:500; left:20px; top:12px; visibility:visible"><span class="arial11WHT">'+getImgName+'<br>www.bowieband.com</span></div>')
parent.mainFrame.document.close();
}

