"Alabama", "AK"=>"Alaska", "AZ"=>"Arizona", "AR"=>"Arkansas", "CA"=>"California", "CO"=>"Colorado", "CT"=>"Connecticut", "DE"=>"Delaware", "DC"=>"District of Columbia", "FL"=>"Florida", "GA"=>"Georgia", "HI"=>"Hawaii", "ID"=>"Idaho", "IL"=>"Illinois", "IN"=>"Indiana", "IA"=>"Iowa", "KS"=>"Kansas", "KY"=>"Kentucky", "LA"=>"Louisiana", "ME"=>"Maine", "MD"=>"Maryland", "MA"=>"Massachusetts", "MI"=>"Michigan", "MN"=>"Minnesota", "MS"=>"Mississippi", "MO"=>"Missouri", "MT"=>"Montana", "NE"=>"Nebraska", "NV"=>"Nevada", "NH"=>"New Hampshire", "NJ"=>"New Jersey", "NM"=>"New Mexico", "NY"=>"New York", "NC"=>"North Carolina", "ND"=>"North Dakota", "OH"=>"Ohio", "OK"=>"Oklahoma", "OR"=>"Oregon", "PA"=>"Pennsylvania", "RI"=>"Rhode Island", "SC"=>"South Carolina", "SD"=>"South Dakota", "TN"=>"Tennessee", "TX"=>"Texas", "UT"=>"Utah", "VT"=>"Vermont", "VA"=>"Virginia", "WA"=>"Washington", "WV"=>"West Virginia", "WI"=>"Wisconsin", "WY"=>"Wyoming", "Other"=>"Other" ); $found = array ( "1"=>"Your Advisor", "2"=>"Electronic Announcement or Web site", "3"=>"Career Planning/Job Placement", "4"=>"College or department staff member", "5"=>"Friend or previous REU student", "6"=>"Announcement on a bulletin board", "7"=>"Scientific journal or other publication", "8"=>"Other"); $clevel = array ( "1"=>"Freshman (Year 1 of 4)", "2"=>"Sophmore (Year 2 of 4)", "3"=>"Junior (Year 3 of 4, or 4 of 5)" ); $cityz = array ( "citizen"=>"United States Citizen", "resident"=>"Permanent Resident of the United States" ); $transcripts = array( 'college', 'major', 'from', 'to', 'degree', 'degreeDate' ) ; $references = array( 'ref', 'refCollege', 'refDept', 'refPhone', 'refEmail' ) ; $employment = array( 'jobDateFrom', 'jobDateTo', 'employerName', 'employerAddress', 'jobTitle', 'duties' ) ; $astroFields = array( 'galactic', 'extragalactic', 'planetary', 'stellar', 'other' ) ; $workFields = array( 'computational', 'instrumentation', 'observational', 'theoretical' ) ; $transDates = array( 'from', 'to', 'degreeDate' ) ; $jobsDates = array( 'jobDateFrom', 'jobDateTo' ) ; $maxNumTranscripts = 5 ; $minNumTranscripts = 1 ; $maxNumRefs = 3 ; $minNumRefs = 2 ; $minNumAstroFields = 3 ; $minNumWorkFields = 3 ; $maxNumEmploy = 5 ; $minNumEmploy = 0 ; cleanSeries( $transcripts, $maxNumTranscripts ) ; cleanSeries( $references, $maxNumRefs ) ; cleanSeries( $employment, $maxNumEmploy ) ; ############# Functions function cleanSeries( $series, $max ){ for( $i = 1; $i <= $max ; $i++ ){ foreach( $series as $field ){ $_POST[ "$field$i" ] = trim( $_POST[ "$field$i" ] ) ; } } } function verifyDate( $date, $pattern ) { if ( preg_match( $pattern, $date ) ) { return 1 ; } else { return 0 ; } } function verifyGPA($gpa) { if ( preg_match('/^\d+(\.\d+)?$/', $gpa) ) { return 1; } else { return 0; } } function checkDateSeries( $series, $pattern, $max = 5 ) { $dateProb = 0 ; for ( $i = 1; $i <= $max; $i++ ) { foreach ( $series as $field ) { if ( $_POST[ "$field$i" ] && !verifyDate( $_POST[ "$field$i" ], $pattern ) ) { $dateProb = 1 ; } } } if ( !$dateProb ) { return 1 ; } else { return 0 ; } } function checkNumSeries( $series, $min = 1, $max = 5 ) { $vSeries = array() ; for ( $i = 1 ; $i <= $max; $i++ ) { foreach ( $series as $field ) { if ( $_POST[ "$field$i" ] ) { $vSeries[ $i ][ "$field$i" ] = 1 ; } } } if ( count( $vSeries ) >= $min ) { return 1 ; } else { return 0 ; } } function checkNumAssocFields( $series, $min = 1 ) { $vSeries = array() ; foreach ( $series as $field ) { if ( $_POST[ $field ] ) { $vSeries[ $field ] = 1 ; } } if( count( $vSeries ) >= $min ) { return 1 ; } else { return 0 ; } } include("ctioreu.header"); if ( ( isset($_POST["preview"]) ) && ( $_POST["preview"] == "Preview Application" ) ) { $error = 0; if( !$_POST[ "nameLast" ] ) { $error = 1 ; echo "Please enter a last name.
" ; } if( !$_POST[ "nameFirst" ] ) { $error = 1 ; echo "Please enter a first name.
" ; } if ( !$_POST[ "mailStreet" ] ) { $error = 1 ; echo "Please enter a mailing address.
" ; } if ( !$_POST[ "mailCity" ] ) { $error = 1 ; echo "Please enter a city.
" ; } if ( ( $_POST[ "mailState" ] == "Other" ) && ( !$_POST[ "otherState" ] ) ) { $error = 1 ; echo "Please provide a state.
" ; } if ( !$_POST[ "mailZip" ] ) { $error = 1 ; echo "Please provide a zip code.
"; } if ( !$_POST[ "mailPhoneAC" ] ) { $error = 1 ; echo "Please provide an area code.
"; } if ( !$_POST[ "mailPhonePrefix" ] ) { $error = 1 ; echo "Please provide a complete phone number.
"; } if ( !$_POST[ "mailPhonePost" ] ) { $error = 1 ; echo "Please provide a complete phone number.
"; } if ( !$_POST[ "homeStreet" ] ) { $error = 1 ; echo "Please enter a mailing address.
"; } if ( !$_POST[ "homeCity" ] ) { $error = 1 ; echo "Please enter a city.
"; } if ( ( $_POST[ "homeState" ] == "Other" ) && ( !$_POST[ "otherState2" ] ) ) { $error = 1 ; echo "Please provide a state.
"; } if ( !$_POST[ "homeZip" ] ) { $error = 1 ; echo "Please provide a zip code.
"; } if ( !$_POST[ "homePhoneAC" ] ) { $error = 1 ; echo "Please provide an area code.
"; } if ( !$_POST[ "homePhonePrefix" ] ) { $error = 1 ; echo "Please provide a complete phone number.
"; } if ( !$_POST[ "homePhonePost" ] ) { $error = 1 ; echo "Please provide a complete phone number.
"; } if ( !$_POST[ "email" ] ) { $error = 1 ; echo "Please provide an e-mail.
"; } if ( !$_POST[ "citizen" ] ) { $error = 1 ; echo "Please provide citizenship information.
"; } if ( !$_POST[ "found" ] ) { $error = 1 ; echo "Please tell us how you found out about the REU program.
"; } if ( !$_POST[ "academicLevel" ] ) { $error = 1 ; echo "Please tell us your current academic level.
"; } if ( !checkNumSeries( $transcripts, $minNumTranscripts, $maxNumTranscripts ) ) { $error = 1 ; echo "Please provide information for at least $minNumTranscripts transcript.
"; } if ( !checkDateSeries( $transDates, "/^(\d)?\d\/\d\d\d\d$/", $maxNumTranscripts ) ) { $error = 1 ; echo "Dates must be in the form mm/yyyy.
"; } if ( ( !$_POST[ "gpaAll" ] ) || ( !verifyGPA($_POST[ "gpaAll" ]) ) ) { $error = 1 ; echo "Please tell us your overall GPA (as a number).
"; } if ( ( !$_POST[ "gpaMathSci" ] ) || ( !verifyGPA($_POST[ "gpaMathSci" ]) ) ) { $error = 1 ; echo "Please tell us your GPA in physical science and math (as a number).
"; } if ( ( !$_POST[ "gpaMax" ] ) || ( !verifyGPA($_POST[ "gpaMax" ]) ) ) { $error = 1 ; echo "Please tell us you maximum GPA (as a number).
"; } if ( !checkNumSeries( $references, $minNumRefs, $maxNumRefs ) ) { $error = 1 ; echo "Please provide information for at least $minNumRefs references.
"; } if ( !$_POST[ "availFrom" ] ) { $error = 1 ; echo "Please tell us when you are first available for the program.
"; } if ( ( $_POST[ "availFrom" ] ) && (!verifyDate( $_POST[ "availFrom" ], "/^(\d)?\d\/(\d)?\d\/\d\d\d\d$/" ) ) ) { $error = 1 ; echo "Dates must be in the form mm/dd/yyyy.
"; } if ( !$_POST[ "availTo" ] ) { $error = 1 ; echo "Please tell us how long you are available for the program.
"; } if ( ( $_POST[ "availTo" ] ) && !verifyDate( $_POST[ "availTo" ], "/^(\d)?\d\/(\d)?\d\/\d\d\d\d$/" ) ) { $error = 1 ; echo "Dates must be in the form mm/dd/yyyy.
"; } if ( !checkNumAssocFields( $astroFields, $minNumAstroFields ) ) { $error = 1 ; echo "Please rank your top $minNumAstroFields choices of astronomical field.
"; } if ( !checkNumAssocFields( $workFields, $minNumWorkFields ) ) { $error = 1 ; echo "Please rank your top $minNumWorkFields preferred types of work.
"; } if ( !$_POST[ "compExp" ] ) { $error = 1 ; echo "Please tell us about your computer experience.
"; } if ( !checkDateSeries( $jobsDates, "/^(\d)?\d\/\d\d\d\d$/", $maxNumEmploy ) ) { $error = 1 ; echo "Dates must be in the form mm/yyyy.
"; } if ( ( !$_POST[ "bymail" ] ) && ( !$_POST[ "letter" ] ) ) { $error = 1 ; echo "Please provide your letter in the space provided.
"; } } if ( ( isset($_POST["preview"]) ) && ( $_POST["preview"] == "Preview Application" ) && ( $error == 0 ) ) { echo "
\n"; } else { echo "\n"; } ?>
1. Name:
  Last First Middle
  Social Security Number (optional):
