function displayPic(imagename){
	document.photo1.src= imagename; 
//alert(imagename);
}    
function picOut(defaultImage){ 
	document.photo1.src=defaultImage;
//alert(defaultImage);
	} 



var gAutoPrint = true; // Flag for whether or not to automatically call the print function

 

function printSpecial(cp)

{

            if (document.getElementById != null)

            {

                        var html = '<HTML>\n<HEAD>\n';

			html = html + "<link rel='stylesheet' type='text/css' href='" + cp + "/common/styles/tdc-styles.css'>";
              
                        html += '\n</HE' + 'AD>\n<BODY>\n';

			html = html + "&nbsp;<br><img src='" + cp + "/common/images/TDCapLogo2.jpg' border=0><p>";

			//getting the printable div from body of page.
			//putting into body of printable page
                        var printReadyElem = document.getElementById("printable");
			
                        if (printReadyElem != null) {
                        html += printReadyElem.innerHTML;
                       //  alert("printReadyElem = "+printReadyElem.innerHTML);
			}
                        else
                        {
                       // alert("Could not find the printReady section in the HTML");
                        return;
                        }

                        html += '\n</BO' + 'DY>\n</HT' + 'ML>';

                        var printWin = window.open("","printSpecial","width=460, scrollbars=yes, location=no, menubar=no, status=no,height=580");

                        printWin.document.open();

                        printWin.document.write(html);

                        printWin.document.close();

                        if (gAutoPrint)

                                    printWin.print();

            }

            else

            {

                        alert("Sorry, the print ready feature is only available in modern browsers.");

            }

}

function headMenu(){
	location=document.head.menu.options[document.head.menu.selectedIndex].value;
}
