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();
	}


jQuery(document).ready( function () {
																	
	//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();
	//});

});	
