function Popup()
{
	var popupURL ="ourinfo.html";
	var popup = window.open(popupURL,"Popup",'tollbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=430,height=250');
	if(navigator.appName.substring(0,8) == "netscape" )
	{
		popup.location = popupURL;
	}
}


function head()
{
	document.writeln('<table width=790 align=center background="images/t1.jpg">');
	document.writeln('<tr><td align=left height="90" valign= top>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/o1.gif" width=70>&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/global.gif" width=610 height = 85></td></tr>');
	document.writeln('<tr><td class="text8" align=right>Camps</td></tr> ');
//	document.writeln('</table>');
	document.writeln('</table>');
}


function foot()
{
	document.writeln('<table width="790" cellpadding="0" cellspacing="0" border="0" align="center" >');
	document.writeln('<tr>');
	document.writeln('<td background="images/f1.jpg" align=center class="text2" height="10">');
		document.writeln('<table align="center" width="90%"><tr><td>');
		document.writeln('<table align="center" ID="Table3" width="80%">');
		
		document.writeln('<tr><td class="text7">Omega International Group, Inc</td></tr>');
		document.writeln('<tr><td class="text7">1937 NE Loop 410 Suite 200</td></tr>');
		document.writeln('<tr><td class="text7">San Antonio, TX 78217</td></tr>');
		
		document.writeln('</table></td><td>');
		document.writeln('<table align="center" ID="Table4" width="80%">');
		
		document.writeln('<tr><td class="text7">Telephone: 210-805-8808</td></tr>');
		document.writeln('<tr><td class="text7">Fax: 210-805-0828</td></tr>');
		document.writeln('<tr><td class="text7">Toll Free: 1-877-805-8808</td></tr>');
		
		document.writeln('</table></td><td>');
		document.writeln('<table align="center" ID="Table1" width="80%">');
		
		document.writeln('<tr><td></td></tr>');
		document.writeln('<tr><td class="text7"><a  class="link5" href="http://www.omegaco.com" target=_blank>http://www.omegaco.com</a></td></tr>');
		document.writeln('<tr><td class="text7"><a  class="link5" href="mailto:info@omegaco.com">E-mail: info@omegaco.com</a></td></tr>');
		
		document.writeln('</table></td></tr>');
		document.writeln('</table>');
	document.writeln('</td></tr>');
	document.writeln('</table>');
	
}