2. Mailing Address (on Dec 1st, 2011):
  City:
  State:  
  Zip:
  Telephone: ()   -  

3. Home Address:
  City:
  State:  
  Zip:
  Telephone: ( -  

4. E-mail address:
  Check one:

5. How did you first learn that CTIO offered a paid internship program for undergratuates? Select one.
 

6. What is your current college level?

7. Transcripts: The applicant should arrange for official transcripts to be sent from the institutions listed below. A list of courses now in progress should be sent.
  College or University Major Subject
Dates Attended
from
(mm/yyyy)
to
 (mm/yyyy)
Degree
Dates Degree
Received or Expected
(mm/yyyy)
  Please list undergraduate cumulative Grade Point Average.
  All courses:
Physical Science and Math courses:
Maximum GPA:

8. Recommendations: Please list a minimum of 2 people who can evaluate your ability, experience, and potential. We prefer to receive letters of Recommendation via email rather than through the mail. For email, however, we will only accept them if they are on Letterhead and include the electronic signature of the sender. Our mailing address is Human Resources Manager, Attn: CTIO REU PROGRAM, P.O. Box 26732, Tucson, AZ 85726-6732.
  Name College or University Department
(Area Code) Phone
Email

9. Dates you would be available for the program (mm/dd/yyyy): From:    To:

10. To help us match applicants with research projects. mark 1, 2, or 3, to indicate your first, second and third choice of Astronomical Field and Type of Work:
  Astronomical Field: Galactic Extra-galactic Planetary Stellar Other
  Type of Work: Computational Instrumentation Observational Theoretical

11. Please describe your experience with computers, operating systems, computer languages, and major software systems.


12. Please list any scientific or related employment, including research positions, which you have had since graduation from High School:
 
Dates
from
(mm/yyyy)
to
 (mm/yyyy)
Employer's Name
Address Job Title
Short Description of Major Duties

13. Publications and Honors:


14. Letter: An important part of this application is a letter in which you should describe your educational background and goals, along with your scientific interest and experience. The letter should contain whatever further information you consider relevant to the evaluation of your potential for success as a research assistant in the CTIO REU Program, including a statement indicating what you hope to gain from this experience at CTIO. You can either enter your letter here, or send it via US Mail, along with your Letters of Recommendation and Transcripts to the address below. If you choose the US Mail option, please check the following box .


15. If you have any comments or additional information that you would like to include with your application, please use the comment field below.

\n"; } else { echo "\n"; } ?>