function OpenPrintablePage(pUrl) {
	window.open(pUrl, null, "top=10,left=10,height=590,width=790,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=no,location=no")
}
function freqLinkOver(objImg, objLink)
{
	objImg.src = strImagePath + "/bullet_over.gif";
	objLink.style.color = "#009530";
}
function freqLinkOut(objImg, objLink)
{
	objImg.src = strImagePath + "/bullet.gif";
	objLink.style.color = "#1C1B1B";
}
function sideNavOver(objImg, objLink)
{
	objImg.src = strImagePath + "/bullet1_over.gif";
	objLink.style.color = "#007D28";
}
function sideNavOut(objImg, objLink)
{
	objImg.src = strImagePath + "/bullet1.gif";
	objLink.style.color = "#33301F";
}
function ValidateTenderRegForm(objForm)
{
	if (objForm.txtTenderNo.value == "") {
		alert("Tender Number is required.");
		objForm.txtTenderNo.focus();
		return false;
	}
	if (objForm.txtDate.value == "") {
		alert("Date is required.");
		objForm.txtDate.focus();
		return false;
	}
	if (objForm.txtLastName.value == "") {
		alert("Last Name is required.");
		objForm.txtLastName.focus();
		return false;
	}
	if (objForm.txtFirstName.value == "") {
		alert("First Name is required.");
		objForm.txtFirstName.focus();
		return false;
	}
/*	if (objForm.txtCompanyName.value == "") {
		alert("Company Name is required.");
		objForm.txtCompanyName.focus();
		return false;
	}
*/
	if (objForm.txtAddress1.value == "") {
		alert("Address 1 is required.");
		objForm.txtAddress1.focus();
		return false;
	}
/*	if (objForm.txtAddress2.value == "") {
		alert("Address 2 is required.");
		objForm.txtAddress2.focus();
		return false;
	}
*/
	if (objForm.txtCity.value == "") {
		alert("City is required.");
		objForm.txtCity.focus();
		return false;
	}
	if (objForm.txtProvince.value == "") {
		alert("Province is required.");
		objForm.txtProvince.focus();
		return false;
	}
	if (objForm.txtPostalCode.value == "") {
		alert("Postal Code is required.");
		objForm.txtPostalCode.focus();
		return false;
	}
	if (objForm.txtCountry.value == "") {
		alert("Country is required.");
		objForm.txtCountry.focus();
		return false;
	}
	if (objForm.txtPhone.value == "") {
		alert("Phone Number is required.");
		objForm.txtPhone.focus();
		return false;
	}
/*	if (objForm.txtFax.value == "") {
		alert("Fax Number is required.");
		objForm.txtFax.focus();
		return false;
	}
*/
	if (objForm.txtEmail.value == "") {
		alert("Email Address is required.");
		objForm.txtEmail.focus();
		return false;
	}
	return true;
}

//this function is used in Event Detail Template
function funcEventTypeSelect(){
	if (document.EventDetails.selEventType.value=="Other"){
		document.EventDetails.txtType.value = "";
		document.EventDetails.txtType.focus();
		
	}
	else
	{
		document.EventDetails.txtType.value = document.EventDetails.selEventType.value;
	}
}


//this function is used in Event Detail Template
function funcEventLocationSelect(){
	if (document.EventDetails.selEventLocation.value=="Other"){
		document.EventDetails.txtLocation.value = "";
		document.EventDetails.txtLocation.focus();
	}
	else
	{
		document.EventDetails.txtLocation.value = document.EventDetails.selEventLocation.value;
		//document.EventDetails.NCPHRICH_phLocationFilter.HTML = document.EventDetails.selEventLocation.value;
	}
}	

// this function is used in Marketing Event Detail Template
function funcShowOnMainSelect(){
	document.EventDetails.txtShowOnMain.value = document.EventDetails.selShowOnMain.value;
}



if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuWidth = 150;
HM_PG_FontFamily = "Verdana,Arial,Helvetica,sans-serif";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#333333";
HM_PG_FontColorOver = "#FFFFFF";
HM_PG_BGColor = "#E7E7E7";
HM_PG_BGColorOver = "#777777";
HM_PG_ItemPadding = 3;

HM_PG_BorderWidth = 2
HM_PG_BorderColor = "white";
HM_PG_BorderStyle = "outset";
HM_PG_SeparatorSize = 0;
HM_PG_SeparatorColor = "#ffffff";

HM_PG_ImageSrc = "HM_More_black_right.gif";
HM_PG_ImageSrcLeft = "HM_More_black_left.gif";
HM_PG_ImageSrcOver = "HM_More_black_right_over.gif";
HM_PG_ImageSrcLeftOver = "HM_More_black_left_over.gif";
HM_PG_ImageHorizSpace = 3;
HM_PG_ImageVertSpace = 3;

