// JavaScript Document

var sessionid = 'REVkeMBCadPsbaIFJGODPxhQKejZTjFtixd';
var SUBsessionid = '';
var UIDsessionid = 'ba1d64f4b0';
var ThemeName = 'Qlogos2';
var isUSER = '0';
var UniquePage = 'UNIQUE_PAGE';
function nolink() {
	return true;
}

var SMD = new Array();
function PopUpWindow(url,name,w,h,r,s,mod) { 
	var nname = name+"FJGODPxhQKejZTjFtixd_PopUp";
	var SIWnd = window.open(url + '&modalspopup=1',name+"FJGODPxhQKejZTjFtixd_PopUp","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable="+r+",scrollbars="+s+",width="+w+",height="+h+"");
	SMD[nname] = SIWnd;
	if (SIWnd.focus != null) SIWnd.focus();
	SIWnd.opener.name = name + SUBsessionid;
}
var remotehelp=null;
function rshelp(id) {
	var url = "./data.php?crt=1&sessionid=REVkeMBCadPsbaIFJGODPxhQKejZTjFtixd&mod=Help&access=view&mode=tips&id="+id;
	remotehelp=window.open(url,"WINDOWHELP_FJGODPxhQKejZTjFtixd","width=505,height=435,status=0,resizable=yes,scrollbars=yes");
	if (remotehelp != null) {
	if (remotehelp.opener == null)
		remotehelp.opener = self;
	}
	remotehelp.focus();
}
function SI_confirm(e) {
	var actlabel = e.value ? e.value : (e.title ? e.title : e.alt);
	ans=window.confirm("You are about to "+actlabel+". Do you realy want to continue?");
	if (ans) {
		return true;
	} else {
		return false;
	}
}
function wvd(str) {
	alert(str);
}
function checkAllProperties() {
	var c = 0;
	for (i in SMD) {
		if (SMD[i] && SMD[i].open && !SMD[i].closed && SMD[i].focus != null) { SMD[i].focus(); c++; }
	}
	return (c>0) ? false : true;
}
window.onunload = function() {
	var is_reload_child = 0;
	for (i in SMD) {
		if (SMD[i] && SMD[i].open && !SMD[i].closed) {
			if(SMD[i].is_reload || SMD[i].is_reload_parent) {
				is_reload_child = 1;
			}
		}
	}
	if(is_reload_child == 0) {
		for (i in SMD) {
			if (SMD[i] && SMD[i].open && !SMD[i].closed) { SMD[i].close(); }
		}
	}
}
window.onfocus = function() {
	return checkAllProperties();
}
window.onclick = function() {
	return checkAllProperties();
}
window.onblur = function() {
	if(window.opener) {
		if(window.opener.SMD[window.name]) {
		} else {
			window.opener.SMD[window.name] = window;
			window.opener.SMD[window.name].focus();
		}
	}
}
function _setPos(e) {
	window.x = e.pageX;
	window.y = e.pageY;
}
if (!document.all) {
	document.onmousedown = _setPos;
}
function pointerPosition(e) {
	if (!e) var e = window.event;
	if (document.all) {
		this.x = window.screenLeft + event.x;
		this.y = window.screenTop + event.y;
	} else {
		this.x = window.screenX + window.x;
		this.y = window.screenY + window.y;
	}
}
