function cc_open() {
  window.open('/video/index.htm','mycam','width=320,height=240')
}

function local_open() {
  window.open('/video/local.htm','mycam','width=320,height=240')
}

function map_open() {
  window.open('/info/map.htm','mycam','width=360,height=730')
}

function ow_acc(name){
  win = window.open(name,'Window'+new Date().getTime(),'status=no,width=400,height=450,left=10,top=10,scrollbars=yes,resizable=yes ');
  win.focus();
}

function ow_invoice(name){
  win = window.open(name,'INVOICE','status=no,width=650,height=400,left=10,top=10,scrollbars=yes,resizable=yes ');
  win.focus();
}

function ow_jobcard(name){
  winjob = window.open(name,'JOBCARD','status=no,width=650,height=400,left=10,top=10,scrollbars=yes,resizable=yes ');
  winjob.focus();
}

function ow_invoicepicture(name){
  winjob = window.open(name,'ow_invoicepicture','status=no,width=650,height=400,left=10,top=10,scrollbars=yes,resizable=yes ');
  winjob.focus();
}

function ow_customer(name){
  win = window.open(name,'CUSTOMER','status=no,width=750,height=600,left=10,top=10,scrollbars=yes,resizable=yes ');
  win.focus();
}

function openhelp(){
  window.open('/popups/searchhelp.php','Help','width=320,height=6480,left=10,top=10,scrollbars=yes,resizable=yes');
  window.focus();
}

function blink(){
  if (document.getElementById('wait_id').style.color=='red'){
    document.getElementById('wait_id').style.color='black';
    interval=400
  }else{
    document.getElementById('wait_id').style.color='red';
    interval=400
  }
  if (document.getElementById('wait_id').style.display!='none') window.setTimeout('blink()',interval);
}
