// aimsPrint.js
/*
*  JavaScript template file for ArcIMS HTML Viewer
*		dependent on aimsXML.js, ArcIMSparam.js, aimsCommon.js, aimsMap.js,
*		aimsLayers.js, aimsDHTML.js
*		aimsClick.js, aimsNavigation.js,
*		aimsLegend.js
*/

var printDPI = 300;		// BB: printer DPI--may be overridden by print form
var printHeight = 450;	// BB: default print dimensions
var printWidth = 450;	// BB
var printScale = 0;		// BB: RF scale (1:x number) for printing
//var MAP_UNITS_PER_INCH = 69 * 63360	// BB: inches in one map unit -- converts DPI to scale
var MAP_UNITS_PER_INCH = 1.0378	// BB: inches in one map unit -- converts DPI to scale
			// NOTE that for decimal-degree map, scale is only correct in x or y
			//		due to convergence of meridians toward the poles!

aimsPrintPresent=true;

var printTitle = titleList[4];
var printMapURL="";
var printOVURL="";
var printLegURL="";
var legVis2=false;
var d, s=" ";//kav
var pagewidth;
var pageheight;
var YY, MM, DD, HH, NN;

/*
***************************************************************************************

Print functions 

***************************************************************************************
*/



// display print form
function printIt() {
	hideLayer("measureBox");
	if (useTextFrame) {
		parent.TextFrame.document.location = "printform5.htm";
	} else {
		var Win1 = open("printform5.htm","PrintFormWindow","width=275,height=500,scrollbars=yes,resizable=yes");
	}
}

function getDate(){//kav
   d = new Date();//kav
   s += (d.getMonth() + 1) + "/";//kav
   s += d.getDate() + "/";//kav
   s += d.getYear();  //kav
   
   YY = d.getYear();
   if (YY > 2000) {    // Y2K Fix, Isaac Powell
	YY = YY - 2000;	
	}   
   if (YY < 10) {   	
   	YY = "0" + YY;
	}
   MM = d.getMonth() + 1;   
   if (MM < 10) {
   	MM = "0" + MM;
	}
   DD = d.getDate();
    if (DD < 10) {
   	DD = "0" + DD;
	}
   HH = d.getHours();
    if (HH < 10) {
   	HH = "0" + HH;
	}
   NN = d.getMinutes();    
    if (NN < 10) {
   	NN = "0" + NN;
	}
   
}//kav

function clearDate(){   //kav
   s = "";//kav
}//kav

var orient = 'Landscape';


// create web page for printing
	// first get Map
function getPrintMap(title, w, h, s, o) {			
	orient = o;
	var tL = eLeft;
	var tR = eRight;
	var tT = eTop;
	var tB = eBottom;
	var tH = iHeight;
	var tW = iWidth;
	

	tLeft = eLeft;
	tRight = eRight;
	tBottom = eBottom;
	tTop = eTop;
	
	if (w=="689") s = parent.MapFrame.currentScale; //use current scale if it's a property map
	drawScaleBar=true;//kav		
	pagewidth = w;
	pageheight = h;
	
	if (o=="Portrait") {
		parent.MapFrame.isPortrait = 1;
		if (w==700) { //A
			s = s * .83;
			
		} else if (w==1610) { //C
			s = s * .85;
				
		} else if (w==2758) { //D
			s = s * .67;
			
		} else if (w==3620) { //E
			s = s * .8;
				
		} else { //B
			s = s * .66;
		}
		
	}
		
	printScale = s;
	
	var tLeft, tRight, tBottom, tTop;
	
	showRetrieveMap();
	
	printTitle=title;
	
	var pdpi = 96;	
	
	legVis2=legendVisible;
	if (aimsLegendPresent) legendVisible=true;
	
	// BB: set print size to input values
	if (w != "") printWidth = parseInt(w);	
	if (h != "") printHeight = parseInt(h);
	
	// BB: set map extent if scale specified
	var marginalError = -0.03;
	
	var mu = 1;
		
	iWidth = w;
	iHeight= h;				
			
	var iScaledWidth = (w / pdpi) * (printScale / mu);
	var iScaledHeight =  (h / pdpi) * (printScale / mu);

	
		// Center of map
	var xCenter = (parseFloat(eRight) + parseFloat(eLeft)) / 2
	var yCenter = (parseFloat(eTop) + parseFloat(eBottom)) / 2
		// New map extents based on scale
	
	eLeft = xCenter - iScaledWidth/2
	eRight = xCenter + iScaledWidth/2
	eBottom = yCenter - iScaledHeight/2
	eTop = yCenter + iScaledHeight/2
	
	//BB: set XMLMode so get print res.
	XMLMode = 101;
	// BB: enlarge legend in proportion to map
	var tempLegW = legWidth;
	var tempLegH = legHeight;
	
	//legWidth = parseInt(printWidth/5);	
	//legHeight = parseInt(printWidth/3);
		
	var tempLegendBgColor = legendBgColor;	
	legendBgColor = '255,255,255';
	drawLegendOnly=false;
	var theString = writeXML();
	
	legendBgColor = tempLegendBgColor;
	
	//legWidth = tempLegW;	// BB: restore default leg vars
	//legHeight = tempLegH;	// BB
	//legendVisible = legVis2;
	drawScaleBar=false;//kav	

	eLeft = tLeft;
	eRight = tRight;
	eBottom = tBottom;
	eTop = tTop;
	
	sendToServer(imsURL,theString,101);	
	theString=null;

	eLeft = tL;
	eRight = tR;
	eTop = tT;
	eBottom = tB;
	iHeight = tH;
	iWidth = tW;
	

}

