<!--//

// FORM FIELD CHARACTER LIMITER
var ns6=document.getElementById&&!document.all

function restrictinput(maxlength,e,placeholder){
if (window.event&&event.srcElement.value.length>=maxlength)
return false
else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){
var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys
if (pressedkey.test(String.fromCharCode(e.which)))
e.stopPropagation()
}
}

function countlimit(maxlength,e,placeholder){
var theform=eval(placeholder)
var lengthleft=maxlength-theform.value.length
var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder)
if (window.event||e.target&&e.target==eval(placeholder)){
if (lengthleft<0)
theform.value=theform.value.substring(0,maxlength)
placeholderobj.innerHTML=lengthleft
}
}


function displaylimit(thename, theid, thelimit){
var theform=theid!=""? document.getElementById(theid) : thename
var initial_length=parseInt(eval(thename).value.length);
var limit_text='You have <b><span id="'+theform.toString()+'">'+(thelimit-initial_length)+'</span></b> characters to work with';
if (document.all||ns6)
document.write(limit_text);
if (document.all){
eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)}
eval(theform).onclick=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onclick=function(){ countlimit(thelimit,event,theform)}
eval(theform).onfocus=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onblur=function(){ countlimit(thelimit,event,theform)}
}

else if (ns6){
document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); 
document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true); 
document.body.addEventListener('focus', function(event) { restrictinput(thelimit,event,theform) }, true); 
document.body.addEventListener('blur', function(event) { countlimit(thelimit,event,theform) }, true); 

}
}
//-->
<!--

// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
//document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// QUESTION FORM

// Main function to retrieve mouse x-y pos.s
function show_details(e,eaid) {

  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX;
    tempY = e.pageY;
  }

  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  

//	ALTER POSITION AND SHOW
var qform=document.getElementById("details").style  
  //	SET X/Y POSITION
  	qform.left = tempX+'px';
	qform.top = tempY+'px';
	qform.visibility= 'visible';
	Ajax_page('user_details.php?id='+eaid, 'details_window');

var details=false;
if(!details){
	details=setTimeout('close_details()',6000);
	}
}

function close_details(){
var qform=document.getElementById("details").style
	qform.visibility= 'hidden';
//	clearTimeout(details);
}

function getWindowWidth() {
		var windowWidth = 0;
		if (typeof(window.innerWidth) == 'number') {
			windowWidth = window.innerWidth;
		}
		else {
			if (document.documentElement && document.documentElement.clientWidth) {
				windowWidth = document.documentElement.clientWidth;
			}
			else {
				if (document.body && document.body.clientWidth) {
					windowWidth = document.body.clientWidth;
				}
			}
		}
		return windowWidth;
	}

function getWindowHeight() {
		var windowHeight = 0;
		if (typeof(window.innerHeight) == 'number') {
			windowHeight = window.innerHeight;
		}
		else {
			if (document.documentElement && document.documentElement.clientHeight) {
				windowHeight = document.documentElement.clientHeight;
			}
			else {
				if (document.body && document.body.clientHeight) {
					windowHeight = document.body.clientHeight;
				}
			}
		}
		return windowHeight;
}	

//-->