<?php
session_start(); // this MUST be called prior to any output including whitespaces and line breaks!

//$GLOBALS['ct_recipient']   = info@epicfive.net';// Change to your email address!
$GLOBALS['ct_recipient']   = 'shanaka.sr@gmail.com'; 
$GLOBALS['ct_msg_subject'] = 'Main Contact Form packages';

$GLOBALS['DEBUG_MODE'] = 0;
// CHANGE TO 0 TO TURN OFF DEBUG MODE
// IN DEBUG MODE, ONLY THE CAPTCHA CODE IS VALIDATED, AND NO EMAIL IS SENT


// Process the form, if it was submitted
process_si_contact_form();

?>
<!DOCTYPE HTML>
<html>
	<head>
		<title>SMS | Packages </title>
		<link href="css/style.css" rel="stylesheet" type="text/css"  media="all" />
		<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
		<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"  media="all" />		
		<link href="css/pricing.css" rel="stylesheet" type="text/css"  media="all" />
		<link href="css/pops.css" rel="stylesheet" type="text/css"  media="all" />
		  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		  <script type="text/javascript">
			jQuery(document).ready(function($) {
				$(".scroll").click(function(event){		
					event.preventDefault();
					$('html,body').animate({scrollTop:$(this.hash).offset().top},1200);
				});
			});
		</script>
		<style type="text/css">
    <!--
        #success_message {width: 400px; text-align: left; padding: 10px 7px; background: #33ff33; color: #000; font-weight; bold; font-size: 1.2em; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; }
        fieldset { width: 90%; }
        legend { font-size: 24px; }
        .note { font-size: 18px; }
    -->
	#contact_form > div {
    display: inline-block;
    width: 47%;
	padding-right: 25px;
}
.captcha-form-block ul{
	display:block;
	padding: 0 !important;
}

.captcha-form-block  li{
	display:block;
	padding: 0 !important;
}

.captcha-form-block {
    padding: 0 !important;
}


