<!--
function delayer(){
    window.location = 'http://www.northernminer.com';
}

	function OLDsubnav(aID) {
		var x;
		x = document.getElementById(aID);
		if (x.style.visibility == 'visible')
		{
			x.style.visibility = 'hidden';
		}
		else
		{
			x.style.visibility = 'visible';
		}
		return;		
	}

function subnav(aID, strPubCode) {
	var x, y, z;
	x = document.getElementById(aID);
	x.style.visibility = 'visible';

	if (aID == 'EVR_months-nav')
	{
		y = document.getElementById('EVR_options-nav');
		if (strPubCode == 'FBC'){
			z = document.getElementById('EVR_province-nav');
		}
	}
	
	if (aID == 'EVR_options-nav')
	{
		y = document.getElementById('EVR_months-nav');
		if (strPubCode == 'FBC'){
			z = document.getElementById('EVR_province-nav');
		}
	}
	if (strPubCode == 'FBC'){
		if (aID == 'EVR_province-nav')
		{
			y = document.getElementById('EVR_options-nav');
			z = document.getElementById('EVR_months-nav');
		}
	}
	
	y.style.visibility = 'hidden';
	if (strPubCode == 'FBC'){
		z.style.visibility = 'hidden';
	}
	return;
}
	
function neil_SubmitForm(objForm, formAction, formTarget){
	if(formAction!=""){
		if(formTarget!=""){
			objForm.target = formTarget;
		}
		objForm.action = formAction;
	}
	objForm.submit();
	return false;
}

function neil_SetFocus(FormObject){
	FormObject.focus();
	return false;
}

function NewWindow(address)
{
	// USED TO CREATE THE LINKS FOR THE WEBSITES
	window.open(address) 	//Opens the site in a new window
}

<!-- Original:  Phil Webb (phil@philwebb.com) -->
<!-- Web Site:  http://www.philwebb.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

function SelectAll(){
	SelectedCategories.categories.value = "";
	for (i=0; i < SelectedCategories.list2.length; i++){
		SelectedCategories.list2.options[i].selected = true;
		SelectedCategories.categories.value = SelectedCategories.categories.value +
		  SelectedCategories.list2.options[i].text + ":";
	}
}

function SelectAllSpeakers(){
	Speakers.speaker_id_list.value = "";
	for (i=0; i < Speakers.list2.length; i++){
		Speakers.list2.options[i].selected = true;
		Speakers.speaker_id_list.value = Speakers.speaker_id_list.value +
		  Speakers.list2.options[i].text + ":";
	}
}

function move(fbox, tbox) {
	var arrFbox = new Array();
	var arrTbox = new Array();
	var arrLookup = new Array();
	var i;

	for (i = 0; i < tbox.options.length; i++) {
		arrLookup[tbox.options[i].text] = tbox.options[i].value;
		arrTbox[i] = tbox.options[i].text;
	}

	var fLength = 0;
	var tLength = arrTbox.length;
	for(i = 0; i < fbox.options.length; i++) {
		arrLookup[fbox.options[i].text] = fbox.options[i].value;
		if (fbox.options[i].selected && fbox.options[i].value != "") {
			arrTbox[tLength] = fbox.options[i].text;
			tLength++;
		} else {
			arrFbox[fLength] = fbox.options[i].text;
			fLength++;
		}
	}

	arrFbox.sort();
	arrTbox.sort();
	fbox.length = 0;
	tbox.length = 0;
	var c;

	for(c = 0; c < arrFbox.length; c++) {
		var no = new Option();
		no.value = arrLookup[arrFbox[c]];
		no.text = arrFbox[c];
		fbox[c] = no;
	}

	for(c = 0; c < arrTbox.length; c++) {
		var no = new Option();
		no.value = arrLookup[arrTbox[c]];
		no.text = arrTbox[c];
		tbox[c] = no;
   }
}

function CheckMonthEnd(month,day){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 11/14/2002
//validate the length of the month
switch (month)
{
case "Apr":
case "Jun":
case "Sep":
case "Nov":
	if (day>30){
		alert(month+" has 30 days");
	}
case "Feb":
	if (day>29){
		alert(month+" has 28 days. 29 days in leap year");
	}
break;
}
}

function SubmitForm(objForm, formAction){
	if(formAction!=""){
		objForm.target = "_top";
		objForm.action = formAction;
	}
	objForm.submit();
	return false;
}

