// JavaScript Document

// javascript for Link objects

// type 4
// ask for confirmation and if so, dan pass link to GetData
function LinkConfirm (title, dataSource, target, get, noloader, Focus, help, updatecheck) {
	var answer = confirm(title);
	if(answer) {
		if(dataSource) {
			GetData(dataSource, target, get, noloader, Focus, help, updatecheck);
		}
	} else {
		return false;
	}
}

// Get Link Object Type uses this method
function GetDataLink(dataSource, divID, get, noloader, Focus, Help, UpdateCheck) {
	// use jquery
	AjaxEvent({
		url: dataSource,
		element: divID,
		data: get,
		noloader: noloader,
		setFocus: Focus,
		setHelp: Help,
		UpdateCheck: UpdateCheck
	});
}