function sitemenu()
{
		document.writeln('<table align="center" background="./images/menu.gif" height="20" width="790" ID="Table2">');
		document.writeln('<tr><td>');
		document.writeln('<div style="z-index:1;position:relative;"><div style="display:none;"><ul id="imenus0" style="width:790px">');
		document.writeln('<li  style="width:60px;"><a href="default.htm">Home</a></li>');
		document.writeln('<li  style="width:100px;"><a href="p2.htm">Omega Institute</a></li>');
		document.writeln('<li  style="width:160px;"><a href="programs.htm"><font color="e6e6e6">Programs<br> Sample Activities</font></a></li>');
		
			document.writeln('<div><ul style="width:160px;top:-1px;left:0px;"><div>');
			document.writeln('<li ><a href="programs.htm">Programs and Sample Activities</a></li>');
			document.writeln('<li ><a href="thingstosee.htm">Things you will see...</a></li>');
			document.writeln('<li ><a href="thingstolearn.htm">Things you will learn...</a></li>');
			document.writeln('<li ><a href="education.htm">Get a deeper look into education...</a></li>');
			document.writeln('<li ><a href="thingstoex.htm">Things you will experience...</a></li>');
			document.writeln('<li ><a href="fun.htm">The fun you will have...</a></li>');
			document.writeln('</div></ul></div>');
		
		document.writeln('<li  style="width:150px;"><a href="#"><font color="e6e6e6">China<br>Discovery</font></a>');
		
			document.writeln('	<div><ul style="width:150px;top:1px;left:0px;"><div>');
			document.writeln('	<li ><a href="apply.htm">Applying China Discovery</a></li>');
			document.writeln('	<li ><a href="itinerary.htm">Preliminary Itinerary</a></li>');
			//document.writeln('	<li ><a href="regform.asp" target=_blank>Apply Online</a></li>');
			document.writeln('	<li ><a href="faq.htm">Frequently Asked Questions</a></li>');
			document.writeln('	<li ><a href="rules.htm">Rules and Regulations</a></li>');
			document.writeln('	<li ><a href="terms.htm">General Terms & Conditions</a></li>');
			document.writeln('	<li ><a href="health.htm">Health Care Insurance</a></li>');
			document.writeln('	<li ><a href="traveldoc.htm">Travel Documents</a></li>');
			document.writeln('	<li ><a href="mis.htm">Miscellaneous</a></li>');
			document.writeln('	</div></ul></div></li>');
		
		document.writeln('<li  style="width:125px;"><a href="p3.htm">Previous Camps</a></li>');
		document.writeln('<li  style="width:150px;"><a href="#"><font color="e6e6e6">Texas Exploration<br>探索德克萨斯</font></a>');
		
			document.writeln('	<div><ul style="width:150px;top:1px;left:0px;"><div>');
			document.writeln('	<li ><a href="exTexas.htm">Exploring Texas</a></li>');
			document.writeln('	<li ><a href="Agenda.htm">Agenda of University Tour</a></li>');
			document.writeln('	<li ><a href="pdfs/brochure_oi.pdf" target=_blank >Brochure</a></li>');
			document.writeln('	<li ><a href="pdfs/EXApplication.pdf" target=_blank>Download Application Form</a></li>');
			document.writeln('	<li ><a href="exTexas_cn.htm">探索德克萨斯</a></li>');
			document.writeln('	<li ><a href="Agenda_cn.htm">美国大学观光行程</a></li>');
			document.writeln('	<li ><a href="pdfs/brochure_oi_cn.pdf" target=_blank >宣传册</a></li>');
			document.writeln('	<li ><a href="pdfs/EXApplication.pdf" target=_blank>下载申请表</a></li>');
			
			document.writeln('	</div></ul></div></li>');
			
		document.writeln('</table>');
				
		/*document.writeln('<table width="900" bgcolor="#802222" height="10" border="0" align="center" cellpadding="0" cellspacing="0" ID="Table4">');
		document.writeln('<tr> <td height="5"> </td> </tr> </table>');*/
}
		
		function imenus_data0()
{


	this.enable_visual_design_mode = false

	this.main_is_horizontal = true
	this.menu_showhide_delay = 150


   /*---------------------------------------------
   Expand Icon Images
   ---------------------------------------------*/

	this.main_expand_image = "http://www.opencube.com/vim/arrow_main.gif"
	this.main_expand_image_hover = "http://www.opencube.com/vim/arrow_main.gif"
	this.main_expand_image_width = "16"
	this.main_expand_image_height = "9"

	this.sub_expand_image = "http://www.opencube.com/vim/arrow_sub.gif"
	this.sub_expand_image_hover = "http://www.opencube.com/vim/arrow_sub.gif"
	this.sub_expand_image_width = "10"
	this.sub_expand_image_height = "13"



   /*---------------------------------------------
   Global Menu Styles
   ---------------------------------------------*/

	//Main Menu

	this.main_container_styles = "background-color:; background-image:; border-style:solid; border-color:#769bba; border-width:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; "
	this.main_item_styles = "background-color:; background-image:; color:#e6e6e6; text-align:center; font-family:Arial; font-size:12px; font-weight:bold; text-decoration:none; padding-top:2px; padding-right:5px; padding-bottom:2px; padding-left:5px; border-style:none; border-color:#000000; border-width:0px; "
	this.main_item_hover_styles = "background-color:#003366; background-image:; color:#e6e6e6; font-weight:; text-decoration:; "
	this.main_item_active_styles = "background-color:#003366; background-image:; color:#e6e6e6; font-weight:; text-decoration:; "


	//Sub Menu

	this.subs_container_styles = "background-color:#cce3f8; background-image:; border-style:solid; border-color:#356595; border-width:1px; padding-top:5px; padding-right:5px; padding-bottom:5px; padding-left:5px; "
	this.subs_item_styles = "background-color:; background-image:; color:#111111; text-align:left; font-family:; font-size:11px; font-weight:normal; text-decoration:none; padding-top:2px; padding-right:5px; padding-bottom:2px; padding-left:5px; border-style:none; border-color:#000000; border-width:1px; "
	this.subs_item_hover_styles = "background-color:#ffffff; background-image:; color:#255585; font-weight:; text-decoration:; "
	this.subs_item_active_styles = "background-color:#ffffff; background-image:; color:#255585; font-weight:; text-decoration:; "


}

