<?php
	session_start();
	$ME = "demoform.php";
	include "../correlations/includes.php";
		
	$allfields = array(	"date", "product", "platform", "firstname", "lastname", "street", "city", "state", "zip", "country", "email", "who", "bfield");
	$required  = array(	"product", "platform", "firstname", "lastname", "street", "city", "state", "zip", "country", "email", "who");
				  
	if (isset($_POST['Submit']))
	{
		// capture the posted values in Session variables
		foreach($allfields as $field) {
			$_SESSION[$field] = @$_POST[$field];
		}

		// check the invisible robot discovery field
		if ($_SESSION['bfield'] <> "")
			exit;
		
		// check for required fields
		$_SESSION['errors'] = "";
		foreach($required as $field) {
			if (!$_POST[$field]) {
				$_SESSION['errors'] .= "	- $field is a required field <br>";
			}
		}
				
		if (!isValidEmail($_SESSION['email']))
		{
			$_SESSION['errors'] .= "- Invalid email address <br>";
		}
		
		// if all fields OK
		if ($_SESSION['errors'] == "")
		{
			// create an entry in the demo log file
			$_SESSION['date'] = date('m/d/y H:i:s');
			if (@$_SESSION['demo_path'] == "/demo")
				//$logfile = "../../log/demo_special.txt";
                $logfile = "../../logs/demo_special.txt";
			else
				//$logfile = "../../log/demo.txt";
                $logfile = "../../logs/demo.txt";

			$fp = fopen($logfile, "a");
			foreach($allfields as $field) {
				fwrite($fp, $field . "=" . @$_SESSION[$field] . "\r\n");
			}
			fwrite($fp, "demopath=" . @$_SESSION['demo_path'] . "\r\n");
			fwrite($fp, "=\r\n");
			fclose($fp);

			// display download page
			echo '<html> <head> <meta http-equiv="refresh" content="1; url=demo-download.php"> </head> </html>';
		}
	}
	else
	{
	// first time through - Submit button not pressed
		$_SESSION['country'] = "United States";
		$_SESSION['errors'] = "";
		$_SESSION['platform'] = "windows";
		$_SESSION['product'] = "Music Ace Demo";
	}

?>

<!DOCTYPE html>
<html>

<head>

<title>Music Ace Demo Download Form</title>

<meta name="description" content="Harmonic Vision is the developer and publisher of the Music Ace series of music education software.">
<meta name="keywords" content="music education, piano lessons, music education software, music theory, learning music, music lessons, beginning music, music software, Music Ace, Music Doodle Pad, Music Ace 2, Music Ace Deluxe, Music Ace Maestro">

<link rel="stylesheet" href="../css/styles.css" type="text/css">