select {
	border: 1px solid #CCCCCC;
    font-family: 'Roboto', Open Sans;
    font-size: 12px;
    margin: 0 0 9px;
    padding: 6px;
    width: 100%;
    background: -webkit-gradient(linear, left top, left 15, from(#FFFFFF), color-stop(4%, #f4f4f4), to(#FFFFFF));
    background: -moz-linear-gradient(top, #FFFFFF, #f4f4f4 1px, #FFFFFF 15px);
}

.md-close.ccr-price-host {
    display: block;
    float: right;
}


    </style>
	</head>
	<body>
	<!----start-wrap----->
	<?php include 'header.php'; ?>
	<!---start-top-nav---->
			<div class="top-nav">
				<div class="top-nav-left">
					<ul>
						<li><a href="index.php">Home</a></li>
						<li class="active"><a href="packages.php">Packages</a></li>
						<li><a href="solutions.php">Solutions</a></li>
						<li><a href="rates.php">Rates</a></li>
						<li><a href="contact.php">Contact</a></li>
						<div class="clear"> </div>
					</ul>
				</div>
				<div class="clear"> </div>
			</div>
			<!---End-top-nav---->
		</div>
		<!----End-header----->
	</div>
	<!----End-wrap----->
		 <!---start-content---->
		 <div class="content">
		 	<!---start-about---->
		 	<div class="about-us">
		 			<div class="wrap">
						<div class="testmonials">
						<div class="wrap">
							<div class="testmonial-grid">
								<h3>Your want to send millions of SMS?</h3>
								<p>Check it out our Packages & Select your one.</p>
							</div>
						</div>
					</div>
						<div class="about-info">
						</div>
						<div class="container">
						<div class="row pricing">
      <div class="col-md-4 col-sm-6">
        <div class="ccr-pricing-table green">
            <p class="ccr-price-title bronze-package">Bronze Package</p>
          <div class="ccr-price">
            <P class="ccr-price-value">&#163; 49</P>
          </div>
          <ul class="ccr-price-list">
            <li><span class="bubble"></span>Web Control Interface</li>
            <li><span class="bubble"></span>SMS Country Selection 1 country</li>
            <li><span class="bubble"></span>SMS Rates Standard Rates</li>
            <li><span class="bubble"></span>Mobile SMS Sender</li>
            <li><span class="bubble"></span>No Modifiable software</li>
			<li><span class="bubble"></span>No Web HTTP API</li>
			<li><span class="bubble"></span>24 x 7 Customer Support (TT Only)</li>
          </ul>
          <button class="md-trigger ccr-price-host" data-modal="modal-6">Sign Up</button>
        </div> <!-- /.ccr-pricing-table-1 -->
      </div>
      <div class="col-md-4 col-sm-6">
        <div class="ccr-pricing-table green">
            <p class="ccr-price-title silver-package">Silver Package</p>
          <div class="ccr-price">
            <P class="ccr-price-value">&#163; 69</P>
          </div>
          <ul class="ccr-price-list">
            <li><span class="bubble"></span>Web Control Interface</li>
            <li><span class="bubble"></span>SMS Country Selection 5 countries</li>
            <li><span class="bubble"></span>SMS Rates Standard Rates</li>
            <li><span class="bubble"></span>Mobile SMS Sender</li>
            <li><span class="bubble"></span>Modifiable software</li>
			<li><span class="bubble"></span>No Web HTTP API</li>
			<li><span class="bubble"></span>24 x 7 Customer Support</li>
          </ul>
          <button class="md-trigger ccr-price-host" data-modal="modal-6">Sign Up</button>
        </div> <!-- /.ccr-pricing-table-1 -->
      </div>
      <div class="col-md-4 col-sm-6">
        <div class="ccr-pricing-table green">
            <p class="ccr-price-title gold-package">Gold Package</p>
          <div class="ccr-price">
            <P class="ccr-price-value">&#163; 99</P>
          </div>
          <ul class="ccr-price-list">
			<li><span class="bubble"></span>Web Control Interface</li>
            <li><span class="bubble"></span>SMS Country Selection 15 countries</li>
            <li><span class="bubble"></span>SMS Rates Standard Rates</li>
            <li><span class="bubble"></span>Mobile SMS Sender</li>
            <li><span class="bubble"></span>Modifiable software</li>
			<li><span class="bubble"></span>Web HTTP API</li>
			<li><span class="bubble"></span>24 x 7 Customer Support</li>
          </ul>
          <button class="md-trigger ccr-price-host" data-modal="modal-6">Sign Up</button>
        </div> <!-- /.ccr-pricing-table-1 -->
      </div>
  
    </div>
	
	
					<div class="testmonial-grid">
								<h3>More Info Contact your Sales Agent</h3>
								<div>
									<p><i class="fa fa-phone-square"></i> Sales: +6531585021 </p>
									<p><i class="fa fa-envelope"></i> Email: sales@easygosms.com</p>
								</div>
							</div>
												
						</div>
					<div class="specials">
					<div class="specials-heading">
						<h3>Advertisments</h3>
						<div class="clear"> </div>
					</div>
					<div class="clear"> </div>
					<div class="specials-grids">
						<div class="special-grid">
							<img src="images/slider2.jpg" title="image-name">
							<a href="#">Latest Plans</a>
							<p>Lorem ipsum dolor sit amet consectetur adiing elit. In volutpat luctus eros ac placerat. Quisque erat metus facilisis non feu,aliquam hendrerit quam. Donec ut lectus vel dolor adipiscing tincnt.</p>
						</div>
						<div class="special-grid">
							<img src="images/slider1.jpg" title="image-name">
							<a href="#">Pre Plans</a>
							<p>Lorem ipsum dolor sit amet consectetur adiing elit. In volutpat luctus eros ac placerat. Quisque erat metus facilisis non feu,aliquam hendrerit quam. Donec ut lectus vel dolor adipiscing tincnt.</p>
						</div>
						<div class="special-grid spe-grid">
							<img src="images/slider4.jpg" title="image-name">
							<a href="#">Free Plans</a>
							<p>Lorem ipsum dolor sit amet consectetur adiing elit. In volutpat luctus eros ac placerat. Quisque erat metus facilisis non feu,aliquam hendrerit quam. Donec ut lectus vel dolor adipiscing tincnt.</p>
						</div>
						<div class="clear"> </div>
					</div>
					<div class="clear"> </div>
					</div>
					</div>
		 	<!---End-about---->
		 </div>
		 <!---End-content---->
		 <div class="md-modal md-effect-6" id="modal-6">
			<div class="md-content">
				<div><button class="md-close ccr-price-host"><i class="fa fa-times"></i> Close </button>
					<form method="post" action="" id="contact_form" onsubmit="return processForm()">
  <input type="hidden" name="do" value="contact" />
<div>
            <label for="package"><span>Select Package Type: <span class="form-required-tag"> (required) </span></span></label>
            <select id="package" name="ct_package">
          <option value='Country Not Selected' selected="selected">Select Package</option>
          <option value='Bronze Package'>Bronze Package</option>
          <option value='Silver Package'>Silver Package</option>
		  <option value='Gold Package'>Gold Package</option>
		  </select>
		  </div>
		  
		  
  <div>
            <label for="name"><span>Name: <span class="form-required-tag"> (required) </span></span></label>
            <input type="text" name="ct_name" placeholder="Full Name" title="Enter your name" class="required">
          </div>
		  <div>
            <label for="phone"><span>Telephone: <span class="form-required-tag"> (required) </span></span></label>
            <input type="tel" name="ct_phone" placeholder="ex. (555) 555-5555" pattern="[0-9]{1,100}" title="Enter numeric values">
          </div>
          <div>
            <label for="email"><span>Email: <span class="form-required-tag"> (required) </span></span></label>
            <input type="email" name="ct_email" placeholder="yourname@domain.com" title="Enter your e-mail address" class="required email">
          </div>  
		
		  <div>
            <label for="country"><span>Country: <span class="form-required-tag"> (required) </span></span></label>
            <select id="country" name="ct_country">
          <option value='Country Not Selected' selected="selected">Select Country</option>
          <option value='Afghanistan'>Afghanistan</option>
          <option value='Aland Islands'>Aland Islands</option>
          <option value='Albania'>Albania</option>
          <option value='Algeria'>Algeria</option>
          <option value='American Samoa'>American Samoa</option>
          <option value='Andorra'>Andorra</option>
          <option value='Angola'>Angola</option>
          <option value='Anguilla'>Anguilla</option>
          <option value='Antarctica'>Antarctica</option>
          <option value='Antigua and Barbuda'>Antigua and Barbuda</option>
          <option value='Argentina'>Argentina</option>
          <option value='Armenia'>Armenia</option>
          <option value='Aruba'>Aruba</option>
          <option value='Australia'>Australia</option>
          <option value='Austria'>Austria</option>
          <option value='Azerbaijan'>Azerbaijan</option>
          <option value='Bahrain'>Bahrain</option>
          <option value='Bangladesh'>Bangladesh</option>
          <option value='Barbados'>Barbados</option>
          <option value='Belarus'>Belarus</option>
          <option value='Belgium'>Belgium</option>
          <option value='Belize'>Belize</option>
          <option value='Benin'>Benin</option>
          <option value='Bermuda'>Bermuda</option>
          <option value='Bhutan'>Bhutan</option>
          <option value='Bolivia'>Bolivia</option>
          <option value='Bosnia and Herzegovina'>Bosnia and Herzegovina</option>
          <option value='Botswana'>Botswana</option>
          <option value='Bouvet Island'>Bouvet Island</option>
          <option value='Brazil'>Brazil</option>
          <option value='British Indian Ocean Territory'>British Indian Ocean Territory</option>
          <option value='British Virgin Islands'>British Virgin Islands</option>
          <option value='Brunei'>Brunei</option>
          <option value='Bulgaria'>Bulgaria</option>
          <option value='Burkina Faso'>Burkina Faso</option>
          <option value='Burundi'>Burundi</option>
          <option value='Cambodia'>Cambodia</option>
          <option value='Cameroon'>Cameroon</option>
          <option value='Canada'>Canada</option>
          <option value='Cape Verde'>Cape Verde</option>
          <option value='Caribbean Netherlands'>Caribbean Netherlands</option>
          <option value='Cayman Islands'>Cayman Islands</option>
          <option value='Central African Republic'>Central African Republic</option>
          <option value='Chile'>Chile</option>
          <option value='China'>China</option>
          <option value='Christmas Island'>Christmas Island</option>
          <option value='Cocos (Keeling) Islands'>Cocos (Keeling) Islands</option>
          <option value='Colombia'>Colombia</option>
          <option value='Comoros'>Comoros</option>
          <option value='Congo'>Congo</option>
          <option value='Cook Islands'>Cook Islands</option>
          <option value='Costa Rica'>Costa Rica</option>
          <option value='Croatia'>Croatia</option>
          <option value='Cuba'>Cuba</option>
          <option value='Curacao'>Curacao</option>
          <option value='Cyprus'>Cyprus</option>
          <option value='Czech Republic'>Czech Republic</option>
          <option value='Democratic Republic of Congo'>Democratic Republic of Congo</option>
          <option value='Denmark'>Denmark</option>
          <option value='Disputed Territory'>Disputed Territory</option>
          <option value='Djibouti'>Djibouti</option>
          <option value='Dominica'>Dominica</option>
          <option value='Dominican Republic'>Dominican Republic</option>
          <option value='East Timor'>East Timor</option>
          <option value='Ecuador'>Ecuador</option>
          <option value='Egypt'>Egypt</option>
          <option value='El Salvador'>El Salvador</option>
          <option value='Equatorial Guinea'>Equatorial Guinea</option>
          <option value='Eritrea'>Eritrea</option>
          <option value='Estonia'>Estonia</option>
          <option value='Ethiopia'>Ethiopia</option>
          <option value='Falkland Islands'>Falkland Islands</option>
          <option value='Faroe Islands'>Faroe Islands</option>
          <option value='Federated States of Micronesia'>Federated States of Micronesia</option>
          <option value='Fiji'>Fiji</option>
          <option value='Finland'>Finland</option>
          <option value='France'>France</option>
          <option value='French Guiana'>French Guiana</option>
          <option value='French Polynesia'>French Polynesia</option>
          <option value='Gabon'>Gabon</option>
          <option value='Georgia'>Georgia</option>
          <option value='Germany'>Germany</option>
          <option value='Ghana'>Ghana</option>
          <option value='Gibraltar'>Gibraltar</option>
          <option value='Greece'>Greece</option>
          <option value='Greenland'>Greenland</option>
          <option value='Grenada'>Grenada</option>
          <option value='Guadeloupe'>Guadeloupe</option>
          <option value='Guam'>Guam</option>
          <option value='Guatemala'>Guatemala</option>
          <option value='Guinea'>Guinea</option>
          <option value='Guinea-Bissau'>Guinea-Bissau</option>
          <option value='Guyana'>Guyana</option>
          <option value='Haiti'>Haiti</option>
          <option value='Heard Island and McDonald Islands'>Heard Island and McDonald Islands</option>
          <option value='Honduras'>Honduras</option>
          <option value='Hong Kong'>Hong Kong</option>
          <option value='Hungary'>Hungary</option>
          <option value='Iceland'>Iceland</option>
          <option value='India'>India</option>
          <option value='Indonesia'>Indonesia</option>
          <option value='Iran'>Iran</option>
          <option value='Iraq'>Iraq</option>
          <option value='Iraq-Saudi Arabia Neutral Zone'>Iraq-Saudi Arabia Neutral Zone</option>
          <option value='Ireland'>Ireland</option>
          <option value='Israel'>Israel</option>
          <option value='Italy'>Italy</option>
          <option value='Ivory Coast'>Ivory Coast</option>
          <option value='Jamaica'>Jamaica</option>
          <option value='Japan'>Japan</option>
          <option value='Jordan'>Jordan</option>
          <option value='Kazakhstan'>Kazakhstan</option>
          <option value='Kenya'>Kenya</option>
          <option value='Kiribati'>Kiribati</option>
          <option value='Kuwait'>Kuwait</option>
          <option value='Kyrgyzstan'>Kyrgyzstan</option>
          <option value='Laos'>Laos</option>
          <option value='Latvia'>Latvia</option>
          <option value='Lebanon'>Lebanon</option>
          <option value='Lesotho'>Lesotho</option>
          <option value='Liberia'>Liberia</option>
          <option value='Libya'>Libya</option>
          <option value='Liechtenstein'>Liechtenstein</option>
          <option value='Lithuania'>Lithuania</option>
          <option value='Luxembourg'>Luxembourg</option>
          <option value='Macau'>Macau</option>
          <option value='Macedonia'>Macedonia</option>
          <option value='Madagascar'>Madagascar</option>
          <option value='Malawi'>Malawi</option>
          <option value='Malaysia'>Malaysia</option>
          <option value='Maldives'>Maldives</option>
          <option value='Mali'>Mali</option>
          <option value='Malta'>Malta</option>
          <option value='Marshall Islands'>Marshall Islands</option>
          <option value='Martinique'>Martinique</option>
          <option value='Mauritania'>Mauritania</option>
          <option value='Mauritius'>Mauritius</option>
          <option value='Mayotte'>Mayotte</option>
          <option value='Mexico'>Mexico</option>
          <option value='Moldova'>Moldova</option>
          <option value='Monaco'>Monaco</option>
          <option value='Mongolia'>Mongolia</option>
          <option value='Montenegro'>Montenegro</option>
          <option value='Montserrat'>Montserrat</option>
          <option value='Morocco'>Morocco</option>
          <option value='Mozambique'>Mozambique</option>
          <option value='Myanmar'>Myanmar</option>
          <option value='Namibia'>Namibia</option>
          <option value='Nauru'>Nauru</option>
          <option value='Nepal'>Nepal</option>
          <option value='Netherlands'>Netherlands</option>
          <option value='New Caledonia'>New Caledonia</option>
          <option value='New Zealand'>New Zealand</option>
          <option value='Nicaragua'>Nicaragua</option>
          <option value='Niger'>Niger</option>
          <option value='Nigeria'>Nigeria</option>
          <option value='Niue'>Niue</option>
          <option value='Norfolk Island'>Norfolk Island</option>
          <option value='North Korea'>North Korea</option>
          <option value='Northern Mariana Islands'>Northern Mariana Islands</option>
          <option value='Norway'>Norway</option>
          <option value='Oman'>Oman</option>
          <option value='Pakistan'>Pakistan</option>
          <option value='Palau'>Palau</option>
          <option value='Palestine'>Palestine</option>
          <option value='Panama'>Panama</option>
          <option value='Papua New Guinea'>Papua New Guinea</option>
          <option value='Paraguay'>Paraguay</option>
          <option value='Peru'>Peru</option>
          <option value='Philippines'>Philippines</option>
          <option value='Pitcairn Islands'>Pitcairn Islands</option>
          <option value='Poland'>Poland</option>
          <option value='Portugal'>Portugal</option>
          <option value='Puerto Rico'>Puerto Rico</option>
          <option value='Qatar'>Qatar</option>
          <option value='Reunion'>Reunion</option>
          <option value='Romania'>Romania</option>
          <option value='Russia'>Russia</option>
          <option value='Rwanda'>Rwanda</option>
          <option value='Saint Barthelemy'>Saint Barthelemy</option>
          <option value='Saint Kitts and Nevis'>Saint Kitts and Nevis</option>
          <option value='Saint Vincent and the Grenadines'>Saint Vincent and the Grenadines</option>
          <option value='Saint-Martin'>Saint-Martin</option>
          <option value='Saint-Pierre-Et-Miquelon'>Saint-Pierre-Et-Miquelon</option>
          <option value='Samoa'>Samoa</option>
          <option value='San Marino'>San Marino</option>
          <option value='Sao Tome E Principe'>Sao Tome E Principe</option>
          <option value='Saudi Arabia'>Saudi Arabia</option>
          <option value='Senegal'>Senegal</option>
          <option value='Serbia'>Serbia</option>
          <option value='Seychelles'>Seychelles</option>
          <option value='Sierra Leone'>Sierra Leone</option>
          <option value='Singapore'>Singapore</option>
          <option value='Sint Maarten'>Sint Maarten</option>
          <option value='Slovakia'>Slovakia</option>
          <option value='Slovenia'>Slovenia</option>
          <option value='Solomon Islands'>Solomon Islands</option>
          <option value='Somalia'>Somalia</option>
          <option value='South Africa'>South Africa</option>
          <option value='South Georgia and the South Sandwich Islands'>South Georgia and the South Sandwich Islands</option>
          <option value='South Korea'>South Korea</option>
          <option value='Spain'>Spain</option>
          <option value='Spratly Islands'>Spratly Islands</option>
          <option value='Sri Lanka'>Sri Lanka</option>
          <option value='St Helena Ascension and Tristan da Cunha'>St Helena Ascension and Tristan da Cunha</option>
          <option value='St. Lucia'>St. Lucia</option>
          <option value='Sudan'>Sudan</option>
          <option value='Suriname'>Suriname</option>
          <option value='Svalbard and Jan Mayen'>Svalbard and Jan Mayen</option>
          <option value='Swaziland'>Swaziland</option>
          <option value='Sweden'>Sweden</option>
          <option value='Switzerland'>Switzerland</option>
          <option value='Syria'>Syria</option>
          <option value='Taiwan'>Taiwan</option>
          <option value='Tajikistan'>Tajikistan</option>
          <option value='Tanzania'>Tanzania</option>
          <option value='Tchad'>Tchad</option>
          <option value='Terres Australes Et Antarctiques Francaises'>Terres Australes Et Antarctiques Francaises</option>
          <option value='Thailand'>Thailand</option>
          <option value='The Bahamas'>The Bahamas</option>
          <option value='The Gambia'>The Gambia</option>
          <option value='The Republic of South Sudan'>The Republic of South Sudan</option>
          <option value='Togo'>Togo</option>
          <option value='Tokelau'>Tokelau</option>
          <option value='Tonga'>Tonga</option>
          <option value='Trinidad and Tobago'>Trinidad and Tobago</option>
          <option value='Tunisia'>Tunisia</option>
          <option value='Turkey'>Turkey</option>
          <option value='Turkmenistan'>Turkmenistan</option>
          <option value='Turks and Caicos Islands'>Turks and Caicos Islands</option>
          <option value='Tuvalu'>Tuvalu</option>
          <option value='US Virgin Islands'>US Virgin Islands</option>
          <option value='Uganda'>Uganda</option>
          <option value='Ukraine'>Ukraine</option>
          <option value='United Arab Emirates'>United Arab Emirates</option>
          <option value='United Kingdom'>United Kingdom</option>
          <option value='United Nations Neutral Zone'>United Nations Neutral Zone</option>
          <option value='United States'>United States</option>
          <option value='United States Minor Outlying Islands'>United States Minor Outlying Islands</option>
          <option value='Uruguay'>Uruguay</option>
          <option value='Uzbekistan'>Uzbekistan</option>
          <option value='Vanuatu'>Vanuatu</option>
          <option value='Vatican City'>Vatican City</option>
          <option value='Venezuela'>Venezuela</option>
          <option value='Vietnam'>Vietnam</option>
          <option value='Wallis-Et-Futuna'>Wallis-Et-Futuna</option>
          <option value='Western Sahara'>Western Sahara</option>
          <option value='Yemen'>Yemen</option>
          <option value='Zambia'>Zambia</option>
          <option value='Zimbabwe'>Zimbabwe</option>
        </select>
          </div>
		
	
		  <div>
            <label for="MSN"><span>MSN</span></label>
            <input type="text" name="ct_MSN" placeholder="Enter MSN Name" title="Enter MSN Name">
          </div>
		  <div>
            <label for="yahoo"><span>Yahoo</span></label>
            <input type="text" name="ct_yahoo" placeholder="Enter Yahoo Name" title="Enter Yahoo Name">
          </div>
		   <div>
            <label for="gtalk"><span>GTalk</span></label>
            <input type="text" name="ct_gtalk" placeholder="Enter GTalk Name" title="Enter GTalk Name">
          </div>
		  <div>
            <label for="skype"><span>Skype</span></label>
            <input type="text" name="ct_skype" placeholder="Enter Skype Name" title="Enter Skype Name">
          </div>
		 
         
          <div>
            <label for="message"><span>Message</span></label>
            <textarea name="ct_message"></textarea>
          </div>

  <div style="width:100%">
  <ul class="captcha-form-block">
	<ul>

    <li><img id="siimage" style="border: 1px solid #000; margin-right: 15px" src="./securimage_show.php?sid=<?php echo md5(uniqid()) ?>" alt="CAPTCHA Image" align="left" />
 </li>
   <li><a tabindex="-1" style="border-style: none;" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = './securimage_show.php?sid=' + Math.random(); this.blur(); return false"><img src="./images/refresh.png" alt="Reload Image" height="32" width="32" onclick="this.blur()" align="bottom" border="0" />Click to Refresh Image</a><br />
	</li>
	</ul>
	<br/><br/><br/>
	<ul>
	<li><div id="success_message" style="display: none">Your message has been sent!<br />We will contact you as soon as possible.</div></li>
	<li><label for="message"><span>Enter Security Code: <span class="form-required-tag"> (required) </span></span></label></li>
    <li><input type="text" name="ct_captcha"/></li>
	</ul>
	</ul>
	
  </div>

  
	<div style="width:100%">

		<button name="submit" type="submit" id="submit" class="package-submit-button">Send Email</button>

	  </div>

</form>

				</div>
			</div>
		</div>
		
		 <div class="md-overlay"></div><!-- the overlay element -->
		 <!---start-footer---->
		<?php include 'footer.php'; ?>
		 <!---End-footer---->
		 
		 <!-- classie.js by @desandro: https://github.com/desandro/classie -->
		<script src="js/classie.js"></script>
		<script src="js/modalEffects.js"></script>

		<!-- for the blur effect -->
		<!-- by @derSchepp https://github.com/Schepp/CSS-Filters-Polyfill -->
		<script>
			// this is important for IEs
			var polyfilter_scriptpath = '/js/';
		</script>
		<script src="js/cssParser.js"></script>
		<script src="js/css-filters-polyfill.js"></script>
		<script type="text/javascript">
    $.noConflict();

    function reloadCaptcha()
    {
        jQuery('#siimage').prop('src', './securimage_show.php?sid=' + Math.random());
    }

    function processForm()
    {
		jQuery.ajax({
			url: '<?php echo $_SERVER['PHP_SELF'] ?>',
			type: 'POST',
			data: jQuery('#contact_form').serialize(),
			dataType: 'json',
		}).done(function(data) {
			if (data.error === 0) {
				jQuery('#success_message').show();
				jQuery('#contact_form')[0].reset();
				reloadCaptcha();
				setTimeout("jQuery('#success_message').fadeOut()", 12000);
			} else {
				alert("There was an error with your submission.\n\n" + data.message);
			}
		});

        return false;
    }
</script>
	</body>
</html>


<?php

// The form processor PHP code
function process_si_contact_form()
{
    if ($_SERVER['REQUEST_METHOD'] == 'POST' && @$_POST['do'] == 'contact') {
        // if the form has been submitted

        foreach($_POST as $key => $value) {
            if (!is_array($key)) {
                // sanitize the input data
                if ($key != 'ct_message') $value = strip_tags($value);
                $_POST[$key] = htmlspecialchars(stripslashes(trim($value)));
            }
        }
		
		
		$package   = @$_POST['ct_package']; 
        $name    = @$_POST['ct_name']; 
		$phone   = @$_POST['ct_phone']; 		// name from the form
        $email   = @$_POST['ct_email'];   // email from the form
		$country   = @$_POST['ct_country'];
		$msn   = @$_POST['ct_MSN'];
		$yahoo   = @$_POST['ct_yahoo'];
		$gtalk   = @$_POST['ct_gtalk'];
		$skype   = @$_POST['ct_skype'];
        $message = @$_POST['ct_message']; // the message from the form
        $captcha = @$_POST['ct_captcha']; // the user's entry for the captcha code
        $name    = substr($name, 0, 64);  // limit name to 64 characters

        $errors = array();  // initialize empty error array

        if (isset($GLOBALS['DEBUG_MODE']) && $GLOBALS['DEBUG_MODE'] == false) {
            // only check for errors if the form is not in debug mode

            //if (strlen($name) < 3) {
                // name too short, add error
             //   $errors['name_error'] = 'Your name is required';
            //}

            if (strlen($email) == 0) {
                // no email address given
                $errors['email_error'] = 'Email address is required';
            } else if ( !preg_match('/^(?:[\w\d]+\.?)+@(?:(?:[\w\d]\-?)+\.)+\w{2,4}$/i', $email)) {
                // invalid email format
                $errors['email_error'] = 'Email address entered is invalid';
            }
			
			if (strlen($package) == 0) {
                // no Package address given
                $errors['email_error'] = 'Package is required';
            }

           // if (strlen($message) < 20) {
                // message length too short
             //   $errors['message_error'] = 'Please enter a message';
           // }
        }

        // Only try to validate the captcha if the form has no errors
        // This is especially important for ajax calls
        if (sizeof($errors) == 0) {
            require_once dirname(__FILE__) . '/securimage.php';
            $securimage = new Securimage();

            if ($securimage->check($captcha) == false) {
                $errors['captcha_error'] = 'Incorrect security code entered';
            }
        }

        if (sizeof($errors) == 0) {
            // no errors, send the form
            $time       = date('r');
            $message = "A message was submitted from Free Ride Packages Contact Form.  The following information was provided.<br /><br />"
                     . "Package Type: $package<br />"
					 . "Name: $name<br />"
					 . "Phone: $phone<br />"
                     . "Email: $email<br />"
					 . "Country: $country<br />"
					 . "MSN: $msn<br />"
					 . "Yahoo: $yahoo<br />"
					 . "Gtalk: $gtalk<br />"
					 . "Skype: $skype<br />"
                     . "Message:<br />"
                     . "<pre>$message</pre>"
                     . "<br /><br />IP Address: {$_SERVER['REMOTE_ADDR']}<br />"
                     . "Time: $time<br />"
                     . "Browser: {$_SERVER['HTTP_USER_AGENT']}<br />";

            if (isset($GLOBALS['DEBUG_MODE']) && $GLOBALS['DEBUG_MODE'] == false) {
                // send the message with mail()
                mail($GLOBALS['ct_recipient'], $GLOBALS['ct_msg_subject'], $message, "From: {$GLOBALS['ct_recipient']}\r\nReply-To: {$email}\r\nContent-type: text/html; charset=ISO-8859-1\r\nMIME-Version: 1.0");
            }

            $return = array('error' => 0, 'message' => 'OK');
            die(json_encode($return));
        } else {
            $errmsg = '';
            foreach($errors as $key => $error) {
                // set up error messages to display with each field
                $errmsg .= " - {$error}\n";
            }

            $return = array('error' => 1, 'message' => $errmsg);
            die(json_encode($return));
        }
    } // POST
} // function process_si_contact_form()
?>