// second, get OVMap
function getPrintOV() {
	var tempWidth = i2Width;
	var tempHeight = i2Height;
	i2Width=parseInt(printWidth/4);		//BB: scale to print 
	i2Height=parseInt(printHeight/4);	// BB: scale to print
	var tempDraw=drawOVExtentBox;
	drawOVExtentBox=true;
	XMLMode = 102;
	var theString = writeOVXML();
	drawOVExtentBox=tempDraw;
	i2Width=tempWidth;
	i2Height = tempHeight;
	sendToServer(imsOVURL,theString,102);
	tempWidth=null;
	tempHeight=null;
	theString=null;
}
// third, get Legend
function getPrintLegend() {
	
	if (printLegURL=="") printLegURL = "images/nolegend.gif";
		
		if (pagewidth==700){
			if (orient=='Portrait') {
				pagewidth = 579;
				writePrintPageASIZEP();
			} else {
				writePrintPageASIZE();
			}
		
		}
	
		if (pagewidth==1220){
			if (orient=='Portrait') {
				pagewidth = 806;
				writePrintPageBSIZEP();
			} else {
				writePrintPageBSIZE();
			}
		
		}
		if (pagewidth==1610){
			if (orient=='Portrait') {
				pagewidth = 1380;
				writePrintPageCSIZEP();
			} else {
				writePrintPageCSIZE();
			}
		
		}
		if (pagewidth==2758){
			if (orient=='Portrait') {
				pagewidth = 1872;
				writePrintPageDSIZEP();
			} else {
				writePrintPageDSIZE();
			}
		
		}
		if (pagewidth==3620){
			if (orient=='Portrait') {
				pagewidth = 3035;
				writePrintPageESIZEP();
			} else {
				writePrintPageESIZE();
			}
		
		}
	
		
		if (pagewidth==689){				
		writePrintpagePROPERTY();
	}
	
}