function showliability()
    {
    	var newWind;
    	newWind = window.open("liability.htm","subWindow","scrollbars,HEIGHT=500,WIDTH=600");
    	newWind.focus();
}
function checkerr(form)
  {
        //check student's first name
               var e=form.elements.First.value
               if (required(e))
               {
               alert("Student's first name is required.");
               form.elements.First.focus();
               return false;
               }
               //check student's last name
               var e=form.elements.Last.value
				if (required(e))
               {
               alert("Student's last name is required.");
               form.elements.Last.focus();
               return false;
               }
               //check student's DOB
                var e=form.elements.DOB.value
				if (required(e))
               {
               alert("Student's date of birth is required.");
               form.elements.DOB.focus();
               return false;
               }
               //check gender
               var e=form.elements.gender.value
               if (required(e))
               {
               alert("Please select student's gender.");
               form.elements.gender.focus();
               return false;
               }
               //check street
               var e=form.elements.street.value
                if (required(e))
               {
               alert("Street is required.");
               form.elements.street.focus();
               return false;
               }
               //check city
               var e=form.elements.city.value
                if (required(e))
               {
               alert("City is required.");
               form.elements.city.focus();
               return false;
               }
               //check state
               var e=form.elements.state.value
                if (required(e))
               {
               alert("Please select your state.");
               form.elements.state.focus();
               return false;
               }
               //check zip
               var e=form.elements.zip.value
                if (required(e))
               {
               alert("Please type in your zipcode.");
               form.elements.zip.focus();
               return false;
               }
              if ( !isNumber(e) || e.length < 5)
              {
              alert("Zipcode should be a 5 digits number.");
              form.elements.zip.focus();
             return false;  
             }  
             //check home phone
              var e=form.elements.hphone.value
                if (required(e))
               {
               alert("Home phone is required.");
               form.elements.hphone.focus();
               return false;
               }
               if (!isNumber(e) || e.length <10 )
               {
               alert("Phone number should be a 10 digits number.");
                form.elements.hphone.focus();
               return false;
               }
               //check cell phone number
                var e=form.elements.cphone.value
                if (e.length >0 && (!isNumber(e) || e.length <10))
                {
				alert("Cell phone number should be a 10 digits number.");
				form.elements.cphone.focus();
				return false;	
				}
				//check email format
				var e=form.elements.email.value
				if ((e.indexOf("@") < 0) || (e.indexOf(".") < 0))
				{
				alert("Invalid email address " + e + ".\nEmail address should have name@domain.abc format,\nsuch as name@domain.com");
				form.elements.email.focus();
				return false;
				}
				//check father's work phone digits
				var e=form.elements.fwphone.value
				 if (e.length > 0 && (!isNumber(e) || e.length <10 ))
				{
				alert("Phone number should be a 10 digits number.");
					form.elements.fwphone.focus();
				return false;
				}
				//check father's email format
				var e=form.elements.fmail.value
				if (e.length > 0 && (  (e.indexOf("@") < 0) || (e.indexOf(".") < 0)))
				{
				alert("Invalid email address " + e + ".\nEmail address should have name@domain.abc format,\nsuch as name@domain.com");
				form.elements.fmail.focus();
				return false;
				}
				//check mother's work phone digits
				var e=form.elements.mwphone.value
				 if (e.length > 0 && (!isNumber(e) || e.length <10 ))
				{
				alert("Phone number should be a 10 digits number.");
					form.elements.mwphone.focus();
				return false;
				}
				//check mother's email format
				var e=form.elements.mmail.value
				if (e.length > 0 && (  (e.indexOf("@") < 0) || (e.indexOf(".") < 0)))
				{
				alert("Invalid email address " + e + ".\nEmail address should have name@domain.abc format,\nsuch as name@domain.com");
				form.elements.mmail.focus();
				return false;
				}
				
				//check Emergency contact info
				 var e=form.elements.efirst.value
               if (required(e))
               {
               alert("Emergency contact info is required.");
               form.elements.efirst.focus();
               return false;
               }
                var e=form.elements.elast.value
               if (required(e))
               {
               alert("Emergency contact info is required.");
               form.elements.elast.focus();
               return false;
               }
				 //check emergency contact  phone
              var e=form.elements.ephone.value
                if (required(e))
               {
               alert("The phone number for emergency contact is required.");
               form.elements.ephone.focus();
               return false;
               }
               if (!isNumber(e) || e.length <10 )
               {
               alert("Phone number should be a 10 digits number.");
                form.elements.ephone.focus();
               return false;
               }
                //check insurance contact  phone
               var e=form.elements.inphone.value
				 if (e.length > 0 && (!isNumber(e) || e.length <10 ))
				{
				alert("Phone number should be a 10 digits number.");
					form.elements.inphone.focus();
				return false;
				}
               
               //check agree check box
                var e=form.elements.agree
                if (!e.checked)
                {
                alert("Please read the Liability Release. Then check the checkbox before submit the application.");
                 form.elements.agree.focus();
				  return false;
                }
                return true;
   }

function isNumber(value) {
	for (var i=0; i < value.length; i++) {
		a = parseInt(value.charAt(i));
		if (isNaN(a)) {
			return false;			
			break;
		}
	}
	return true;
}

function required(value)
{
if (value.length <=0)
return true;
else
return false;
}