function checkbox_checker(objForm, strDo, intCount) {
	for (counter = 0; counter < intCount; counter++) {
		if (strDo=="check") {
			objForm.Pub[counter].checked = true;
		}
		else{
			objForm.Pub[counter].checked = false;
		}
	}
}

function SetFocus(FormObject){
	FormObject.focus();
}

function ShowEventDetails(Event_ID){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
var eventpage, temp;

	eventpage = "/Events/EventDetails.asp?Event_ID="+Event_ID
	temp = window.open(eventpage, 'EventDetails', 'resizable=yes,scrollbars=yes,dependent=yes,width=700,height=650,left=200,top=100');
	temp.document.bgColor="white";
	temp.focus();
}

function ShowSimpleWindow(strURL){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
var temp;

temp = window.open(strURL, 'Events', 'resizable=yes,scrollbars=yes,width=675,height=700,left=200,top=100');
temp.document.bgColor="white";
temp.focus();
}

function ShowOrgEventsWindow(strURL, strFeatures){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
var temp;

temp = window.open(strURL, 'Events', strFeatures);
temp.document.bgColor="white";
temp.focus();
}

function MoveToNext(objFormElement){
//CREATED BY NEIL RAMRATTAN 10/30/2006
//move the focus from the current form element to the next one in tabindex


}

function ShowEventsHelpWindow(strURL){
//CREATED BY NEIL RAMRATTAN
//FIRST CREATED: 02/22/2006
//this function creates a pop-up box to display the text for the Event Details
var temp;

temp = window.open(strURL, 'Events', 'resizable=yes,scrollbars=yes,dependent=yes,width=700,height=400,left=300,top=100');
temp.document.bgColor="white";
temp.focus();
}

function ShowSimpleTopicAlertsWindow(strURL){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
var temp;

temp = window.open(strURL, 'Admin', 'resizable=yes,scrollbars=yes,dependent=yes,width=500,height=600,left=300,top=100');
temp.document.bgColor="white";
temp.focus();
}

	function displayTTText(ttID)
	{
		var ttItem;
		ttItem = document.getElementById(ttID).style;
		ttItem.visibility = 'visible';
		return true;
	}
	
	function hideTTText(ttID)
	{
		var ttItem;
		ttItem = document.getElementById(ttID).style;
		ttItem.visibility = 'hidden';
	}
	
function NewOrganizer(){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
	var eventpage, temp;

	eventpage = "/Events/NewOrganizer.asp"
	//document.write(eventpage)
	temp = window.open(eventpage, 'Organizer', 'scrollbars=yes,dependent=no');
	temp.focus();
}

//this is included in order to pop up the date picker box
function DoCal(elTarget) {
	if (window.showModalDialog) {
		var sRtn;
		sRtn = showModalDialog("/common_scripts/events/admin/calendar.htm","","center=yes;dialogWidth=180pt;dialogHeight=182pt");
		if (sRtn!="")
			elTarget.value = sRtn;
	} else
		alert("Internet Explorer 4.0 or later is required.")
}

function searchtips(){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for searchtips.htm
	var searchpage, temp;

	searchpage = "/common_scripts/events/searchtips.asp";
	temp = window.open(searchpage, 'SearchTips', 'scrollbars=yes,dependent=no,width=375,height=250,left=400,top=250');
	temp.focus();
}

// POP UP A PRE-FORMATTED EMAIL MESSAGE WINDOW
function popupMessage() {

    // SET MESSAGE VALUES
    var to = "enewspro@bizinfogroup.ca"; 
    //var cc = "another_person@company.com"; 
    //var bcc = "yet_another_person@company.com"; 
    var subject = "Comments re. Topic Alerts"; 
    //var body = 
        //"Chandler,\n\n\tI'm sorry, I can't make it tonight.  " +
        //"I have to rearrange my sock drawer. " + 
        //"\n\nSincerely,\n\nMonica" 

    // BUILD MAIL MESSAGE COMPONENTS 
    var doc = "mailto:" + to + "&subject=" + escape(subject);
        //"?cc=" + cc + 
        //"&bcc=" + bcc + 
        //"&subject=" + escape(subject) + 
        //"&body=" + escape(body); 

    // POP UP EMAIL MESSAGE WINDOW
    window.location = doc; 
}


function ConfirmDelete(objForm, formAction){
	var OkDelete = confirm("Are you sure you want to remove the topic/keyword(s) from your list?");
	if (OkDelete == true){
		objForm.target = "_top";
		objForm.action = formAction;
		objForm.submit();
		return false;
	}
}
	
