function calculateTotal() {
//var txt_gst_tax = 0;
//var txt_pst_tax = 0;
	var intSubTotal = 0;	// txt_subtotal
	var intTotal 		= 0;

	//Check Radio Buttons on something
	for (i = 0; i < radEvent.length; i++) {
		if (radEvent[i].checked && radEvent[i].value == "Forfait 1") {
			(selFunction == "Active" || selFunction == "something")? intRadEvent = 585 : intRadEvent = 385; }
		else if (radEvent[i].checked && radEvent[i].value == "Forfait 2") {
			intRadEvent = 275; }
		else if (radEvent[i].checked && radEvent[i].value == "Forfait 3") {
			intRadEvent = 375; }
	}

	//Calculate Sub Total
	intSubTotal	 = (intRadEvent + intRadEventComp);

	//Taxes
//	txt_gst_tax = (intSubTotal * 0.05);
//	txt_pst_tax = (intSubTotal + txt_gst_tax) * 0.075;

	//Calculate Total
	intTotal = intSubTotal; // + txt_gst_tax + txt_pst_tax;

	//Fill in calculated fields
//	jQuery("#txt_subtotal").val('$' + intSubTotal.toFixed(2));
//	jQuery("#txt_gst_tax").val('$' + txt_gst_tax.toFixed(2));
//	jQuery("#txt_pst_tax").val('$' + txt_pst_tax.toFixed(2));
	jQuery("#txt_total").val(intTotal + '$');

}



function showLoaderGraphic(thisID) {
		jQuery("#loadingGIF").removeClass("hidden");
		$("#loadingGIF ~ input").remove();
	}



	//Set up Tiny MCE textarea elements
	jQuery('textarea.tinymce').tinymce({
		script_url : 'lib/js/tiny_mce/tiny_mce.js',
		theme : "advanced",
		plugins : "advhr,advlink,insertdatetime,layer,nonbreaking,noneditable,paste,searchreplace,visualchars,xhtmlxtras",
		theme_advanced_buttons1 : "pasteword,|,link,unlink,anchor,|,cleanup,code,|,undo,redo,|,charmap,advhr,nonbreaking,|,forecolor,backcolor",
		theme_advanced_buttons2 : "bold,italic,underline,strikethrough,removeformat,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,indent,|,sub,sup",
		theme_advanced_buttons3 : "",
		content_css : "skin/admin.css",
		gecko_spellcheck : "true",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : "bottom",
		plugin_insertdate_dateFormat : "%Y-%m-%d",
		plugin_insertdate_timeFormat : "%H:%M:%S",
		extended_valid_elements : "hr[class|width|size|noshade],span[class|align|style]",
		file_browser_callback : "fileBrowserCallBack",
		theme_advanced_resize_horizontal : false,
		theme_advanced_resizing : true,
		convert_fonts_to_spans : true,
		nonbreaking_force_tab : true,
		apply_source_formatting : false,
		force_p_newlines : true,
		relative_urls : false,
		convert_urls : false,
		remove_script_host : true
	});

	// STYLING for calculated fields
	//	jQuery("input[name=txt_acc_tax]").attr('readonly', true);

	// Update Total
	//jQuery("input[name=rad_event]").change(function(){
	//	calculateTotal();
	//});

	//------------------------------------------------------------------------------------------

	jQuery('.tooltip').tooltip({track: true, showURL: false, fade: 150, delay: 0, showBody: " | "});

/*
	//------------------------------------------------------------------------------------------

	jQuery('.inventory').click(function() {
		chkInventory(this);
	});
	jQuery('.inventory').change(function() {
		chkInventory(this);
	});

	function chkInventory(obj) {
		var thisObj = obj;
		var thisName = obj.name;
		var thisID = obj.id;
		var thisValue = obj.value;

		if (thisValue != '') {
			jQuery.ajax({
			    type: "GET",
			    url: "lib/getViaAjax.asp",
			    data: {'dataQueryType':'reg_option_quantity','var1':thisName,'var2':thisValue},
			    timeout: 3000,
			    success: function(data){
				    var response = jQuery(data).find("ajax_response").text();
					switch(response) {
						case "1":
							break;
						default:
						    if (jQuery('#'+thisID+':radio').length > 0) {
								jQuery('input[name='+thisName+']').each( function() {
								     this.checked = false;
								});
						    }
						    else {
								jQuery('select[name='+thisName+'] option:first').attr('selected', 'selected');
						    }
					}
				    chkOptionQuantity(thisObj, thisValue, response); //found in reg_validation_nn.js
			    },
			    error: function(XMLHttpRequest, textStatus, errorThrown){
				    switch(textStatus) {
					    case 'timeout':

						    if (jQuery('#'+thisID+':radio').length > 0) {
								jQuery('input[name='+thisName+']').each( function() {
								     this.checked = false;
								});
						    }
						    else {
								jQuery('select[name='+thisName+'] option:first').attr('selected', 'selected');
						    }

					    	break;
				    }
					jQuery("#oErrMsg_"+thisName).html(textStatus);
			    }
			});
		}

		return false;
	}

	//------------------------------------------------------------------------------------------
*/


