﻿<!--
function clockon() {
  thistime= new Date(); 
  var hours=thistime.getHours(); 
  var minutes=thistime.getMinutes(); 
  var seconds=thistime.getSeconds(); 
  if (eval(hours) <10) hours="0"+hours;
  if (eval(minutes) < 10) minutes="0"+minutes;
  if (seconds < 10) seconds="0"+seconds;
  thistime = hours+":"+minutes+":"+seconds; 
  td = "lblTime";
  var lbl = document.getElementById? document.getElementById(td):document.all?document.all[td]:document.layers[td]; 
  if(lbl != null) lbl.innerHTML = thistime ;   
  var timer=setTimeout("clockon()",200);
}
  
function printPage(elementId){ 
    var printContent = document.getElementById? document.getElementById(elementId):document.all?document.all[elementId]:document.layers[elementId];
    var windowUrl = 'IKBC Customers Report';
    var uniqueName = new Date();
    var windowName = 'Print' + uniqueName.getTime();
    var printWindow = window.open(windowUrl, windowName, 'left=0,top=0,width=850,scrollbars=1,menubar=0,height=700');
    printWindow.document.write('<div dir="rtl">'+printContent.innerHTML.replace("printPage('PrintArea')","javascript:window.print();")+'</div>');
    printWindow.document.close();
    printWindow.focus();
}
// -->