function ConfirmRemove(CheckBox, RadioButton, HiddenText){
	if (CheckBox.checked == false){
		var OkRemove = confirm("Are you sure you want to remove the topic/keyword(s) from your list?");
		if (OkRemove == true){
			CheckBox.checked = false;
			RadioButton[0].checked = false;
			RadioButton[1].checked = false;
			RadioButton[2].checked = false;
			HiddenText.value = parseInt(HiddenText.value)-1;
		}
		else{
			CheckBox.checked = true;
		}
	}
	else{
		HiddenText.value = parseInt(HiddenText.value)+1;
	}
}

function clearOption_A(ObjRadio){ 
	ObjRadio[0].checked = false;
}

function SelectOption(ObjRadio, intIndex){ 
	ObjRadio[intIndex].checked = true;
}

function clearOption_B(buttonGroup){ 
	for (i=0; i < buttonGroup.length; i++){ 
		if (buttonGroup[i].checked == true){ 
			buttonGroup[i].checked = false;
		}
	} 
}

function CheckRadioButton(ObjRadio, intTopicNo){
	ObjRadio.checked = true;
}

function CheckRadioOption_A(buttonGroup){
	for (i=0; i < buttonGroup.length; i++){ 
		buttonGroup[i].checked = true;
	} 
}

function CheckDailySummary(ObjRadio){
	ObjRadio.checked = true;
}

function UnCheckALLIndustries(ObjCheckBox){
	ObjCheckBox.checked = false;
}

function CheckALLIndustries(ObjCheckBox){
	ObjCheckBox.checked = false;
}

function UnCheckIndividualIndustries(ObjCheckBoxSet, intIndustryCount){ 
	for (i=1; i <= intIndustryCount; i++){ 
		ObjCheckBoxSet[i].checked = false;
	} 
}

function Check_And_UnCheckIndustries(ObjSelectAll, intIndustryCount, ObjCheckBoxSet){ 
	for (i=0; i < intIndustryCount; i++){ 
		if (ObjSelectAll.checked == true){
			ObjCheckBoxSet[i].checked = true;
		}
		else{
			ObjCheckBoxSet[i].checked = false;
		}
	} 
}

function CheckALL(ObjSelectAll, ObjCheckBoxSet, intStart, intBoxCount){ 
	if (ObjSelectAll.checked == false){ 
		for (i=intStart; i <= intBoxCount; i++){ 
			ObjCheckBoxSet[i].checked = false;
		}
	}
	else{
		for (i=intStart; i <= intBoxCount; i++){ 
			ObjCheckBoxSet[i].checked = true;
		}
	}
}

function AutoCheckIndustry(ObjBox){
	ObjBox.checked = true;
}

function UnCheckRadioButtons(ObjRadioButtonSet){
	//alert(ObjRadioButtonSet.length);
	for(i=0;i<ObjRadioButtonSet.length;i++){
		ObjRadioButtonSet[i].checked = false;
	}
}

function ClearTextBox(ObjTextBox){
	ObjTextBox.value="";
}

function ShowSample(strUrl){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
	var temp;
	temp = window.open(strUrl, 'Sample', 'scrollbars=yes,dependent=no,width=425,height=450,left=200,top=100');
	temp.focus();
}

function ShowTopics(strUrl){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
	var temp;
	temp = window.open(strUrl, 'Topics', 'scrollbars=yes,dependent=no,width=600,height=600,left=300,top=100');
	temp.focus();
}

function ShowAutoRenewalMessage(strUrl){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
	var temp;
	temp = window.open(strUrl, 'Renewal', 'scrollbars=no,dependent=no,width=240,height=245,left=300,top=100');
	temp.focus();
}

function CheckCountry(intCountryId){
	if(intCountryId==38 || intCountryId==225){
		SubmitForm(document.Billing_Info, '/TopicAlerts/BillingInfo.asp?cc=T');
	}
}

function ChangeProvinceList(intCountryId){
	if(intCountryId!=38 && intCountryId!=225){
		SubmitForm(document.Billing_Info, '/TopicAlerts/BillingInfo.asp?cc=T');
	}
}

function CheckOrganizerCountry(intCountryId, strFormName, strFormAction){
	if(intCountryId==38 || intCountryId==225){
		SubmitForm(strFormName, strFormAction);
	}
}

