/**********************************************************
***********************************************************
*  Copyright 2004 (c) Aumediage S.P.R.L. All Rights Reserved.								*
*  This is a commercial software product, please visit												*
*  http://www.aumediage.net for more information. or send email to					*
*  aumediage@hotmail.com																						*
*  See http://www.aumediage.net for Commercial License Agreement				*
*  All Copyright statements must always remain in place in all files at all times	*
*		***** PLEASE NOTE: THIS IS NOT FREE SOFTWARE	*****						*
*				*****	IT MUST BE LICENSED FOR ALL USE	*****								*
*  HISTORY																												*
*	Name			Date							Action											Version			*
*	GdB				27/06/2003			Creation										1.00					*
*																																	*
************************************************************
***********************************************************/

/******************************************************
var g_sUrl			= document.location.href;
var g_sHostName		= g_sUrl.substring(0,g_sUrl.indexOf("/", 10));

var g_isFormModified	= false;
var g_sHrefPath		= '/';
var g_sImagePath	= g_sHrefPath + 'pix/';
var g_sDomain		= 'aumediage.be';
var g_dFormat		= 'dd mm yyyy';*/
/********************************************************
DISABLE RIGHT CLICK
********************************************************/
function click() { 
  if (event.button == 2) alert("right-click disabled."); 
} 
//document.onmousedown = click;

document.oncontextmenu = DisableContextMenu;
function DisableContextMenu(){
	if(document.location.href.indexOf('.devloc.') == -1){
		return false;
	}
}
/********************************************************
CREATE GENERIC GUID IN CASE WE NEED IT
********************************************************/
var g_GUID = 0;

function getGuid(){
	return ++g_GUID;
}
/********************************************************
ADD ONLOAD EVENT TO THE PAGE
********************************************************/
var g_aryWindowOnload = new Array();
function runWindowOnload(__Ok){
	if (__Ok){
		for (var i = 0; i< g_aryWindowOnload.length ; i++){
			eval (g_aryWindowOnload[i]);
		}
	}
	else{
		window.setTimeout('runWindowOnload(true)', 1000);
	}
}
window.onload = runWindowOnload;
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function addWindowOnload(sToExecute){
	g_aryWindowOnload[g_aryWindowOnload.length] = sToExecute;
}
/********************************************************
ADD ONRESIZE EVENT TO THE PAGE
********************************************************/
var g_aryWindowOnResize = new Array();
function runWindowOnResize(){
	for (var i = 0; i< g_aryWindowOnResize.length ; i++){
		eval (g_aryWindowOnResize[i]);
	}
}
window.onresize = runWindowOnResize;
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
function addWindowOnResize(sToExecute){
	g_aryWindowOnResize[g_aryWindowOnResize.length] = sToExecute;
}
/********************************************************
get the message text
********************************************************/
function getCommonVoc (iCommonVocID){
	//alert(aryCommonVoc)
	//if (!aryCommonVoc){
	//	aryCommonVoc_LU = new Array();
	//	aryCommonVoc = new Array();
	//}
	//for (i = 0; i<aryCommonVoc_LU.length ; i++){
	//	if (aryCommonVoc_LU[i].indexOf("@"+iCommonVocID+"@") != -1){
	//		return aryCommonVoc[i]
	//	}
	//}
	return "Missing Translation";
}
/**********************************************************
***********************************************************
*  Copyright 2004 (c) Aumediage S.P.R.L. All Rights Reserved.								*
*  This is a commercial software product, please visit												*
*  http://www.aumediage.net for more information. or send email to					*
*  aumediage@hotmail.com																						*
*  See http://www.aumediage.net for Commercial License Agreement				*
*  All Copyright statements must always remain in place in all files at all times	*
*		***** PLEASE NOTE: THIS IS NOT FREE SOFTWARE	*****						*
*				*****	IT MUST BE LICENSED FOR ALL USE	*****								*
*																																	*
************************************************************
***********************************************************/
