function Element(element){
return document.getElementById(element);
}
function killElement(param){
var elem = document.getElementById(param);
if (elem)
elem.parentNode.removeChild(elem);
}
function load_lang(){
var handler_load_lang = function(data){
array_lang = data;
};
cExecute("$this.bo_userinterface.getLang",handler_load_lang);
}
function write_msg(msg) {
var msg = '
| '+msg+' | |
---|
';
var divAppboxHeader = document.getElementById("divAppboxHeader");
divAppboxHeader.innerHTML = msg;
setTimeout("Element('divAppboxHeader').innerHTML = ''", 5000);
}
function write_errors(msg_errors) {
alert(msg_errors.replace(/
/gi, "\n"));
}
function activity_icon(type, is_interactive) {
switch(type)
{
case 'activity':
ic = "mini_" + ((is_interactive == 'y') ? 'blue_' : '') + "rectangle.gif";
break;
case 'switch':
ic = "mini_" + ((is_interactive == 'y')? 'blue_':'') + "diamond.gif";
break;
case 'start':
ic = "mini_" + ((is_interactive == 'y')? 'blue_':'') + "circle.gif";
break;
case 'end':
ic = "mini_" + ((is_interactive == 'y')? 'blue_':'') + "dbl_circle.gif";
break;
case 'split':
ic = "mini_" + ((is_interactive == 'y')? 'blue_':'') + "triangle.gif";
break;
case 'join':
ic = "mini_" + ((is_interactive == 'y')? 'blue_':'') + "inv_triangle.gif";
break;
case 'standalone':
ic = "mini_" + ((is_interactive == 'y')? 'blue_':'') + "hexagon.gif";
break;
default:
ic = "no-activity.gif";
}
var result = '';
return result;
}
function get_icon(img_name, title, attributes)
{
if (attributes == null) {
attributes = '';
}
return "";
}
function get_link(link,text,attributes)
{
if (attributes == null) {
attributes = '';
}
return "" + text + "";
}
function _checkError(data)
{
if (data['error'])
{
alert(data['error'].replace(/
/gi, "\n"));
if (data['url'])
window.location = data['url'];
return true;
}
return false;
}