//New and Improved for 2001
//nav flag allows you to throw in a toolbar and or menubar!

function popupWindow(url, width, height, nav, resize)
{
	var	rand = Math.round(89999*Math.random() + 10000);

	switch (nav) {
		case 1:
      popup = window.open(url, rand, "width=" + width + ",height=" + height + ",scrollbars,toolbar,menubar,resizable=" + resize);
			break;
		default:
			popup = window.open(url, rand, "width=" + width + ",height=" + height + ",scrollbars,resizable=" + resize);
	}
}

function doWin(){ 
 
var myWin=window.open("","myWin","menubar,scrollbars,left=30px,top=40px,height=400px,width=720px"); 
myWin.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'+ 
'<html><head><title>Community Services Printable List</title>'+
'<style type="text/css" media="print">.noprint{display: none;}</style>'+
'</head><body>'+
'<img src="../resources/graphics/seal_tiny.gif" border="0">'+
'<p><hr><center><FORM action=#><INPUT TYPE="button" class="noprint" value="Print" onClick="print_page()">'+
'&nbsp;&nbsp;&nbsp;<INPUT TYPE="button" class="noprint" value="Close" onClick="window.close()">'+
'</FORM></center>'+
'<p><hr><DIV id="destinationdiv">  </DIV></p>'+
'</body>'+
'<link rel=stylesheet type=text/css href="../djjdp.css">'+
'<script src="../XMLData/CommunityServices/printPage.js" type="text/javascript"></script>'+
'</html>');
 
myWin.document.close();

setTimeout("",1000);  

var JcpcPrograms=document.getElementById("communityservices0").innerHTML;
var OneononePrograms=document.getElementById("communityservices1").innerHTML;
var SosPrograms=document.getElementById("communityservices2").innerHTML;
var EckerdPrograms=document.getElementById("communityservices3").innerHTML;

myWin.document.getElementById("destinationdiv").innerHTML+=JcpcPrograms; 
myWin.document.getElementById("destinationdiv").innerHTML+="<p><hr></p>"; 
myWin.document.getElementById("destinationdiv").innerHTML+=OneononePrograms;
myWin.document.getElementById("destinationdiv").innerHTML+="<p><hr></p>"; 
myWin.document.getElementById("destinationdiv").innerHTML+=SosPrograms;
myWin.document.getElementById("destinationdiv").innerHTML+="<p><hr></p>"; 
myWin.document.getElementById("destinationdiv").innerHTML+=EckerdPrograms;
} 

