function swapStyle(obj, cls) {
  obj.className = cls
}

function displayDoc(FName){
  var DocWindow = window
  DocWindow = window.open('?cmd=ViewDoc&FName=' + FName ,"ViewDoc", "", true)
  DocWindow.focus()
}
function displayInfor(desc){

  var docElement = document.all['description']
  docElement.style.left = document.body.scrollLeft+event.x + 100

  docElement.style.top = document.body.scrollTop+event.y - 45
  docElement.innerHTML = desc
  if (desc == '')
    docElement.style.display = "none"
  else
    docElement.style.display = ""

}
function LoadURL(url,w,h,where)
{
  var DocWindow = window
  if(where=='center') {
   l = (screen.width	- w)/2
   t = (screen.height -h)/2
   }
 else{
 l=0;
 t=0;
 }
  var props = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,top=' + t + ',left=' + l + ',resizable=0,width=' + w + ',height=' + h + ';' ;
  DocWindow = window.open(url ,"", props);
  alert(url);
  DocWindow.focus();
}
function checkValue()
{
var RFrom = KingReport.Start.value;
var RTo =KingReport.ToResult.value;
if(RFrom!=''&&RTo!=''&&parseInt(RTo)>parseInt(RFrom))
self.navigate(KingReport.cmd.value + '&start=' + RFrom + '&ToResult=' + RTo);
else alert('Retype number of report ...');
return false;
}
