function goto(url){
	location.replace(url)
}

function popupWin(url, name, w, h, links, location, menu, scroll, status, toolbar, resize) {

      if (document.all)
        var xMax = screen.width, yMax = screen.height;
      else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - w)/2, yOffset = (yMax - h)/2;


      winStats='height='+h+',width='+w+',status='+status+',toolbar='+toolbar+',menubar='+menu+',location='+location+',scrollbars='+scroll+',directories='+links+',resizable='+resize;
   if (navigator.appName.indexOf("Microsoft")>=0) {
      winStats+=',left='+xOffset+',top='+yOffset

    }else{
      winStats+=',screenX='+xOffset+',screenY='+yOffset
    }

    popWin=window.open(url,name,winStats)
    popWin.focus();
}

function closeWindow(url){
	opener.location.replace(url)
	window.close();
}

function showDate(){
   var d, s, st, dt									//Declare variables.
   d = new Date();                          //Create Date object.
   s = d.getDate() + "/";                  //Get day
   s += (d.getMonth() + 1) + "/";           //Get month
   s += d.getYear() + " ";                  //Get year.
   s += d.getHours() + ":";                 //Get hour.
   s += d.getMinutes() + ":";               //Get minute.
   s += d.getSeconds();                     //Get second.
   dt = new Date(); 
   dt.setTime(dt.getTime() - 4 * 60 * 60 * 1000);
   st = dt.getDate() + "/";                  //Get day
   st += (dt.getMonth() + 1) + "/";           //Get month
   st += dt.getYear() + " ";                  //Get year.
   st += dt.getHours() + ":";                 //Get hour.
   st += dt.getMinutes() + ":";               //Get minute.
   st += dt.getSeconds();                     //Get second.
                  
//   document.frm.datetime.value=s;
//   document.frm.datetimet.value=st;
}

//window.setInterval("showDate()",200);

function highLightRow(obj, theColor) {
  obj.style.backgroundColor=theColor;
  obj.style.cursor="hand";
}

function unHighLightRow(obj, theColor) {
  obj.style.backgroundColor=theColor;
}