  jq14(function(){
  
  var newWin; 
  var id;
    
    function openWindow(w, h, uri)
    {
      windowleft = (screen.width - w)/2;
      windowtop = (screen.height - h)/2;
      settings = '"toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,status=yes,location=no,width='+w+',height='+h+',left='+windowleft+',top='+windowtop+'"';
      closeWindow();
      
      newWin = window.open(uri,'myForm',settings);

      newWin.focus(); 
      
      return newWin;   
    };
    
    
    function closeWindow()
    {
      if (newWin && !newWin.closed) {newWin.close();};
    };
  
  jq14(document).ready(function() {
    jq14("body").delegate("a.popup_print", 'click', function(i){
      newWin = openWindow(1024, 600, jQuery(this).attr('href'));       
      return false;
    });
    jq14("body").delegate("a.popup_service", 'click', function(i){
      newWin = openWindow(700, 500, jQuery(this).attr('href'));
      return false;
    });
  });
});
