#!/usr/bin/perl
# TexasDDFAtlas.pl
# Uses Pull-Down Menu  

use warnings;
use strict;
use CGI qw( :standard );

my $ari = param( "ari" );
my $duration = param( "duration" );

print header(), start_html( 'MenuSelect Example' );

# use if to select map from database, render as image direct to browser

######## 2yr ############################

if( ($ari== "2yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-15min.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-30min.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-1hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-2hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-3hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-6hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-12hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-24hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-48hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-72hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-120hour.jpg" > ' );
}

if( ($ari== "2yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-2yr-168hour.jpg" > ' );
}
###################################################################

######## 5yr ############################

if( ($ari== "5yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-15min.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-30min.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-1hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-2hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-3hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-6hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-12hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-24hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-48hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-72hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-120hour.jpg" > ' );
}

if( ($ari== "5yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-5yr-168hour.jpg" > ' );
}
###################################################################

######## 10yr ############################

if( ($ari== "10yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-15min.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-30min.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-1hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-2hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-3hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-6hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-12hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-24hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-48hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-72hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-120hour.jpg" > ' );
}

if( ($ari== "10yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-10yr-168hour.jpg" > ' );
}
###################################################################

######## 25yr ############################

if( ($ari== "25yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-15min.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-30min.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-1hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-2hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-3hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-6hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-12hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-24hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-48hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-72hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-120hour.jpg" > ' );
}

if( ($ari== "25yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-25yr-168hour.jpg" > ' );
}
###################################################################


######## 50yr #####################################################

if( ($ari== "50yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-15min.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-30min.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-1hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-2hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-3hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-6hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-12hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-24hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-48hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-72hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-120hour.jpg" > ' );
}

if( ($ari== "50yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-50yr-168hour.jpg" > ' );
}
###################################################################

######## 100yr #####################################################

if( ($ari== "100yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-15min.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-30min.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-1hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-2hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-3hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-6hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-12hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-24hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-48hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-72hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-120hour.jpg" > ' );
}

if( ($ari== "100yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-100yr-168hour.jpg" > ' );
}
###################################################################

######## 250yr #####################################################

if( ($ari== "250yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-15min.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-30min.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-1hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-2hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-3hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-6hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-12hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-24hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-48hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-72hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-120hour.jpg" > ' );
}

if( ($ari== "250yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-250yr-168hour.jpg" > ' );
}
###################################################################


######## 500yr #####################################################

if( ($ari== "500yr") && ($duration == "0.25") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-15min.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "0.50") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-30min.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "1.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-1hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "2.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-2hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "3.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-3hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "6.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-6hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "12.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-12hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "24.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-24hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "48.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-48hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "72.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-72hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "120.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-120hour.jpg" > ' );
}

if( ($ari== "500yr") && ($duration == "168.00") )
{
print p( '<img src = "http://www.rtfmps.com/mytoolbox-server/
TexasDDFAtlas/maps/DDF-500yr-168hour.jpg" > ' );
}
###################################################################


end_html();

##################################################################
# end of script
# scraps
#print p('<p><a href="http://www.rtfmps.com/mytoolbox-server/
#TexasDDFAtlas/maps/DDF-2yr-15min.jpg"> 2yr, 15 minute, DDF Map </a></p>');