var dragobject={
z: 0, x: 0, y: 0, offsetx : null, offsety : null, targetobj : null, dragapproved : 0,
initialize:function(){
document.onmousedown=this.drag
document.onmouseup=function(){this.dragapproved=0}
},

drag:function(e){
 var evtobj=window.event? window.event : e
 this.targetobj=window.event? event.srcElement : e.target
  moveObj = document.getElementById (this.targetobj.id+"1");
if (this.targetobj.className=="drag"){
this.dragapproved=1
if (isNaN(parseInt(moveObj.style.left))){moveObj.style.left=0}
if (isNaN(parseInt(moveObj.style.top))){moveObj.style.top=0}
this.offsetx=parseInt(moveObj.style.left)
this.offsety=parseInt(moveObj.style.top)
this.x=evtobj.clientX
this.y=evtobj.clientY
if (evtobj.preventDefault)
evtobj.preventDefault()
document.onmousemove=dragobject.moveit
}
},
moveit:function(e){
var evtobj=window.event? window.event : e
if (this.dragapproved==1){
moveObj.style.left=this.offsetx+evtobj.clientX-this.x+"px"
moveObj.style.top=this.offsety+evtobj.clientY-this.y+"px"
return false
}
}
}
dragobject.initialize()
function openphwindow(location,sWidth,sHeight,phN)
{
   slph = phN; 
   winLeft = (screen.width-sWidth)/2;
   winTop = (screen.height-sHeight)/2;
   window.open( location ,"ForteGamesPh","width="+sWidth+",height="+sHeight+",left="+winLeft+",top="+winTop+",directories=no,menubar=no,location=no,scrollbars=no,resizable=no,status=0");
}
function hideMe(nm) {
 document.getElementById(nm).style.display = 'none';
}
 function sPass(nFnc) {
   var btnS = document.getElementById('btnSPass');
   btnS.disabled=true;
   var frm = document.pssForm;
   var sBody =getRequestBody(frm);
   setTimeout((function() {btnS.disabled=false; }),5000);   
   httpRequest('sPass.php',sBody,nFnc);
   return false;
 }