HM_PG_KeepHilite = 1; 
HM_PG_ClickStart = 0;
HM_PG_ChildOverlap = 5;
HM_PG_ChildOffset = 3;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;

HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

HM_PG_ScrollBarColor = "lightgrey";
HM_PG_ScrollImgSrcTop = "HM_More_black_top.gif";
HM_PG_ScrollImgSrcBot = "HM_More_black_bot.gif";
HM_PG_ScrollImgWidth = 9;
HM_PG_ScrollImgHeight = 5;

// Preload template images
var img1 = new Image();
img1.src = strImagePath + "/topright_job_over.gif";
var img2 = new Image();
img2.src = strImagePath + "/topright_contact_over.gif";
var img3 = new Image();
img3.src = strImagePath + "/topright_sitemap_over.gif";
var img4 = new Image();
img4.src = strImagePath + "/topright_newsroom_over.gif";
var img5 = new Image();
img5.src = strImagePath + "/search_button_over.gif";
var img6 = new Image();
img6.src = strImagePath + "/more_over.gif";
var img7 = new Image();
img7.src = strImagePath + "/forresidents_foot_over.gif";
var img8 = new Image();
img8.src = strImagePath + "/doingbusiness_foot_over.gif";
var img9 = new Image();
img9.src = strImagePath + "/enjoyinglethbridge_foot_over.gif";
var img10 = new Image();
img10.src = strImagePath + "/cityhall_foot_over.gif";
var img11 = new Image();
img11.src = strImagePath + "/bullet_over.gif";
var img12 = new Image();
img12.src = strImagePath + "/bullet1_over.gif";
/*
HM_Array1 = [
[200,			// menu_width
180,			// left_position
127,			// top_position
,,,,,,,,,,,,,,,	// etc.
],				// display_on_click
["Your Home","#",1,0,1],
["Your Community","#",1,0,1],
["Your Safety & Security","#",1,0,1],
["Your Transportation","#",1,0,1],
["Your Government","#",1,0,1]
]

HM_Array1_1 = [
[],
["City Street Map","#",1,0,0],
["Bus Service","#",1,0,0],
["Roadway Construction Maintenance & Planning","#",1,0,0]
]
HM_Array1_2 = [
[],
["City Street Map","#",1,0,0],
["Bus Service","#",1,0,0],
["Roadway Construction Maintenance & Planning","#",1,0,0]
]
HM_Array1_3 = [
[],
["City Street Map","#",1,0,0],
["Bus Service","#",1,0,0],
["Roadway Construction Maintenance & Planning","#",1,0,0]
]
HM_Array1_4 = [
[],
["City Street Map","#",1,0,0],
["Bus Service","#",1,0,0],
["Roadway Construction Maintenance & Planning","#",1,0,0]
]
HM_Array1_5 = [
[],
["City Street Map","#",1,0,0],
["Bus Service","#",1,0,0],
["Roadway Construction Maintenance & Planning","#",1,0,0]
]

HM_Array2 = [
[200,			// menu_width
327,			// left_position
127,			// top_position
,,,,,,,,,,,,,,,	// etc.
],				// display_on_click
["Business Licenses","#",1,0,0],
["Cemetery Inquiries","#",1,0,0],
["Economic Development","#",1,0,0],
["Facility Rentals","#",1,0,0],
["Inspections","#",1,0,0],
["Land Sales","#",1,0,0],
["Map Sales","#",1,0,0],
["Permits","#",1,0,0],
["Planning","#",1,0,0],
["Real Property Reports","#",1,0,0],
["Taxes","#",1,0,0],
["Tenders","#",1,0,0],
["Zoning & Land Use","#",1,0,0],
["Utilities","#",1,0,0]
]

HM_Array3 = [
[200,			// menu_width
474,			// left_position
127,			// top_position
,,,,,,,,,,,,,,,	// etc.
],				// display_on_click
["Arts & Culture","#",1,0,0],
["Attractions","#",1,0,0],
["Community Organizations","#",1,0,0],
["ENMAX Centre","#",1,0,0],
["Facility Rentals","#",1,0,0],
["Getting Around","#",1,0,0],
["Leisure & Recreation Activities","#",1,0,0],
["Lethbridge Public Library","#",1,0,0],
["Nature Centre","#",1,0,0],
["Parks & Trails","#",1,0,0]
]

HM_Array4 = [
[200,			// menu_width
621,			// left_position
127,			// top_position
,,,,,,,,,,,,,,,	// etc.
],				// display_on_click
["City Council","#",1,0,0],
["Boards, Commissions & Committees","#",1,0,0],
["Departments","#",1,0,0]
]

HM_Array5 = [
[230,			// menu_width
491,			// left_position
127,			// top_position
,,,,,,,,,,,,,,,	// etc.
],				// display_on_click
["Roles","#",1,0,0],
["Current Openings","#",1,0,0],
["Culture","#",1,0,0],
["Questions","#",1,0,0]
]
*/