// -----------------------------------
// :::::::: Core JS Library ::::::::::
// -----------------------------------
// This Javascript library contains
// all of the JS functions that are
// used throughout the site. Some
// of these functions call JQuery
// related bits of code.
// -----------------------------------


//==============================
//::::::: openJQDialog(str,int,bool,bool,str) 
//------------------------------
//This function opens up a
//a jquery dialog with defined
//options.
//==============================
function openJQDialog(d_title, d_width, bool_is_modal, bool_to_top, content) {
	$("#W_DIALOG").dialog({ //Initialize the dialog.
		autoOpen:false,
		modal: bool_is_modal,
		width: d_width,
		title: d_title
	});
	if (bool_to_top) {window.scrollTo(0,0);} //If we want the user to be scrolled to the top before we show the dialog.
	$("#W_DIALOG").html(content); //Load the content of the dialog.
	$("#W_DIALOG").dialog("open"); //Open the dialog
}
