<?/*
Copyright (C) 2003 Media Net Link, Inc. Danville, CA 94526 USA

This file is part of AthenaRMS.

AthenaRMS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

AthenaRMS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/?>
<?php
  require_once 'db.php';
  require_once 'template.php';
  require_once 'crm.php';
  require_once 'server_functions.php';

  globalize_request_keys('subject', 'email', 'first_name', 'company',
    'last_name', 'work_phone', 'comments');

  $crm = new Crm ();

  $crm_id = $crm->CRM_ID_By_Host_Path ();

  if (!$crm_id) {
    print "<html>Unable to determine client, please contact your AthenaRMS admin.</html>";
    exit;
  }

  $crm_rec = $crm->Select_by_CRM_ID ($crm_id);

  global $REMOTE_USER_CRM_ID;
  $REMOTE_USER_CRM_ID = $crm_id;

  $template = new Template ();

  require $template->load('input_form.php');
?>
