/*
 * Created on 14-Sep-2004
 *
 * Class to hold various WSA schema related objects and SQL
 */
package uk.ac.roe.wfau;

import java.sql.Types;

import net.alanmaxwell.sql.WSASQLRetrieverThread;
import net.mar.Format;

/**
 * Class to hold various WSA HTML schema related objects 
 * 
 * @author mar
 * @version 1.0
 * 
 */
public class VSAHTMLSchema {
  public static final String headRow="#FFFFCC";
  public static final String oddRow="#FFDDDD";
  public static final String evenRow="#DDDDDD";
  public static final String baseURL="http://horus.roe.ac.uk/vsa/";
  public static final String tempDisk="/thoth/www/vsa/tmp/";
  public static final String baseJSPURL="http://horus.roe.ac.uk:8080/vdfs/";
  public static final String baseCGIURL="http://horus.roe.ac.uk/wsa/cgi-bin/";
  public static final String focusJS="&nbsp;<script language=\"JavaScript\" type=\"text/javascript\">\n<!-- \nwindow.focus(); \n//--> </script>\n";
  
  public static int getOutputFormat(String fmt) {
      
      if (fmt.equalsIgnoreCase("CSV"))
      {
        return WSASQLRetrieverThread.OUTPUT_CSV;
      }
      else

      if (fmt.equalsIgnoreCase("FITS"))
      {
		  return WSASQLRetrieverThread.OUTPUT_FITS;
	    }
      else
      if (fmt.equalsIgnoreCase("VOT"))
		            {
					 return  WSASQLRetrieverThread.OUTPUT_VOT;
	    }
	    else
      {
        return WSASQLRetrieverThread.OUTPUT_NONE;
      }
    }
  
  }


