if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")


function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
	target.style.MozUserSelect="none"
else //All other route (ie: Opera)
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}





function getHeight()
{
	if(typeof(window.innerHeight) == 'number') return window.innerHeight; //Non-IE
	else if(document.documentElement && document.documentElement.clientHeight) return document.documentElement.clientHeight; //IE 6+ in 'standards compliant mode'
	else if(document.body && document.body.clientHeight) return document.body.clientHeight; //IE 4
}
function getWidth()
{
	if(typeof(window.innerWidth) == 'number') return window.innerWidth; //Non-IE
	else if(document.documentElement && document.documentElement.clientWidth) return document.documentElement.clientWidth; //IE 6+ in 'standards compliant mode'
	else if(document.body && document.body.clientWidth) return document.body.clientWidth; //IE 4
}
function pleaseWaitMsg()
{
	var pw=document.getElementById('divLoading').style;
	pw.top=(getHeight()/2 - parseInt(pw.height)/2 - (50))+'px';
	pw.left=(getWidth()/2 - parseInt(pw.width)/2)+'px';
	pw.display='block';
}



