$(document).ready(function() {
   // do stuff when DOM is ready
   // use this to reset a single form   
   
$(function(){
    $('a.new-window').click(function(){
        window.open(this.href, "mywindow", "width=700, height=500, menubar=0, status=0, resizable=1, scrollbars=1");		
        	
		return false;
		
    });
	
	
	// print button only shown if the user has javascript
	$('div#print').append('<input name="print" value="Print" type="button" onclick="window.print()" />');
		
	// close button only shown if the user has javascript
	$('div#close').append('<input name="close" value="Close" type="button" onclick="window.close()" />');
	
	// hide back button if the user has javascript
	$('div#back').addClass('hide');
	
	// print button only shown if the user has javascript
	$('div#print').click(function(){
        $('div.print-preview').css('display', 'none');
    });
	
	
 });   
     
});