<style type="text/css">
.style26 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
}
.style27 {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	background-color: #FFFFFF;
}
.style35 {color: #FF0000}
.styleRED {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FF0000;
	background-color: #dddddd;
}
.style40 {font-size: 10px}
.style41 {font-family: Verdana, Arial, Helvetica, sans-serif}
.style43 {font-size: 11px; font-weight: bold; color: #FF0000; }
.style44 {font-size: 18px}
</style>

</head>

<!-- <body OnLoad="document.F1.Product.focus();"> -->
<body OnLoad="document.getElementById('product').focus();">
<br>  <!--  <br> to push the whole page down 1 line from the browser top  -->

<!-- ===============================  start page container table (entire page is enclosed by this table) ===== -->
<table border="1" cellpadding="0" cellspacing="0" width="800" align="center" bgcolor="#fffffe"><tr><td valign="top">

<!-- =================================== start Logo Header ======================================= --><!-- #BeginLibraryItem "/Library/header.lbi" -->
<table width="788" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
  <tr><td><img src="../images/spacer.gif" alt="" width="784"  height="5"></td></tr>
  <tr><td><img src="../images/insidetop.gif" alt="" width="784"  height="57"></td></tr>
</table>
<!-- #EndLibraryItem --><!-- =================================== end Logo Header ======================================= -->

<!-- =================================== start Navigation Buttons ======================================= --><!-- #BeginLibraryItem "/Library/navbuttons.lbi" --><table width="771" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td>
  <div class="navBar"" align="left">
    <ul id="nav">
	<li><a href="#">Products</a>
		<ul>
			<li><a href="../madfact.htm">Music Ace Deluxe</a></li>
			<li><a href="../mamfact.htm">Music Ace Maestro</a></li>
			<li><a href="../mafact.htm">Music Ace</a></li>
			<li><a href="../ma2fact.htm">Music Ace 2</a></li>
			<li><a href="../pafact.htm">Piano Ace</a></li>
			<li><a href="../mampupg.htm">Product Upgrades</a></li>
		</ul>
	</li>
	
	<li><a href="#">At Home</a>
		<ul>
			<li><a href="../hs/index.htm">Homeschool</a></li>
			<li><a href="../products_home.htm">Individual or family</a></li>
			<li><a href="../pianostudent/index.htm">Piano Student</a></li>
		</ul>
	</li>
    	
	<li><a href="#">School</a>
		<ul>
			<li><a href="../products_edu.htm">Products</a></li>
			<li><a href="../educatorresources.htm">Resources</a></li>
		</ul>
	</li>	
	
	<li><a href="#">Studio</a>
       <ul>
            <li><a href="../pianoteacher/index.htm">Studio Teachers</a></li>
			<li><a href="../educatorresources.htm">Resources</a></li>
       </ul>
	</li>
			
	<li><a href="../mampupg.htm">Upgrades</a></li>	
    
	<li><a href="#">Support</a>
      <ul>
            <li><a href="../techsupport/index.htm">Technical Support</a></li>
            <li><a href="../dealer.htm">Dealer support</a></li>
            <li><a href="../news.htm">Press/media</a></li>
            <li><a href="../contactus.html">Contact Us</a></li>
       </ul>
    </li>	
    
	<!-- <li><a href="demoform.php">Free Demo</a></li> -->
  </ul>
  </div>
</td></tr></table>
<!-- #EndLibraryItem --><!-- =================================== end Navigation Buttons ======================================= -->

<!-- ========================== start Breadcrumb - update this for each page  ============ -->
<table width="771" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
<div id="breadcrumb"><a href="../index.htm">Home</a>&gt; Free Demo</div>
    </td>
  </tr>
</table>
<!-- ================================= end Breadcrumb ==================================== -->

<!-- ================================= Start Content container table ================================== -->
  <div><table border="0" cellpadding="0" cellspacing="0" width="611" bgcolor="#FFFFFF" align="center">
    <tr><td>
	 
<!-- ============================== START CONTENT - put page content here =============================== -->	 
		 
<table width="578" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><p align="center" class="verdana-11-spaced style44"><strong>Download Music Ace Demo</strong></p>
      <p class="verdana-11-spaced">To download a free demo of the Music Ace products, please 
        fill out the form below and click the &quot;<strong>Submit</strong>&quot; button at the bottom of 
        the page. Your personal information will not be sold or given to any third 
        parties. </p>
      </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><b><em class="verdana-11-spaced style41">NOTE: Since <span class="style43">Music Ace Maestro</span> and <span class="style43">Music Ace Deluxe</span> contain lessons from both Music Ace and Music Ace 2, you 
        may download both the Music Ace and Music Ace 2 demos to review 6 sample lessons 
        contained in these other products.</em></b></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>


<table width="539" border="1" align="center" cellpadding="0" cellspacing="0" bgcolor="#dddddd">
  <tr>
    <td>
<form name="F1" id="F1" method="post" action="<?php echo $ME?>">
<table border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td><?php
//-------------------------------------------------------------------------------
// if missing fields were detected, display a table with all the missing fields
//-------------------------------------------------------------------------------
if ($_SESSION['errors'] <> "") {
    echo '<table width="600" border="0">
	        <tr>
            <td width="500" align="center"><span class="styleRED">Required fields are missing or invalid - please correct the fields and Submit again <br>' . $_SESSION['errors'] . '</span></td>
            </tr>
           </table>';
}
//-------------------------------------------------------------------------------
?>
      <div class="verdana-11 style35" align="left"><span class="style40">all fields required</span>&nbsp;&nbsp;</div>
      <table  border="0" align="center" class="verdana-11">

      <tr>
        <td valign="top" class="verdana-11-spaced">Select a product<img src="../images/spacer2.gif" width="150" height="10" alt="">Select computer type </td>
        </tr>
      <tr>
        <td valign="top"><span class="style27">
        <select name="product" size="1" class="verdana-11" id="product" >
          <?php
//------------------------------------------------------------------------------------------------------
//  dynamically build the product select option list from the $product array
//------------------------------------------------------------------------------------------------------
$product= array (	"Music Ace Demo" => "Music Ace Demo", "Music Ace 2 Demo" =>"Music Ace 2 Demo");
foreach($product as $field => $label) {
	echo '<option value="' . $field . '"'; if($_SESSION['product'] == $field) echo " selected"; echo '>' . $label . '</option>';
}
//------------------------------------------------------------------------------------------------------
?>
        </select></span><img src="../images/spacer2.gif" width="105" height="10" alt="">

        <select name="platform" size="1" id="platform" class="verdana-11">
          <?php
//------------------------------------------------------------------------------------------------------
//  dynamically build the platform select option list from the $product array
//------------------------------------------------------------------------------------------------------
$platform= array (	"Windows" => "Windows", "Macintosh" => "Macintosh");
foreach($platform as $field => $label) {
	echo '<option value="' . $field . '"'; if($_SESSION['platform'] == $field) echo " selected"; echo '>' . $label . '</option>';
}
//------------------------------------------------------------------------------------------------------
?>
        </select>
        </td>
      </tr>
      <tr>
        <td valign="top" class="verdana-11-spaced">First name<img src="../images/spacer2.gif" width="60" height="10" alt="">Last name</td>
      </tr>
      
      <tr>
        <td valign="top" class="verdana-11"><span class="style26">
          <input name="firstname" type="text" class="verdana-11" id="firstname" size="15" value="<?php echo @$_SESSION['firstname'];?>"></span><img src="../images/spacer2.gif" width="10" height="10" alt="">
            <input name="lastname" type="text" class="verdana-11" id="lastname" size="39" value="<?php echo @$_SESSION['lastname'];?>"></td>
        </tr>
      <tr>
        <td valign="top" class="verdana-11">Street address<img src="../images/spacer2.gif" width="125" height="10" alt=""> City</td>
      </tr>
      <tr>
        <td valign="top" class="verdana-11"><input name="street" type="text" class="verdana-11" id="street" size="30" value="<?php echo @$_SESSION['street'];?>">
          <img src="../images/spacer2.gif" width="10" height="10" alt="">
          <input name="city" type="text" class="verdana-11" id="city" size="25" value="<?php echo @$_SESSION['city'];?>"></td>
      </tr>
      <tr>
        <td align="left" valign="top" class="verdana-11">State/Province<img src="../images/spacer2.gif" width="60" height="10" alt="">Zip/Postal code<img src="../images/spacer2.gif" width="15" height="10" alt="">Country</td>
        </tr>
      <tr>
        <td valign="top" class="verdana-11"><select name="state" size="1" class="verdana-11" id="state">
            <?php
//------------------------------------------------------------------------------------------------------
//  dynamically build the State/Province select option list from the $state array
//------------------------------------------------------------------------------------------------------
$state= array (	""   => "",
				" "  => "outside USA",
				"AL" => "Alabama", "AK" => "Alaska", "AB" => "Alberta", "AS" => "American Samoa" , "AZ" => "Arizona",
				"AR" => "Arkansas", "BC" => "British Columbia", "CA" => "California", "CO" => "Colorado", "CT" => "Connecticut", 
				"DE" => "Delaware", "DC" => "Dist.of Columbia", "FL" => "Florida", "GA" => "Georgia",
				"GU" => "Guam", "HI" => "Hawaii", "ID" => "Idaho", "IL" => "Illinois",
				"IN" => "Indiana", "IA" => "Iowa", "KS" => "Kansas", "KY" => "Kentucky",
 				"LA" => "Louisiana", "ME" => "Maine", "MB" => "Manitoba", "MH" => "Marshall Islands",
 				"MD" => "Maryland", "MA" => "Massachusetts", "MI" => "Michigan", "MN" => "Minnesota",
 				"MS" => "Mississippi", "MO" => "Missouri", "MT" => "Montana", "NE" => "Nebraska",
 				"NV" => "Nevada", "NB" => "New Brunswick", "NH" => "New Hampshire", "NJ" => "New Jersey",
 				"NM" => "New Mexico", "NY" => "New York", "NF" => "Newfoundland", "NC" => "North Carolina",
 				"ND" => "North Dakota", "NT" => "Northwest Terr.", "NS" => "Nova Scotia", "OH" => "Ohio",
 				"OK" => "Oklahoma", "ON" => "Ontario", "OR" => "Oregon", "PW" => "Palau Island",
 				"PA" => "Pennsylvania", "PE" => "Prince Edward Is.", "PR" => "Puerto Rico", "QC" => "Quebec",
 				"RI" => "Rhode Island", "SK" => "Saskatchewan", "SC" => "South Carolina", "SD" => "South Dakota",
 				"TN" => "Tennessee", "TX" => "Texas", "UT" => "Utah", "VT" => "Vermont",
 				"VI" => "Virgin Islands", "VA" => "Virginia", "WA" => "Washington", "WV" => "West Virginia",
 				"WI" => "Wisconsin", "WY" => "Wyoming", "YT" => "Yukon Territory");

foreach($state as $field => $label) {
	echo '<option value="' . $field . '"'; if(@$_SESSION['state'] == $field) echo " selected"; echo '>' . $label . '</option>';
}
//------------------------------------------------------------------------------------------------------
?>
          </select>
          <img src="../images/spacer2.gif" width="10" height="10" alt="">
          <input name="zip" type="text" class="verdana-11" id="zip" size="12" value="<?php echo @$_SESSION['zip'];?>">
          <img src="../images/spacer2.gif" width="10" height="10" alt="">
          <select name="country" size="1" class="verdana-11">
            <?php
//------------------------------------------------------------------------------------------------------
// dynamically build the Country select option list from the $country array
//------------------------------------------------------------------------------------------------------
$country= array (	"" => "",
"United States" => "United States",
"Afghanistan" => "Afghanistan",
"Albania" => "Albania",
"Algeria" => "Algeria",
"American Samoa" => "American Samoa",
"Andorra" => "Andorra",
"Angola" => "Angola", 
"Anguilla" => "Anguilla", 
"Antarctica" => "Antarctica", 
"Antigua" => "Antigua", 
"Argentina" => "Argentina", 
"Armenia" => "Armenia", 
"Aruba" => "Aruba", 
"Australia" => "Australia", 
"Austria" => "Austria", 
"Azerbaijan" => "Azerbaijan", 
"Bahamas" => "Bahamas", 
"Bahrain" => "Bahrain", 
"Bangladesh" => "Bangladesh", 
"Barbados" => "Barbados", 
"Belarus" => "Belarus", 
"Belgium" => "Belgium", 
"Belize" => "Belize", 
"Benin" => "Benin", 
"Bermuda" => "Bermuda", 
"Bhutan" => "Bhutan", 
"Bolivia" => "Bolivia", 
"Bosnia and Herzegovina" => "Bosnia and Herzegovina", 
"Botswana" => "Botswana", 
"Brazil" => "Brazil", 
"British Virgin Islands" => "British Virgin Islands", 
"Brunei" => "Brunei", 
"Bulgaria" => "Bulgaria", 
"Burkina Faso" => "Burkina Faso", 
"Burma" => "Burma", 
"Burundi" => "Burundi", 
"Cambodia" => "Cambodia", 
"Cameroon" => "Cameroon", 
"Canada" => "Canada", 
"Cayman Islands" => "Cayman Islands", 
"Cape Verde" => "Cape Verde", 
"Central African Republic" => "Central African Republic", 
"Chad" => "Chad", 
"Chile" => "Chile", 
"China" => "China", 
"Colombia" => "Colombia", 
"Comoros" => "Comoros", 
"Congo (Zaire)" => "Congo (Zaire)", 
"Congo" => "Congo", 
"Cook Islands" => "Cook Islands", 
"Costa Rica" => "Costa Rica", 
"Cote d'Ivoire" => "Cote d'Ivoire", 
"Croatia" => "Croatia", 
"Cuba" => "Cuba", 
"Cyprus" => "Cyprus", 
"Czech Republic" => "Czech Republic", 
"Denmark" => "Denmark", 
"Djibouti" => "Djibouti", 
"Dominica" => "Dominica", 
"Dominican Republic" => "Dominican Republic", 
"Ecuador" => "Ecuador", 
"Egypt" => "Egypt", 
"El Salvador" => "El Salvador", 
"Equatorial Guinea" => "Equatorial Guinea", 
"Eritrea" => "Eritrea", 
"Estonia" => "Estonia", 
"Ethiopia" => "Ethiopia", 
"Falkland Islands" => "Falkland Islands", 
"Fiji" => "Fiji", 
"Finland" => "Finland", 
"France" => "France", 
"French Guiana" => "French Guiana", 
"French Polynesia" => "French Polynesia", 
"Gabon" => "Gabon", 
"The Gambia" => "The Gambia", 
"Gaza Strip and West Bank" => "Gaza Strip and West Bank", 
"Georgia" => "Georgia", 
"Germany" => "Germany", 
"Ghana" => "Ghana", 
"Gibraltar" => "Gibraltar", 
"Greece" => "Greece", 
"Greenland" => "Greenland", 
"Grenada" => "Grenada", 
"Guadeloupe" => "Guadeloupe", 
"Guam" => "Guam", 
"Guatemala" => "Guatemala", 
"Guinea" => "Guinea", 
"Guinea-Bissau" => "Guinea-Bissau", 
"Guyana" => "Guyana", 
"Haiti" => "Haiti", 
"The Holy See" => "The Holy See", 
"Honduras" => "Honduras", 
"Hong Kong" => "Hong Kong", 
"Hungary" => "Hungary", 
"Iceland" => "Iceland", 
"India" => "India", 
"Indonesia" => "Indonesia", 
"Iran" => "Iran", 
"Iraq" => "Iraq", 
"Ireland" => "Ireland", 
"Israel" => "Israel", 
"Italy" => "Italy", 
"Ivory Coast" => "Ivory Coast", 
"Jamaica" => "Jamaica", 
"Japan" => "Japan", 
"Jordan" => "Jordan", 
"Kazakhstan" => "Kazakhstan", 
"Kenya" => "Kenya", 
"Kiribati" => "Kiribati", 
"Kuwait" => "Kuwait", 
"Kyrgyzstan" => "Kyrgyzstan", 
"Laos" => "Laos", 
"Latvia" => "Latvia", 
"Lebanon" => "Lebanon", 
"Lesotho" => "Lesotho", 
"Liberia" => "Liberia", 
"Libya" => "Libya", 
"Liechtenstein" => "Liechtenstein", 
"Lithuania" => "Lithuania", 
"Luxembourg" => "Luxembourg", 
"Macau" => "Macau", 
"Macedonia" => "Macedonia", 
"Madagascar" => "Madagascar", 
"Malawi" => "Malawi", 
"Malaysia" => "Malaysia", 
"Maldives" => "Maldives", 
"Mali" => "Mali", 
"Malta" => "Malta", 
"Marshall Islands" => "Marshall Islands", 
"Martinique" => "Martinique", 
"Mauritania" => "Mauritania", 
"Mauritius" => "Mauritius", 
"Mayotte" => "Mayotte", 
"Mexico" => "Mexico", 
"Federated States of Micronesia" => "Federated States of Micronesia", 
"Moldova" => "Moldova", 
"Monaco" => "Monaco", 
"Mongolia" => "Mongolia", 
"Montserrat" => "Montserrat", 
"Morocco" => "Morocco", 
"Mozambique" => "Mozambique", 
"Namibia" => "Namibia", 
"Nauru" => "Nauru", 
"Nepal" => "Nepal", 
"Netherlands" => "Netherlands", 
"Netherlands Antilles" => "Netherlands Antilles", 
"New Caledonia" => "New Caledonia", 
"New Zealand" => "New Zealand", 
"Nicaragua" => "Nicaragua", 
"Niger" => "Niger", 
"Nigeria" => "Nigeria", 
"North Korea" => "North Korea", 
"Northern Mariana Islands" => "Northern Mariana Islands", 
"Norway" => "Norway", 
"Oman" => "Oman", 
"Pakistan" => "Pakistan", 
"Palau" => "Palau", 
"Panama" => "Panama", 
"Papua New Guinea" => "Papua New Guinea", 
"Paraguay" => "Paraguay", 
"Peru" => "Peru", 
"Philippines" => "Philippines", 
"Pitcairn Islands" => "Pitcairn Islands", 
"Poland" => "Poland", 
"Portugal" => "Portugal", 
"Puerto Rico" => "Puerto Rico", 
"Qatar" => "Qatar", 
"Reunion" => "Reunion", 
"Romania" => "Romania", 
"Russia" => "Russia", 
"Rwanda" => "Rwanda", 
"Saint Kitts and Nevis" => "Saint Kitts and Nevis", 
"Saint Lucia" => "Saint Lucia", 
"Saint Pierre and Miquelon" => "Saint Pierre and Miquelon", 
"Saint Vincent and the Grenadines" => "Saint Vincent and the Grenadines", 
"Samoa" => "Samoa", 
"San Marino" => "San Marino", 
"Sao Tome and Principe" => "Sao Tome and Principe", 
"Saudi Arabia" => "Saudi Arabia", 
"Senegal" => "Senegal", 
"Serbia and Montenegro" => "Serbia and Montenegro", 
"Seychelles" => "Seychelles", 
"Sierra Leone" => "Sierra Leone", 
"Singapore" => "Singapore", 
"Slovakia" => "Slovakia", 
"Slovenia" => "Slovenia", 
"Solomon Islands" => "Solomon Islands", 
"Somalia" => "Somalia", 
"South Africa" => "South Africa", 
"South Korea" => "South Korea", 
"Spain" => "Spain", 
"Sri Lanka" => "Sri Lanka", 
"Sudan" => "Sudan", 
"Suriname" => "Suriname", 
"Swaziland" => "Swaziland", 
"Sweden" => "Sweden", 
"Switzerland" => "Switzerland", 
"Syria" => "Syria", 
"Taiwan" => "Taiwan", 
"Tajikistan" => "Tajikistan", 
"Tanzania" => "Tanzania", 
"Thailand" => "Thailand", 
"Togo" => "Togo", 
"Tonga" => "Tonga", 
"Trinidad and Tobago" => "Trinidad and Tobago", 
"Tunisia" => "Tunisia", 
"Turkey" => "Turkey", 
"Turkmenistan" => "Turkmenistan", 
"Turks and Caicos Islands" => "Turks and Caicos Islands", 
"Tuvalu" => "Tuvalu", 
"Uganda" => "Uganda", 
"Ukraine" => "Ukraine", 
"United Arab Emirates" => "United Arab Emirates", 
"United Kingdom" => "United Kingdom", 
"United States" => "United States", 
"United States Virgin Islands" => "United States Virgin Islands", 
"Uruguay" => "Uruguay", 
"Uzbekistan" => "Uzbekistan", 
"Vanuatu" => "Vanuatu", 
"Venezuela" => "Venezuela", 
"Vietnam" => "Vietnam", 
"West Bank and Gaza Strip" => "West Bank and Gaza Strip", 
"Western Sahara" => "Western Sahara", 
"Yemen" => "Yemen",
"Yugoslavia" => "Yugoslavia",
"Zaire" => "Zaire",
"Zambia" => "Zambia",
"Zimbabwe" => "Zimbabwe" 
);

foreach($country as $field => $label) {
	echo '<option value="' . $field . '"'; if($_SESSION['country'] == $field) echo " selected"; echo '>' . $label . '</option>';
}
//------------------------------------------------------------------------------------------------------
?>
          </select></td>
        </tr>
      <tr>
        <td valign="top" class="verdana-11">E-Mail Address<img src="../images/spacer2.gif" width="190" height="10" alt="">I am a</td>
        </tr>
      <tr>
        <td valign="top" class="verdana-11"><input name="email" type="text" class="verdana-11" id="email" size="40" value="<?php echo @$_SESSION['email'];?>">
          <img src="../images/spacer2.gif" width="10" height="10" alt="">
          <select name="who" class="verdana-11">
            <?php
		  $who= array (	"" => "", "Parent" => "Parent", "Public School Music Teacher" => "Public School Music Teacher", "Private Music Teacher" => "Private Music Teacher", "Student" => "Student", "School Network Administator" => "School Network Administator", "Journalist" => "Journalist", "Other" => "Other" );
		  foreach($who as $field => $label) {
	echo '<option value="' . $field . '"'; if(@$_SESSION['who'] == $field) echo " selected"; echo '>' . $label . '</option>';
} ?>
          </select>
 
 <!-- The following code is invisible to humans and contains some trap text fields                -->
		<div style="display: none">
		If you can read this, don't touch the following text fields.<br>
		<input type="text" name="bfield" size="10" value="<?php echo @$_SESSION['bfield'];?>"><br>
		</div>
		  
		  </td>
        </tr>
      <tr>
        <td valign="top" class="verdana-11" align="center"><input name="Submit" type="submit" class="verdana-11" value="Submit"></td>
      </tr>
    </table>
	</td>
  </tr>
</table>
</form>
	</td>
  </tr>
</table>

<!-- ==============================   END CONTENT ====================================================== -->

<!-- ================================= End Content container table ================================== -->
  </td></tr></table></div><br>
 
<!-- ================================= start Footer ============================================ --><!-- #BeginLibraryItem "/Library/footer.lbi" --><table width="771" border="0" cellspacing="0" cellpadding="0" align="center" class="footer">
  <tr>
    <td>
       <div id="footernav">
          <a href="../index.htm" target="_parent">Home</a>
          <a href="../privacy.htm" target="_parent">Privacy Policy</a>
          <a href="../contactus.html" target="_parent">Contact Us</a></div>
       <div align="center">Copyright &copy; 2013 Harmonic Vision Inc.<br><br></div>
	</td>
  </tr>
</table>
<!-- #EndLibraryItem --><!-- ===============================  end Footer =============================================== -->

<br>

<!-- ==============================  close container table ======================== -->
</tr></td></table>

</body>
<script>
var isMac = navigator.platform.toUpperCase().indexOf('MAC')>=0;
if (isMac){
	// Hack
	var platformSelect = document.getElementById('platform');

	var childNodes = platformSelect.childNodes;
	var options = [];
	for (var j=0 ; j < childNodes.length ; j++){
		var node = childNodes[j];
		if (node.nodeName.toLowerCase() === 'option'){
			options.push(node);
		}
	}
	if (options.length >= 2){
		var winNode = options[0];
		var macNode = options[1];
		winNode.removeAttribute('selected');
		macNode.setAttribute('selected', 'selected');
	}
}
</script>
</html>

