// JavaScript Document

// print function
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial()
{
if (document.getElementById != null)
{
var html = '<HTML>\n<HEAD>\n<link rel=stylesheet type=text/css media=screen href=/_design/css/print.css>';

if (document.getElementsByTagName != null)
{
var headTags
//var headTags = document.getElementsByTagName("head");
//if (headTags.length > 0)
//html += headTags[0].innerHTML;
}

html += '\n</HE>\n<BODY>\n';

var printReadyElem0 = document.getElementById("header");
var divTag0 = '<DIV class=middle_center_content>'
var printReadyElem1 = document.getElementById("middle_center_content");
var divTag1 = '</DIV>'
var printReadyElem2 = document.getElementById("footer_copy");

if (printReadyElem1 != null)
{
//	printReadyElem0.innerHTML + 
html += divTag0 + printReadyElem1.innerHTML + divTag1 + printReadyElem2.innerHTML;
//html += ""
//html += printReadyElem2.innerHTML;
}
else
{
alert("Could not find the printReady function");
return;
}

html += '\n</BO>\n</HT>';

var printWin = window.open("","printSpecial");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (gAutoPrint)
printWin.print();
}
else
{
alert("The print ready feature is only available if you are using an browser. Please update your browswer.");
}
}


// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<!-- for pop up window
function popup(url)
{
	newwindow=window.open(url,'name','overflow:auto,height=680,width=590,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->

// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// for text in the search box
function clearDefaultandCSS(el) {
	if (el.defaultValue==el.value) el.value = ""
	// If Dynamic Style is supported, clear the style
	//if (el.style) el.style.cssText = ""
}
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^