// bhNewWindow.js
/*
*  JavaScript template file for ArcIMS HTML Viewer
*/

/*
***************************************************************************************

Creates a new window for displaying information.

***************************************************************************************
*/

function bhNewWindow(apn,arg) {

	if (arg == "photo") {
		PhotoWin = window.open("","PhotoWindow","width=700,height=530,toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0");
		PhotoWin.location = appDir + "bhParImages.asp?apn=" + apn + "&arg=" + arg;

	} else if (arg == "sketch") {
		SketchWin = window.open("","SketchWindow","width=700,height=530,toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0");
		SketchWin.location = appDir + "bhParImages.asp?apn=" + apn + "&arg=" + arg;

	} else if (arg == "det") {
		DetailReportWin = window.open("","ReportWindow","width=780,height=520,toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0");
		DetailReportWin.location = appDir + "bhRepDet.asp?apn=" + apn;

	} else if (arg == "poll") {
		DetailReportWin = window.open("","ReportWindow","width=780,height=520,toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0");
		DetailReportWin.location = appDir + "bhRepVoteDet.asp?apn=" + apn;

	} else if (arg == "school") {
		var schoolphoto = apn;
		SchoolPhotoWin = window.open("","PhotoWindow","width=780,height=520,toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0");
		SchoolPhotoWin.location = appDir + "bhSchoolImages.asp?schoolphoto=" + schoolphoto + "&arg=" + arg;

	} else if (arg == "help") {
		HelpWin = window.open("","HelpWindow","width=500,height=500,toolbar=yes,scrollbars=yes,resizable=yes,top=0,left=0");
		HelpWin.location = appDir + "bhHelp.htm";
	}

}
		

