var msg=""
var count=1
var dtCh= "/";
var minYear=1900;
var maxYear=2100;
var winCust=null;
var currObj = null;
var actObj = null;
var count=0;
var timer=0;

function getObj(name){
if (document.getElementById){
this.obj = document.getElementById(name);
this.style = document.getElementById(name).style;
}else if (document.all){
this.obj = document.all[name];
this.style = document.all[name].style;
}else if (document.layers){
this.obj = getObjNN4(document,name);
this.style = this.obj;
}
}

function getObjNN4(obj,name){
var x = obj.layers;
var thereturn;
for (var i=0;i<x.length;i++){
if (x[i].id == name)
thereturn = x[i];
else if (x[i].layers.length)
var tmp = getObjNN4(x[i],name);
if (tmp) thereturn = tmp;
}
return thereturn;
}

function fn_logout(){
var theForm=document.logout_frm;
theForm.submit();
}

function fnPreview(page,w,h,scroll,pos,res){
if(winCust!=null){
if(!winCust.closed){
winCust.close()
}
winCust=null
}
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable='+res;
winCust=window.open(page,'',settings,false);
winCust.creator=self
}

function fnClosePreWin(){
if(winCust!=null){
if(!winCust.closed){
winCust.close()
}
winCust=null
}
}