function popImageOLD(imgLoc){
/*
NEW THUMBNAIL POP SYSTEM
Written By : Chad Seaman
Published : August 18th 2006
Summary:
This is a quick javascript app that lets a user pass a image preview URL to the popImage() function.
Once the function is called, we begin to preload the image into a javascript image holder.  Once the
image is loaded we check its width and heigh and in turn adjust the size of the corresponding pop up 
window to fit the images dimensions.
*/
// !!!!!!!!!!!!!!  BE CAREFUL  !!!!!!!!!!!!!!!!!!!!!!
//***************************************************
//***************************************************
//****** THESE STEPS ARE VERY VERY IMPORTANT ********
//***************************************************
//***************************************************
// !!!!!!!!!!!!!!  BE CAREFUL  !!!!!!!!!!!!!!!!!!!!!!
// FETCH IMAGE LOCATION
this.imgLoc = imgLoc;
// CREATE NEW IMAGE ELEMENT
var getImage = new Image();
// WHEN IMAGE IS LOADED, SWAP OUT THE SRC OF THE "LOADING" IMAGE
// RESIZE WINDOW BY IMAGE HEIGHT AND WIDTH
// CLEAR getImage SRC
getImage.onload = function(){
winPop.document.getElementById("loadIt").src = getImage.src;
winPop.window.resizeBy(getImage.width-112, getImage.height-85);
getImage.src = "";
}
// OPEN WINDOW
var winPop = window.open("","","menu=0,status=0,scrollbars=0,width=1,height=1;");
// WRITE MINI HTML FILE INTO POPPED WINDOW
winPop.document.write("<html><head><title>large image viewer</title></head><body onblur=\"window.close();\" onclick=\"window.close();\" style=\"padding:0; margin:0;\"><div align=\"center\"><img src=\"http://cableorganizer.com/pm5/quest/js/loop.gif\" id=\"loadIt\"><span style=\"font-size:10px; color:#333333; font-family:arial;\"> click anywhere to close this window </span></div></body></html>");
// CLOSE POPUP WINDOW document ELEMENT
winPop.document.close();
// FETCH IMAGE FOR PRELOADING
getImage.src = imgLoc;
// ALL DONE
}
function popImage(imgLoc,imgTitle){
// Remake of the original popImage script of Chad Seaman in an attempt to improve
// the reliability of the loading of images and to add a print and close button
// David Mioduszewski
// March 2007
this.imgLoc = imgLoc;
var getImage = new Image();
getImage.src = imgLoc;
// creates the pop window
var winPop = window.open("","","menu=0,status=0,resizable,location=0,scrollbars=0,width=20,height=20;");
// places the image
winPop.document.write("<html><head><title>\""+imgTitle+"\"</title><link href=\"http://mioduszewski.com/beach-css/beach.css\" rel=\"stylesheet\" type=\"text/css\" /></head><body style=\"padding:0px; margin:0px; background-image:none; background:#ffffff;\"><div align=\"center\"><div class=\"closeBtn\"><input type='Button' value='Close' onClick='window.close()'></div><br><img src=\""+imgLoc+"\" id=\"theImage\"></div></body></html>");
// for ie
if (navigator.appName == "Microsoft Internet Explorer") {
getImage.onload = function(){
winPop.document.getElementById("theImage").src = getImage.src;
winPop.window.resizeBy(getImage.width, getImage.height);
getImage.src = "";}}
// for netscape/ff
if (navigator.appName == "Netscape") {
winPop.onload = function(){
winPop.document.getElementById("theImage").src = getImage.src;
winPop.window.resizeBy(getImage.width, getImage.height);
getImage.src = "";}}
winPop.document.close();}