/*
# $Id$
*/

//-------------------------------
// VOID EXNT_recruit_openSelector( args )
//--
// OBJECT args	= Object containg name=value argument pairs (MUST include the 'fn' argument)
//--
// Opens a popup window containg the job category selector.
// The 'args' variable MUST contain at least the name of
// the application function ('fn'). Other arguments:
//	ot	- Type of folder-object to display ('recjobcategory' or 'reclocation')
//	csf	- 'can select folders'. If TRUE then folder objects can be selected.
//	hf	- 'hide folders'. If TRUE then the folders will not be displayed in the main window, but the dropdown will still be shown.
//	skills	- if TRUE and ot==recjobcategory then the popup will display all skills associated with each category.
//	quals	- If TRUE and ot==recjobcategory then the popup will display all qualifcations associated with each category.
//	discs	- If TRUE and ot==recjobcategory then the popup will display all disciplines associated with each category.
//-------------------------------
function EXNT_recruit_openSelector(args) {

	// Vars
	var features = 'width=550,height=420';
	var win_name = 'EXNT_RecruitSelector';

	// Check for required arguments
	if(args.fn==null) {
		alert("Invalid Argument:\n- You must provide an application function name");
		return;
	}

	// Open window
	var url = EXNT_genHREF('recruit', 'selector', args);
	var win = openPopupWindow(url, 550, 420, [], win_name);
	win.focus();
}

//-------------------------------
// VOID EXNT_recruit_openUserSelector( args )
//--
// OBJECT args	= Object containg name=value argument pairs (MUST include the 'fn' argument)
//--
// Opens a popup window containg the client/candidate selector.
// The 'args' variable MUST contain at least the name of
// the application function ('fn').
//-------------------------------
function EXNT_recruit_openUserSelector(args) {

	// Vars
	var features = 'width=550,height=420';
	var win_name = 'EXNT_RecUserSelector';

	// Check for required arguments
	if(args.fn==null) {
		alert("Invalid Argument:\n- You must provide an application function name");
		return;
	}

	// Open window
	var url = EXNT_genHREF('recruit', 'selectUser', args);
	var win = openPopupWindow(url, 550, 420, [], win_name);
	win.focus();
}

//-------------------------------
// VOID EXNT_recruit_openFilterSelector( args )
//--
// OBJECT args	= Object containg name=value argument pairs (MUST include the 'fn' argument)
//--
// Opens a popup window containg the application filter selector.
// The 'args' variable MUST contain at least the name of
// the application function ('fn').
//-------------------------------
function EXNT_recruit_openFilterSelector(args) {

	// Vars
	var features = 'width=550,height=420';
	var win_name = 'EXNT_RecAppFilterSelector';

	// Check for required arguments
	if(args.fn==null) {
		alert("Invalid Argument:\n- You must provide an application function name");
		return;
	}

	// Open window
	var url = EXNT_genHREF('recruit', 'selectAppFilter', args);
	var win = window.open(url, win_name, features);
	win.focus();
}