// fourth, write the web page
function writePrintPageASIZE() {		
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
		
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
//	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; LEFT: 5; TOP: 5; WIDTH: 952px; HEIGHT: 706px;">');			
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 31px; WIDTH: 723px; TOP: 0px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="5" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');

	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 723px; POSITION: absolute; TOP: 30px; HEIGHT: 600px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//DISCLAIMER - at bottom of map
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 57px; WIDTH: 723px; TOP: 629px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 713px; HEIGHT: 40px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 708px; HEIGHT: 10px; POSITION: absolute; TOP: 38px;">');
	Win1.document.writeln('<P align="right">Print Date:' + s + '</P></DIV></FONT></P></DIV></DIV>');
	
	//LEGEND		
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 722px; WIDTH: 207px; HEIGHT: 686px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 215px; HEIGHT: 10px; POSITION: absolute; TOP: 1px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<br><P align="center"><FONT face="Arial" size="3"><b>Legend</b></FONT></P> ');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 15px; WIDTH: 35px; POSITION: absolute; TOP: 75px; HEIGHT: 80px" height="80" alt="" src="../gis/images/north.bmp" width="35">');
	Win1.document.write('<IMG style="TOP: 45px; LEFT: 65px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/6) + '" >');	
	Win1.document.writeln('</TD>');
	
		
	Win1.document.writeln('</div></DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
	
}

function writePrintPageASIZEP() {		
	
	printHeight = 700;	
	printWidth = 579;	
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
		
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 41px; WIDTH: 591px; TOP: 0px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="5" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');

	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 591px; POSITION: absolute; TOP: 40px; HEIGHT: 800px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 5px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//DISCLAIMER - at bottom of map
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 80px; WIDTH: 591px; TOP: 760px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 570px; HEIGHT: 80px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 580px; HEIGHT: 10px; POSITION: absolute; TOP: 75px;">');
	Win1.document.writeln('</P></DIV></FONT></P></DIV></DIV>');
	
	//LEGEND		
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 590px; WIDTH: 135px; HEIGHT: 840px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><P align="center">Print Date:' + s + '<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 135px; HEIGHT: 10px; POSITION: absolute; TOP: 15px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 135px; HEIGHT: 10px; POSITION: absolute; TOP: 45px;"><FONT face="Arial" size="3"><P align="center">Legend</FONT></DIV>');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 2px; WIDTH: 35px; POSITION: absolute; TOP: 90px; HEIGHT: 80px" height="80" alt="" src="../gis/images/north.bmp" width="35">');
	Win1.document.write('<IMG style="TOP: 60px; LEFT: 33px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/6) + '" >');	
	Win1.document.writeln('</TD>');
	
		
	Win1.document.writeln('</div></DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
	
}

function writePrintPageBSIZE() {		
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
		
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
//	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; LEFT: 5; TOP: 5; WIDTH: 952px; HEIGHT: 706px;">');			
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 31px; WIDTH: 1242px; TOP: 0px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="5" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');
		
	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 1242px; POSITION: absolute; TOP: 30px; HEIGHT: 834px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//DISCLAIMER - at bottom of map
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 57px; WIDTH: 1242px; TOP: 863px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 1232px; HEIGHT: 40px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 1227px; HEIGHT: 10px; POSITION: absolute; TOP: 38px;">');
	Win1.document.writeln('<P align="right">Print Date:' + s + '</P></DIV></FONT></P></DIV></DIV>');
	
	//LEGEND		
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 1241px; WIDTH: 238px; HEIGHT: 920px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 240px; HEIGHT: 10px; POSITION: absolute; TOP: 1px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<br><P align="center"><FONT face="Arial" size="3"><b>Legend</b></FONT></P> ');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 5px; WIDTH: 35px; POSITION: absolute; TOP: 75px; HEIGHT: 80px" height="80" alt="" src="../gis/images/north.bmp" width="35">');
	Win1.document.write('<IMG style="TOP: 45px; LEFT: 35px; POSITION: absolute; width: 180px; " SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/6) + '" >');	
	Win1.document.writeln('</TD>');
	
		
	Win1.document.writeln('</div></DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
}

function writePrintPageBSIZEP() {
			
	printHeight = 1220;//1220;950	
	printWidth = 806;//806;	630
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
		
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 31px; WIDTH: 821px; TOP: 0px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="5" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');

	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 821px; POSITION: absolute; TOP: 30px; HEIGHT: 1246px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//DISCLAIMER - at bottom of map
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 80px; WIDTH: 821px; TOP: 1275px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 806px; HEIGHT: 80px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 820px; HEIGHT: 10px; POSITION: absolute; TOP: 75px;">');
	Win1.document.writeln('</P></DIV></FONT></P></DIV></DIV>');
	
	//LEGEND		
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 820px; WIDTH: 135px; HEIGHT: 1355px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><P align="center">Print Date:' + s + '<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 135px; HEIGHT: 10px; POSITION: absolute; TOP: 15px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 135px; HEIGHT: 10px; POSITION: absolute; TOP: 95px;"><FONT face="Arial" size="3"><P align="center">Legend</FONT></DIV>');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 95px; WIDTH: 35px; POSITION: absolute; TOP: 40px; HEIGHT: 80px" height="80" alt="" src="../gis/images/north.bmp" width="35">');
	Win1.document.write('<IMG style="TOP: 115px; LEFT: 5px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/7) + '" >');	
	Win1.document.writeln('</TD>');
	
		
	Win1.document.writeln('</div></DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
	
}

function writePrintPageCSIZE() {		
var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
	
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
//	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; LEFT: 0; TOP: 0; WIDTH: 3119px; HEIGHT: 1964px;">');
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 64px; WIDTH: 1639px; TOP: 3px; LEFT: 3px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="8" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');
		
	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 3px; WIDTH: 1639px; POSITION: absolute; TOP: 66px; HEIGHT: 1410px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//LEGEND	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 1646px; WIDTH: 328px; HEIGHT: 1266px; POSITION: absolute; TOP: 3px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 330px; HEIGHT: 10px; POSITION: absolute; TOP: 1px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<br><P align="center"><FONT face="Arial" size="5"><b>Legend</b></FONT></P> ');
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 30px; WIDTH: 44px; POSITION: absolute; TOP: 130px; HEIGHT: 100px" height="100" alt="" src="../gis/images/north.bmp" width="44">');
	Win1.document.write('<IMG style="TOP: 75px; LEFT: 90px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/9) + '" >');	
	Win1.document.writeln('</TD>');
		
	//DISCLAIMER	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 328px; HEIGHT: 183px; POSITION: absolute; TOP: 1289px;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 10px; WIDTH: 310px; HEIGHT: 100px; POSITION: absolute; TOP: 10px;">');
	Win1.document.writeln('<P align="center"><FONT face="Arial" size="1"><b>DISCLAIMER:');
	Win1.document.writeln('</P><P align="justify">The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.</b></P>');	
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 10px; WIDTH: 300px; HEIGHT: 10px; POSITION: absolute; TOP: 155px;">');
	Win1.document.writeln('<P align="right">Print Date:' + s + '</P></DIV></DIV>');
	
	Win1.document.writeln('</DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
}

function writePrintPageCSIZEP() {
			
	printHeight = 1610;//1610	
	printWidth = 1380;
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
		
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 61px; WIDTH: 1398px; TOP: 0px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="7" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');

	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 1398px; POSITION: absolute; TOP: 60px; HEIGHT: 1665px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
		Win1.document.writeln('</DIV>');
	
	getDate();
		
	//LEGEND		
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 1397px; WIDTH: 134px; HEIGHT: 1370px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><P align="center">Print Date:' + s + '<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 135px; HEIGHT: 10px; POSITION: absolute; TOP: 15px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 135px; HEIGHT: 10px; POSITION: absolute; TOP: 95px;"><FONT face="Arial" size="3"><P align="center">Legend</FONT></DIV>');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 95px; WIDTH: 35px; POSITION: absolute; TOP: 40px; HEIGHT: 80px" height="80" alt="" src="../gis/images/north.bmp" width="35">');
	Win1.document.write('<IMG style="TOP: 115px; LEFT: 5px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/11) + '" >');	
	Win1.document.writeln('</TD>');
	
	//DISCLAIMER - at bottom of map
	Win1.document.writeln('<DIV align="left" style="POSITION: absolute; HEIGHT: 356px; WIDTH: 134px; TOP: 1369px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 120px; HEIGHT: 340px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 350px; HEIGHT: 10px; POSITION: absolute; TOP: 75px;">');
	Win1.document.writeln('</P></DIV></FONT></P></DIV></DIV>');
	
	Win1.document.writeln('</div></DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
	
}

function writePrintPageDSIZE() {		
var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
	
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
//	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; LEFT: 0; TOP: 0; WIDTH: 3119px; HEIGHT: 1964px;">');
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 64px; WIDTH: 2778px; TOP: 3px; LEFT: 3px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="8" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');
		
	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 3px; WIDTH: 2778px; POSITION: absolute; TOP: 66px; HEIGHT: 1892px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//LEGEND	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 2785px; WIDTH: 328px; HEIGHT: 1768px; POSITION: absolute; TOP: 3px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 330px; HEIGHT: 10px; POSITION: absolute; TOP: 1px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<br><P align="center"><FONT face="Arial" size="5"><b>Legend</b></FONT></P> ');
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 30px; WIDTH: 44px; POSITION: absolute; TOP: 130px; HEIGHT: 100px" height="100" alt="" src="../gis/images/north.bmp" width="44">');
	Win1.document.write('<IMG style="TOP: 75px; LEFT: 90px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/15) + '" >');	
	Win1.document.writeln('</TD>');
		
	//DISCLAIMER	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 328px; HEIGHT: 183px; POSITION: absolute; TOP: 1771px;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 10px; WIDTH: 310px; HEIGHT: 100px; POSITION: absolute; TOP: 10px;">');
	Win1.document.writeln('<P align="center"><FONT face="Arial" size="1"><b>DISCLAIMER:');
	Win1.document.writeln('</P><P align="justify">The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.</b></P>');	
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 10px; WIDTH: 300px; HEIGHT: 10px; POSITION: absolute; TOP: 155px;">');
	Win1.document.writeln('<P align="right">Print Date:' + s + '</P></DIV></DIV>');
	
	Win1.document.writeln('</DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
}

function writePrintPageDSIZEP() {

	printHeight = 2758 * 0.995;
	printWidth = 1872 * 0.995;		
	
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
		
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 81px; WIDTH: 1871px; TOP: 0px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="8" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');

	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 1871px; POSITION: absolute; TOP: 80px; HEIGHT: 2780px">');
	Win1.document.writeln('<IMG style="TOP: 20px; LEFT: 5px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
		
	//LEGEND		
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 1870px; WIDTH: 192px; HEIGHT: 2600px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><P align="center">Print Date:' + s + '<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 193px; HEIGHT: 10px; POSITION: absolute; TOP: 15px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 198px; HEIGHT: 10px; POSITION: absolute; TOP: 150px;"><FONT face="Arial" size="3"><P align="center"><b>Legend</b></FONT></DIV>');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 85px; WIDTH: 35px; POSITION: absolute; TOP: 40px; HEIGHT: 80px" height="80" alt="" src="../gis/images/north.bmp" width="35">');
	Win1.document.write('<IMG style="TOP: 175px; LEFT: 2px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/15) + '" >');	
	Win1.document.writeln('</TD>');
	
	//DISCLAIMER - at bottom of map
	Win1.document.writeln('<DIV align="left" style="POSITION: absolute; HEIGHT: 261px; WIDTH: 192px; TOP: 2599px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 3px; WIDTH: 186px; HEIGHT: 340px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 350px; HEIGHT: 10px; POSITION: absolute; TOP: 75px;">');
	Win1.document.writeln('</P></DIV></FONT></P></DIV></DIV>');
	
	Win1.document.writeln('</div></DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
}

function writePrintPageESIZE() {		
var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
	
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
//	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; LEFT: 0; TOP: 0; WIDTH: 3119px; HEIGHT: 1964px;">');
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 64px; WIDTH: 3640px; TOP: 3px; LEFT: 3px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="8" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');
		
	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 3px; WIDTH: 3640px; POSITION: absolute; TOP: 66px; HEIGHT: 3055px">');
	Win1.document.writeln('<IMG style="TOP: 10px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//LEGEND	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 3647px; WIDTH: 328px; HEIGHT: 2931px; POSITION: absolute; TOP: 3px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 330px; HEIGHT: 10px; POSITION: absolute; TOP: 1px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<br><P align="center"><FONT face="Arial" size="5"><b>Legend</b></FONT></P> ');
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 10px; WIDTH: 44px; POSITION: absolute; TOP: 130px; HEIGHT: 100px" height="100" alt="" src="../gis/images/north.bmp" width="44">');
	Win1.document.write('<IMG style="TOP: 75px; LEFT: 50px; width: 250PX; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/15) + '" >');	
	Win1.document.writeln('</TD>');
		
	//DISCLAIMER	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 328px; HEIGHT: 183px; POSITION: absolute; TOP: 2934px;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 10px; WIDTH: 310px; HEIGHT: 100px; POSITION: absolute; TOP: 10px;">');
	Win1.document.writeln('<P align="center"><FONT face="Arial" size="1"><b>DISCLAIMER:');
	Win1.document.writeln('</P><P align="justify">The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.</b></P>');	
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 10px; WIDTH: 300px; HEIGHT: 10px; POSITION: absolute; TOP: 155px;">');
	Win1.document.writeln('<P align="right">Print Date:' + s + '</P></DIV></DIV>');
	
	Win1.document.writeln('</DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
}

function writePrintPageESIZEP() {	
	
	printHeight = 3620 * 0.965;	
	printWidth = 3035 * 0.965;
		
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
		
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
		
	//TITLE		WIDTH: 3044
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 81px; WIDTH: 2944px; TOP: 0px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="7" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');

	//MAP	WIDTH: 2835 (map area) HEIGHT: 3820  BORDER:HEIGHT:3620
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 0px; WIDTH: 2944px; POSITION: absolute; TOP: 80px; HEIGHT: 3520px">');
	Win1.document.writeln('<IMG style="TOP: 20px; LEFT: 10px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
		Win1.document.writeln('</DIV>');
	
	getDate();
		
	//LEGEND		HEIGHT: 3562
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 2943px; WIDTH: 200px; HEIGHT: 3350px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.writeln('<FONT face="Arial" size="1"><P align="center">Print Date:' + s + '<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 198px; HEIGHT: 10px; POSITION: absolute; TOP: 15px;"><P align="center">REF#:' + YY + '-' + MM + DD + HH + NN + '</FONT></DIV>');
	Win1.document.write('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 198px; HEIGHT: 10px; POSITION: absolute; TOP: 150px;"><FONT face="Arial" size="3"><P align="center"><b>Legend</b></FONT></DIV>');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 85px; WIDTH: 35px; POSITION: absolute; TOP: 40px; HEIGHT: 80px" height="80" alt="" src="../gis/images/north.bmp" width="35">');
	Win1.document.write('<IMG style="TOP: 175px; LEFT: 5px; POSITION: absolute;" SRC="' + printLegURL + '" HSPACE=0 VSPACE=0 BORDER=0 ALT="Legend"');
	Win1.document.writeln('width="' + parseInt(printWidth/17) + '" >');	
	Win1.document.writeln('</TD>');
	
	//DISCLAIMER - at bottom of map HEIGHT: 356 TOP: 3500
	Win1.document.writeln('<DIV align="left" style="POSITION: absolute; HEIGHT: 251px; WIDTH: 200px; TOP: 3349px; LEFT: 0px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 186px; HEIGHT: 340px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 0px; WIDTH: 350px; HEIGHT: 10px; POSITION: absolute; TOP: 75px;">');
	Win1.document.writeln('</P></DIV></FONT></P></DIV></DIV>');
	
	Win1.document.writeln('</div></DIV>');
	Win1.document.writeln('</body></html>');
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();	
}

function writePrintpagePROPERTY() {			
	
	var Win1 = open("","PrintPage");
	Win1.document.writeln('<html><meta http-equiv="Content-Type" content="text/html; charset=' + charSet + '"><head>');
	Win1.document.writeln('	<title>' + titleList[5] + '</title>');
	Win1.document.writeln('</head>');
	
	Win1.document.writeln('<body BGCOLOR="White" TEXT="Black" LEFTMARGIN=0 TOPMARGIN=0>');
	Win1.document.writeln('<FONT FACE="Arial"><B>');	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; LEFT: 5; TOP: 5; WIDTH: 711px; HEIGHT: 920px;">');
		
	//TITLE		
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 37px; WIDTH: 700px; TOP: 5px; LEFT: 5px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<FONT face="Arial" size="5" valign="bottom">');	
	Win1.document.writeln(printTitle + '</DIV></B></FONT>');
		
	//MAP	
	Win1.document.writeln('<DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 5px; WIDTH: 700px; POSITION: absolute; TOP: 205px; HEIGHT: 648px">');
	Win1.document.writeln('<IMG style="TOP: 5px; LEFT: 5px; POSITION: absolute;" SRC="' + printMapURL + '" WIDTH=' + printWidth + ' HEIGHT=' + printHeight + ' HSPACE=0 VSPACE=0 BORDER=0 ALT="Main map">');
	Win1.document.writeln('</DIV>');
	
	getDate();
	
	//DISCLAIMER - at bottom of map
	Win1.document.writeln('<DIV align="center" style="POSITION: absolute; HEIGHT: 61px; WIDTH: 700px; TOP: 852px; LEFT: 5px; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid;">');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 690px; HEIGHT: 40px; POSITION: absolute; TOP: 5px;"><P align="justify"><FONT face="Arial" size="1" valign="bottom">DISCLAIMER: The digital data contained herein was compiled from recorded deeds, survey plats, orthophotography and other public records.&nbsp; Mahoning County does not warrant the accuracy, reliability or timeliness of any of said information and assumes no legal&nbsp;responsibility; persons relying on the information contained herein do so at their own risk.&nbsp;Users should consult public information sources for verification&nbsp;of the information&nbsp;referenced and should notify the Mahoning County GIS Department of any discrepancies.');
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 685px; HEIGHT: 10px; POSITION: absolute; TOP: 38px;">');
	Win1.document.writeln('<P align="right">Print Date:' + s + '</P></DIV></FONT></P></DIV></DIV>');
	
	//INFO TABLE
	Win1.document.writeln('<TD><DIV style="BORDER-LEFT: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; BORDER-BOTTOM: black 1px solid; Z-INDEX: 101; LEFT: 5px; WIDTH: 700px; HEIGHT: 160px; POSITION: absolute; TOP: 41px;"><FONT face="Arial" size="1">');	
	Win1.document.writeln('<DIV style="Z-INDEX: 101; LEFT: 5px; WIDTH: 518px; HEIGHT: 147px; POSITION: absolute; TOP: 5px;">');		
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 103; LEFT: 10px; WIDTH: 74px; POSITION: absolute; TOP: 0px; HEIGHT: 13px">PARCEL ID</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 105; LEFT: 10px; WIDTH: 103px; POSITION: absolute; TOP: 19px; HEIGHT: 13px">TAX DISTRICT</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 106; LEFT: 10px; WIDTH: 102px; POSITION: absolute; TOP: 39px; HEIGHT: 13px">SCHOOL DISTRICT</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 107; LEFT: 10px; WIDTH: 99px; POSITION: absolute; TOP: 59px; HEIGHT: 13px">DEEDED OWNER</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 108; LEFT: 10px; WIDTH: 110px; POSITION: absolute; TOP: 87px; HEIGHT: 14px">LOCATION ADDRESS</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 109; LEFT: 10px; WIDTH: 107px; POSITION: absolute; TOP: 125px; HEIGHT: 13px">LEGAL</DIV>');	
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 109; LEFT: 10px; WIDTH: 107px; POSITION: absolute; TOP: 135px; HEIGHT: 13px">DESCRIPTION</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 111; LEFT: 280px; WIDTH: 107px; POSITION: absolute; TOP: 0px; HEIGHT: 13px">LAND USE CODE</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 112; LEFT: 280px; WIDTH: 104px; POSITION: absolute; TOP: 17px; HEIGHT: 13px">LEGAL ACRES</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 113; LEFT: 280px; WIDTH: 126px; POSITION: absolute; TOP: 34px; HEIGHT: 14px">NEIGHBORHOOD CODE</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 115; LEFT: 280px; WIDTH: 103px; POSITION: absolute; TOP: 52px; HEIGHT: 13px">CAUV VALUE</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 114; LEFT: 280px; WIDTH: 130px; POSITION: absolute; TOP: 70px; HEIGHT: 13px">MARKET LAND VALUE</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 116; LEFT: 280px; WIDTH: 132px; POSITION: absolute; TOP: 88px; HEIGHT: 14px">MARKET IMPR VALUE</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 117; LEFT: 280px; WIDTH: 119px; POSITION: absolute; TOP: 106px; HEIGHT: 13px">TOTAL MARKET VALUE</DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 118; LEFT: 120px; WIDTH: 225px; POSITION: absolute; TOP: 0px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.parcelid + '</FONT></DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 120; LEFT: 120px; WIDTH: 225px; POSITION: absolute; TOP: 19px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.taxdistrict + '</FONT></DIV>');
	Win1.document.writeln('<DIV style="word-wrap:break-word; DISPLAY: inline; Z-INDEX: 121; LEFT: 120px; WIDTH: 150px; POSITION: absolute; TOP: 39px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.schooldistrict + '</FONT></DIV>');
	if (parent.TOCFrame.ownersname2=="") {	
		Win1.document.writeln('<DIV style="word-wrap:break-word; DISPLAY: inline; Z-INDEX: 122; LEFT: 120px; WIDTH: 150px; POSITION: absolute; TOP: 58x; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.ownersname1 + '</FONT></DIV>');
	} else {
		Win1.document.writeln('<DIV style="word-wrap:break-word; DISPLAY: inline; Z-INDEX: 122; LEFT: 120px; WIDTH: 150px; POSITION: absolute; TOP: 58px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.ownersname1 + '</FONT></DIV>');
	}
	Win1.document.writeln('<DIV style="word-wrap:break-word; DISPLAY: inline; Z-INDEX: 123; LEFT: 120px; WIDTH: 150px; POSITION: absolute; TOP: 87px; HEIGHT: 30px"><FONT color="navy">' + parent.TOCFrame.locationaddress + '</FONT></DIV>');//+ '<br>' + parent.TOCFrame.locationaddress2 + '</FONT></DIV>');
	Win1.document.writeln('<DIV style="word-wrap:break-word; DISPLAY: inline; Z-INDEX: 123; LEFT: 87px; WIDTH: 450px; POSITION: absolute; TOP: 125px; HEIGHT: 90px"><FONT color="navy">' + parent.TOCFrame.legal4 + '</FONT></DIV>');
	
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 127; LEFT: 421px; WIDTH: 116px; POSITION: absolute; TOP: 0px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.landusecode + '</FONT></DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 126; LEFT: 421px; WIDTH: 116px; POSITION: absolute; TOP: 17px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.deededacreage + '</FONT></DIV>');
		
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 128; LEFT: 421px; WIDTH: 116px; POSITION: absolute; TOP: 34px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.neighborhoodcode + '</FONT></DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 130; LEFT: 421px; WIDTH: 116px; POSITION: absolute; TOP: 52px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.cauvvalue + '</FONT></DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 129; LEFT: 421px; WIDTH: 116px; POSITION: absolute; TOP: 70px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.mktlandvalue + '</FONT></DIV>');

	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 131; LEFT: 421px; WIDTH: 116px; POSITION: absolute; TOP: 88px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.mktimprovedvalue + '</FONT></DIV>');
	Win1.document.writeln('<DIV style="DISPLAY: inline; Z-INDEX: 132; LEFT: 421px; WIDTH: 116px; POSITION: absolute; TOP: 106px; HEIGHT: 13px"><FONT color="navy">' + parent.TOCFrame.mkttotalvalue + '</FONT></DIV></DIV></TD>');
                                                                                                                                                                                                                                                                                                                                                         
	//LEGEND	
	Win1.document.writeln('<TD><DIV style="Z-INDEX: 101; LEFT: 525px; WIDTH: 167px; HEIGHT: 153px; POSITION: absolute; TOP: 0px;">');	
	Win1.document.write('<IMG style="Z-INDEX: 101; LEFT: 135px; WIDTH: 31px; POSITION: absolute; TOP: 45px; HEIGHT: 70px" height="70" alt="" src="../gis/images/north.bmp" width="31">');
	Win1.document.writeln('<IMG style="Z-INDEX: 101; LEFT: -25px; WIDTH: 155px; POSITION: absolute; TOP: 40px; HEIGHT: 80px" height="80" alt="" src="../gis/images/annolegend.bmp" width="155"></TD>');	
			
	Win1.document.writeln('</FONT></div></DIV>');
	Win1.document.writeln('</body></html>');		
	Win1.document.close();
	clearDate();
	legendVisible=legVis2;
	Win1=null;
	hideRetrieveMap();		
}