function ChangeOrganizerProvinceList(intCountryId){
	if(intCountryId!=38 && intCountryId!=225){
		SubmitForm(document.Billing_Info, '/TopicAlerts/BillingInfo.asp?cc=T');
	}
}

function SetHiddenInputValue(objFormObject, Value){
	objFormObject.value = Value;
}

function neil_openPhotoWindow(url, w, h, loct, locl) {
//open a separate window to show the actual size of the article's pictures

  var options = "width=" + w + ",height=" + h + ",top=" + loct + ",left=" + locl + ",";
  options += "resizable=yes,scrollbars=yes,status=no,";
  options += "menubar=no,toolbar=no,location=no,directories=no";
  var newWin = window.open(url, 'newWin', options);
  newWin.focus();
  }

// preload images so we can size the windnow to there dimensions
var ImgObj = new Image();
var arrImg = new Array();
var arrPreLoad = new Array();

function PreLoadImageToCache(intCtr,ImgName){
	arrPreLoad[intCtr] = new Image(); 
	arrPreLoad[intCtr].src = ImgName;
}
//*****************************************************************

function ViewPhoto(url, w, h, loct, locl) {
//open a separate window to show the actual size of the article's pictures

  var options = "width=" + w + ",height=" + h + ",top=" + loct + ",left=" + locl + ",";
  options += "resizable=yes,scrollbars=yes,status=no,";
  options += "menubar=no,toolbar=no,location=no,directories=no";
  var newWin = window.open(url, 'newWin', options);
  newWin.focus();
  }

function AddDocument(){
	//Change the page to which is submitted if user click the add_pic button.
	var oForm;
	oForm = document.getElementById('frmDNEdit');
	oForm.action = "add_doc.asp"
	oForm.submit()
}

 function ViewDoc(url, w, h, loct, locl) {
//open a separate window to show the actual size of the article's pictures

  var options = "width=" + w + ",height=" + h + ",top=" + loct + ",left=" + locl + ",";
  options += "resizable=yes,scrollbars=yes,status=no,";
  options += "menubar=no,toolbar=no,location=no,directories=no";
  var newWin = window.open(url, 'newWin', options);
  newWin.focus();
  }
  
function printArticle() {
	if (window.print) {
		Prnt.style.display ="None";
		setTimeout('window.print();',200);
	}
}

function EventText(Event_ID){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
	var eventpage, temp;

	eventpage = "/EventAdmin/EventText.asp?Event_ID="+Event_ID
	//document.write(eventpage)
	temp = window.open(eventpage, 'EventText', 'scrollbars=yes,dependent=no,width=500,height=500,left=100,top=100');
	temp.focus();
}

function EventSpeaker(Event_ID){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the speakers to link to the event
	var eventpage, temp;

	eventpage = "/EVENTAdmin/LinkSpeaker.asp?Event_ID="+Event_ID
	//document.write(eventpage)
	temp = window.open(eventpage, 'LinkSpeaker', 'scrollbars=yes,dependent=no,width=500,height=500,left=100,top=100');
	temp.focus();
}

function UserManual(){
//CREATED BY NEIL RAMRATTAN
//LAST UPDATE: 02/26/2001
//this function creates a pop-up box to display the text for the Event Details
	var manual, temp;

	manual = "/common_scripts/events/admin/User_Manual.htm"
	temp = window.open(manual, 'User_Manual', 'scrollbars=yes,dependent=no,width=450,height=450,left=100,top=100');
	temp.focus();
}

function SubmitNew()
{
	document.New_Event.action = "/EVENTAdmin/AddEvent.asp?Flag=Y"
	document.New_Event.target = "";
	document.New_Event.submit();
	return true;
}

function CopyForm()
{
	document.New_Event.action = "/EVENTAdmin/AddEvent.asp?Flag=C";
	document.New_Event.target = "_blank";	// Open in a new window
	document.New_Event.submit();
	return true;
}

function SubmitToPage(ObjForm, strPageName){
//remember to leave action field blank when defining the form 
	document.ObjForm.action="/TopicAlerts/CheckOutSummary.asp?psn=t";
	document.ObjForm.submit();
}


// Added by Ben
function changeOptionsSearch(value, form)
{
	var sSource;
	var oSource;
	sSource = "sel" + value;
	oSource = document.getElementById(sSource);
	form.ARCH_Category_List.length = 0;
	for (i=0;i<oSource.length;i++)
	{
		form.ARCH_Category_List.options[i] = new Option(oSource.options[i].text, oSource.options[i].value);
	}
}


//-->

