anchor.diff:  	    whatever)))
     (redirect "/setthemcookies"))
   
  -(defun find-invoice-from-cookie (invoice-string)
  -  (if (not (string= "none" invoice-string))
  -  (let* ((magic-number (search "-" invoice-string))
  -	 (showname (subseq invoice-string 0 magic-number))
  -	 (setname (subseq invoice-string (+ magic-number 1)))
  -	 (temp-invoice (make-instance 'invoice :show-name showname
  -				      :set-name setname)))
  -    (find-invoice-from-invoice temp-invoice))))
  -    
  -(defun move-image-to-invoice-dir (img-data)
  -  (let* ((current-invoice (find-invoice-from-cookie (cookie-in "current-invoice")))
  -	 (invoice-location (invoice-root-dir current-invoice))
  -	 (temp-image-directory "/tmp/")
  -	 (image-name (third img-data)))
  -    (cl-fad:copy-file (make-pathname :directory temp-image-directory
  -				     :name image-name)
  -		      (make-pathname :directory invoice-location
  -				     :name image-name))))
  -
  +;;;Current solution to being able to refresh pages without putting data in the URI
  +;;;May need to start putting data in the URI but the function works pretty decently already.
   (define-easy-handler (pre-set-cookies :uri "/pre-set-cookies") ()
     (set-cookie "current-invoice" :value (concatenate 'string (hunchentoot:post-parameter "showname")
   						    "-"
   						    (hunchentoot:post-parameter "setname")))
     (redirect "/setthemcookies"))
   
  +;;;Adds an item from the additem panel on the write order page
  +;;;Absolutely needs javascript to test for the following conditions
  +;;;Empty input boxes;  Invalid input; and removing the pdf glitch
   (define-easy-handler (add-item :uri "/additem") ()
     (let* ((invoice (find-invoice-from-cookie (cookie-in "current-invoice")))
   	 (description (hunchentoot:post-parameter "input-item-description"))
  
positive.code:       (standard-page (:title (concatenate 'string "Check in: " showname "-" setname))
  	(standard-navbar)
  	(standard-check-in :invoice invoice))))
          
  (define-easy-handler (createpdf :uri "/createpdf") ()
    (let* ((invoice (find-invoice-from-cookie (cookie-in "current-invoice")))
  	 (root-dir (invoice-root-dir invoice)))
      (generate-latex invoice root-dir))
    (redirect "/setthemcookies"))
  
  (define-easy-handler (createpdf2 :uri "/createpdf2") ()
    (let* ((invoice (find-invoice-from-cookie (cookie-in "current-invoice")))
  	 (root-dir (invoice-root-dir invoice)))
  
negative.code:     (standard-dashboard :messages (standard-global-messages)))
    (redirect "/login"))))
  
  ;;;This function needs to be redone.  Currently it takes the post parameters of the item
  ;;;associated with an invoice and finds which item it is in the itemlist;  current date needs to be fixed
  (define-easy-handler (check-in-item :uri "/check-in-item") ()
    (let* ((invoice (find-invoice-from-cookie (cookie-in "current-invoice")))
  	 (item-desc (hunchentoot:post-parameter "item-desc"))
  