function GCM_GET_OBJECT(o){
res=false;
if(o)res=document.getElementById(o);
return(res);
}

function GCM_GET_OBJECT_WINDOW(o){
res=false;
if(o)res=w+document.getElementById(o);
return(res);
}

function GCM_FLIP_VISIBILITY(n){
if(n=GCM_GET_OBJECT(n)){

if(n.style.display=="none"){
n.style.display="block";}else{
n.style.display="none";}
}
}

var CurrentTextInput=false;

function get_absolute_left(a){
res=a.offsetLeft;
while (a.offsetParent){
res+=a.offsetParent.offsetLeft;
a=a.offsetParent;
}
return (res);
}

function get_absolute_top(a){
res=a.offsetTop;
while (a.offsetParent){
res+=a.offsetParent.offsetTop;
a=a.offsetParent;
}
return (res);
}

function selectTextInput(){
if(CurrentTextInput = document.body.createTextRange()){
CurrentTextInput.moveToPoint(window.event.x,window.event.y);
CurrentTextInput.select();
}else{CurrentTextInput=false;}
}

function setTextInput(text){
if (CurrentTextInput != null){
CurrentTextInput.text=text;
}

}
