function getModule(module) {
/* Change the text below to modify the popups in the modules page */

	var SH = "<p class='bold allcaps'>SH:<br />Scheduling Module<br />(In development)*</p><p>The scheduling module will track all aspects of regular and split scheduling as well as sick leave, vacation, training etc.</p>";
	var PF = "<p class='bold allcaps'>PF:<br />Personnel File Management &ndash; HR Module</p><p>The personnel file management module tracks all aspects of core personnel information including name, rank, address, phone, service records, awards and commendations.</p>";
	var SD = "<p class='bold allcaps'>SD:<br />Staff Development, Firearms &amp; Training</p><p>The staff development module tracks applicants as they move through the recruiting process, courses and training records (including expense sheets) for personnel, confidential HR notes and firearm qualification scores.</p>";
	var QM = "<p class='bold allcaps'>QM:<br />Quartermaster Inventory Control</p><p>The quartermaster inventory control module tracks suppliers, purchases, and inventory issued to personnel including Quartermaster, firearms, software and hardware.  Assigning inventory kits to new recruits is automated for ease of entry.</p>";
	var PM = "<p class='bold allcaps'>PM:<br />Personnel Information Management</p><p>The personnel information management module includes data entry forms for use of force, police pursuits, transfer requests and performance evaluations. In addition, this module tracks all sick leave, compassionate leave, PCMVI, public appreciation and public concerns, and critical incidents and injuries.</p>";
	var PS = "<p class='bold allcaps'>PS:<br />Professional Standards</p><p>The professional standards module tracks all aspects of formal and informal incidents.</p>";
	var OT = "<p class='bold allcaps'>OT:<br />Overtime Tracking</p><p>The overtime tracking module tracks banked and paid overtime for all personnel including statistical reports by individual, department, section, and unit as well as by type.</p>";
	var EI = "<p class='bold allcaps'>EI:<br />Early Intervention</p><p>The early intervention module is included in the PS, PM, and SD modules as well as being available as a stand alone module.  The EI module tracks the number of times personnel are involved in PS incidents, sick leave, UOF, PCMVI, etc.</p>";
	var RM = "<p class='bold allcaps'>RM:<br />Recruiting Module</p><p>The recruiting module tracks applicants as they go through the recruiting process.  Once hired, the details for the recruit are automatically posted to the Personnel File module.  This module is integrated into the Staff Development module and is also available as a stand-alone.</p>";
	var TE = "<p class='bold allcaps'>TE:<br />Traffic Enforcement</p><p>The traffic enforcement module tracks the date, time and location for all traffic tickets issued including statistical reports and the number of hours and tickets issued by personnel.</p>";
	var EC = "<p class='bold allcaps'>EC:<br />Eligibility Competition</p><p>The eligibility competition module was created to manage all aspects of the promotional competition process from Constable to Sergeant. and from Sergeant. to Staff Sergeant. including intent to compete through to round table discussions, ratings and selection.</p>";
	var SB = "<p class='bold allcaps'>SB:<br />Switchboard</p><p>The switchboard module offers an up to date list of all contact phone numbers for personnel. This module is automatically updated when any changes are made in the PF module.</p>";
	var FA = "<p class='bold allcaps'>FA:<br />False Alarm Tracking</p><p>The false alarm module tracks the false alarms and contact information for private and business locations including issuing warning and black list letters and fine memos.</p>";
	var BW = "<p class='bold allcaps'>BW:<br />Block Watch</p><p>The block watch module tracks all aspects of managing the block watch process including volunteers, security checks, block details, participants, captains, co-captains, area coordinators, meetings, information sessions, engravers, and FAN outs.</p>";
	var VM = "<p class='bold allcaps'>VM:<br />Vehicle Management</p><p>The vehicle management module tracks vehicle assignments, fuel purchase cards and fuel costs, mileage, maintenance, service, and repairs for all vehicles including inventory stored in each vehicle.</p>";
	var FOI = "<p class='bold allcaps'>FOI:<br />Freedom of Information</p><p>The freedom of information module tracks formal and informal FOI requests as well as civil actions, court orders and video recordings.</p>";
	var CL = "<p class='bold allcaps'>CL:<br />Civil Litigation Module</p><p>The civil litigation module tracks allegations, plaintiffs, actions, diary dates and settlement details.</p>";

/* DO NOT CHANGE BELOW HERE !!! */

	switch (module) {
		case "SH":
			var display = SH;
		break;
		case "PF":
			var display = PF;
		break;
		case "SD":
			var display = SD;
		break;
		case "QM":
			var display = QM;
		break;
		case "PM":
			var display = PM;
		break;
		case "PS":
			var display = PS;
		break;
		case "OT":
			var display = OT;
		break;
		case "EI":
			var display = EI;
		break;
		case "RM":
			var display = RM;
		break;
		case "TE":
			var display = TE;
		break;
		case "EC":
			var display = EC;
		break;
		case "SB":
			var display = SB;
		break;
		case "FA":
			var display = FA;
		break;
		case "BW":
			var display = BW;
		break;
		case "VM":
			var display = VM;
		break;
		case "FOI":
			var display = FOI;
		break;
		case "CL":
			var display = CL;
		break;
	}
	if (module == "clear") {
		$('module_description').hide();
	} else {
		$('module_description').update(display);
		$('module_description').setStyle({background:'transparent url(images/' + module + '.png) repeat'});
		$('module_description').show();
	}
	return false;
}
function sendForm(thetype) {
	var first = escape($F('first'));
	var last = escape($F('last'));
	if (thetype == "request") {
		var prefer = escape($F('prefer'));
		var city = escape($F('city'));
		var province = escape($F('province'));
	}
	var phone = escape($F('phone'));
	var email = escape($F('email'));
	var comments = escape($F('comments'));
	var doalert = "false";
	if (first == "") {
		doalert = "true";
		alert("You must fill in your first name.");
		$('first').focus();
	} else if (last == "") {
		doalert = "true";
		alert("You must fill in your last name.");
		$('last').focus();
	} else if (phone == "") {
		doalert = "true";
		alert("You must fill in your phone #.");
		$('phone').focus();
	} else if (email == "") {
		doalert = "true";
		alert("You must fill in your email.");
		$('email').focus();
	} else if (comments == "") {
		doalert = "true";
		alert("You must fill in a comment.");
		$('comments').focus();
	}
	if (thetype == "request" && doalert == "false") {
		if (prefer == "") {
			doalert = "true";
			alert("You must fill in your preferred contact method.");
			$('prefer').focus();
		} else if (city == "") {
			doalert = "true";
			alert("You must fill in your city.");
			$('city').focus();
		} else if (province == "") {
			doalert = "true";
			alert("You must fill in your Province/State.");
			$('province').focus();
		}
	}
	if (doalert == "false") {
		var url = "includes/js_sendForm.php";
		var divID = "response";
		var pars = "type=" + thetype + "&first=" + first + "&last=" + last + "&prefer=" + prefer + "&city=" + city + "&province=" + province + "&phone=" + phone + "&email=" + email + "&comments=" + comments + "&r=" + Math.floor(Math.random()*1000);
		var doSend = new Ajax.Updater(divID, url, {method: 'get', parameters: pars});
	}
	return false;
}
function screenShot(image, wd, ht, rot){
	var getHt = alertSize();
	if (rot == "land") {
		var n_wd = "850";
		var n_ht = "550";
		var thepad = "padding-top"
		var display = image + "_module.jpg";
		var pad = thepad + ":" + parseInt((n_ht - ht - 8)/2) + "px";
		var offset = getScrollXY() + 25;
		var prev_offset = offset + 75;
		$('control').setStyle({
			background: "url(images/screenshot_back_heavy.png) top center no-repeat"
		});
	} else {
		var n_wd = "550";
		var n_ht = "700";
		var display = image + ".jpg";
		var thepad = "padding-top"
		var pad = thepad + ":" + parseInt((n_ht - ht - 8)/2) + "px";
		var offset = getScrollXY() + 25;
		var prev_offset = offset;
		$('control').setStyle({
			background: "url(images/screenshot_back_heavy_port.png) top center no-repeat"
		});
	}
	$('control').setStyle({
		marginTop: prev_offset + "px",
		width: n_wd + "px",
		height: n_ht + "px"
	});
	$('control').update('<a href="#nogo" onclick="return closeScreenShot();"><img src="images/' + display + '" style="' + pad + ';" /></a>');
	var docHeight = Number(getHt) + Number(offset) + 50;
	$('preview').setStyle({
		height: docHeight + "px"
	});
	$('preview').show();
	return false;
}

function closeScreenShot() {
	$('preview').hide();
	return false;
}

function getScreenShot(image) {
		var url = "php/preview.php";
		divID = "preview";
		var pars = "video_id=" + id + "&r=" + Math.floor(Math.random()*1000);
		var doPrevew = new Ajax.Updater(divID, url, {method: 'get', parameters: pars});
}
function getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  return scrOfY;
}
function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
//  window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );
  return myHeight;
}