function prw(a,b){a.document.writeln(b)}var w,pw;function printThePage(){pw.print()}function printablePage(g){var a=document.getElementById("printPDF");if(a){var f=a.src;pw=window.open(f,window.name+"_PDFprint","menubar,resizable,scrollbars,status");if(!pw){alert("Window with printable form cannot be opened!\nThis is likely due to a popup blocker in your browser.");return}pw.onload=printThePage;pw.focus();return}if(!w||w.closed){w=window.open("",window.name+"_print","menubar,resizable,scrollbars,status")}if(!w){alert("Window with printable form cannot be opened!\nThis is likely due to a popup blocker in your browser.");return}w.defaultStatus="Loading.";w.document.open();var d;var b=document.getElementById("printIframe");if(b){var c=b.contentWindow||b.contentDocument;if(c.document){c=c.document}d=c.body}else{d=document.getElementById(g)}for(t=d.parentNode;t.parentNode;t=t.parentNode){if(t.style&&t.style.backgroundColor){bg=t.style.backgroundColor;w.document.bgColor=bg;break}}prw(w,'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');prw(w,"<html><head>");prw(w,"<title>"+document.title+"</title>");prw(w,'<link href="/css/css.php?css=/css/print.css" type="text/css" rel="stylesheet" media="all" />');prw(w,"</head><body>");prw(w,d.innerHTML);prw(w,'<p align="right">&copy; 2005-2008 Colorado Author\'s League<br>All rights reserved</p>');prw(w,"</body></html>");w.document.close();w.defaultStatus="Done.";w.focus();w.print()}function printPage(a){if(!w||w.closed){w=window.open("",window.name+"_print","menubar,resizable,scrollbars,status")}if(!w){alert("Window with printable form cannot be opened!\nThis is likely due to a popup blocker in your browser.");return}w.defaultStatus="Loading.";w.document.open();prw(w,'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');prw(w,"<html><head>");prw(w,"<title>"+document.title+"</title>");prw(w,'<link href="/css/edit.css" type="text/css" rel="stylesheet" media="all" />');prw(w,"</head><body>");prw(w,a);prw(w,"</body></html>");w.document.close();w.defaultStatus="Done.";w.focus()};