ConfirmPrograms($(ConfirmPrograms_FieldID), $(Espeaking), $(Academic), $(TOEFL), $(BusinessE), $(Executive));


function ConfirmPrograms(fieldChangeStatus, varEspeaking,varAcademic,varTOEFL,varBusinessE,varExecutive) {

var MyField = document.getElementById(fieldChangeStatus);

MyField.value = "False"

if (varEspeaking == true || varAcademic == true || varTOEFL == true || varBusinessE == true || varExecutive == true)
{
 MyField.value = "True"
}

}



function ConfirmVisaStatus(fieldChangeStatus, varNoVisa,varB1,varJ1,varF1,varGreenCard,varChangeStatus) {

var MyField = document.getElementById(fieldChangeStatus);

MyField.value = "False"

if (varNoVisa == true || varB1 == true || varJ1 == true || varF1 == true || varGreenCard == true || varChangeStatus == true)
{
 MyField.value = "True"
}

}

function ChangeStatus(varChangeStatus) {
var mymessage; 
mymessage = "&lt;h3&gt;Change of status?&lt;/h3&gt;&#10;&lt;p&gt;If you already are in the USA and &lt;b&gt;want to study for a short period of time&lt;/b&gt;, generally no more than 3 months, you can still register to one of         our day or evening program: We have different options available from beginner to advanced level with some electives like, Business English, Accent         Reduction, Creative Writing, American Culture, Grammar Focus or speaking Focus. Contact us or stop by the school to take a placement test and decide         which program is best for you with one of our student advisor!&lt;/p&gt;&#10;&lt;p&gt;If you are already in the USA and &lt;b&gt;want to study full time&lt;/b&gt; (18 hours of classes a week), you need to change your status to F-1:&lt;/p&gt;&#10;&lt;p&gt;1/ You need to complete the application form online:&lt;/p&gt;&#10;&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&quot;&gt;             http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx         &lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;2/ You need to scan and send me via email a copy of your passport, your current visa, I-94 form, and a bank statement with $1800 per month of studies         ($3600 for two months for example)&lt;/p&gt;&#10;&lt;p&gt;The bank statement can be the one of your sponsor (parents or friends) in that case I need also a letter from the sponsor telling us he will take care         of all your expenses in the USA (tuition and accommodation)&lt;/p&gt;&#10;&lt;p&gt;3/ you need to pay the application fee ($150), you can pay online:&lt;/p&gt;&#10;&lt;p&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&quot;&gt;             http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx         &lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;4/ You need to schedule a meeting with one of our office manager.&lt;/p&gt;&#10;&lt;p&gt;Please note we can help you for the paperwork with the immigration but one month tuition must be paid in advance.&lt;/p&gt;"

if (varChangeStatus == true)
{
 return mymessage;
}

  return '';
}



function GreenCard(varGreenCard) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        Green card holder:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        If you are a US resident, green card holder you benefit a discount, the discount does not apply to F-1, B-1 or non US resident students.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Evening program: $96 instead of $128/ 4 weeks (4 hours a week, Tuesday and Thursday, 6:30 PM to 8:30 PM): Speaking listening (conversation); TOEFL&#10;        preparation classes; Business English are available.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Evening Professional English Program + $85 a week instead of $170 (12 hours a week &amp;#8211; Tuesday, Wednesday, and Thursday &amp;#8211; 5 to 9PM)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Evening Professional English Program $60 a week instead of $120 (12 hours a week &amp;#8211; Tuesday, Wednesday, Thursday &amp;#8211; 7 to 9PM)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Intensive English Program $500/ 4 weeks instead of $1000 (20 hours a week, Monday to Thursday from 9 AM to 3 PM)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        You will have to take a placement test, so we can evaluate your level in English (speaking, writing and grammar). This test is FREE. You can also&#10;        observe a class for FREE&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        If you want to register you need to complete the application form online:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;";

if (varGreenCard == true)
{
 return mymessage;
}

  return '';
}




function F1Visa(varF1 ) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        F-1 visa:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        If you already have a F-1 visa, you may want to transfer your I-20 to our school in Colorado&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        1/ You need to complete the application form online:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        2/ You need to scan and send me via email a copy of your passport, your current I-20, and a bank statement with $1800 per month of studies ($3600 for&#10;        two months for example). The bank statement can be the one of your sponsor (parents or friends) in that case I need also a letter from the sponsor&#10;        telling us he will take care of all your expenses in the USA (tuition and accommodation)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        3/ you need to pay the application fee ($75), you can pay online:&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        4/Complete the transfer form attached, sign it, fax it or email it to our school.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.englishamerica.com/Transfer.pdf&quot;&gt;http://www.englishamerica.com/Transfer.pdf&lt;/a&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        We will contact your current school to complete the transfer and will follow up directly with you.&#10;    &lt;/p&gt;"

if (varF1 == true)
{
 return mymessage;
}

  return '';
}



function AupairMessage(varJ1) {
var mymessage; 
mymessage = "&#10;    &lt;h3&gt;&#10;        Au pair Program:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        Au pair students under a J-1 visa are eligible to attend evening or day classes. One of the great advantages of being an au pair is the chance to take&#10;        classes at American-accredited schools. The United States Department of State requires that all au pairs enroll in an accredited institution for not&#10;        less than six credit hours of academic credit or its equivalent. Your host family will contribute toward the cost of these classes. Being an au pair is&#10;        also a way to meet new people and make friends.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        At CSE you can complete your six credits (60 contact hours) and choose between the following options:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        TOEFL preparation (Day: 10:50 AM to 12:30 PM and/or 1:20PM to 3:00 PM, Monday to Thursday or Evening classes Tuesday and Thursday 6:30 PM to 8:30 PM)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        English Review (Evening from 6:30 PM to 8:30 PM Tuesday and Thursday)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Business English (From 5 PM to 7 PM and/or 7PM to 9 PM, Tuesday to Thursday), Accent Reduction (Monday to Thursday 3:30 PM to 5 PM or 6:30 PM to 8:00&#10;        PM)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Creative Writing (3:30 PM to 5:00 PM Monday to Thursday)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The tuition is $32 a week (2 classes a week, Tuesday and Thursday) and can be paid by your family.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        TOEFL preparation, English Review and Business English are available.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        In order to complete the 6 credits to maintain your J-1 status, you will need 15 weeks. ($480 for 6 credits) If you have less than 6 credits to&#10;        complete, you can attend classes for 3 weeks for each credit you need. ($96 per credit)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        You will have to take a placement test, so we can evaluate your level in English (speaking, writing and grammar). This test is FREE. You can also&#10;        observe a class for FREE&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        If you want to register you need to complete the application form online:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;&#10;";

if (varJ1 == true)
{
 return mymessage;
}

  return '';
}



function B1VISA(varB1Visa) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        B-1 visa:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        You can use your B visa (tourism or business) if you already have one, as long as the main purpose of your trip in the USA is business or recreational.&#10;        You can study English for a short term period of time and/ or if you do not know yet if you will continue to study at a University or College level.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        If you want to register:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        1/ You need to complete the application form online:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        2/ you need to pay the application fee ($75), you can pay online (non F-1 Student):&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;&#10;";
if (varB1Visa == true)
{
 return mymessage;
}

  return '';
}



function NoVisa(varNoVisa) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;         F-1 visa:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        You need to apply for a student visa (F-1) to study English in the USA as a full time student and to complete a College or University level degree.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        1/ You need to complete the application form online:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/RegistrationFormCSE/tabid/191/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        2/ You need to scan and send me via email a copy of your passport and a bank statement with $1800 per month of studies ($3600 for two months)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The bank statement can be the one of your sponsor (parents or friends) in that case I need also a letter from the sponsor telling us he will take care&#10;        of all your expenses in the USA (tuition and accommodation). It can also be the financial guarantee letter if you have a scholarship or if you are&#10;        sponsored by a company.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        3/ you need to pay the application fee and express mail ($225), you can pay online:&#10;        &lt;a href=&quot;http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&quot;&gt;&#10;            http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&#10;        &lt;/a&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Once we have all the documents we will send you within 24 hours an invitation letter and an I-20 form so you can apply for a F-1 visa with the US&#10;        embassy in your country. Please locate the US embassy by following this link:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;a href=&quot;http://www.usembassy.gov/&quot;&gt;http://www.usembassy.gov/&lt;/a&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;b&gt;&#10;            Please note: If you are a citizen from the following countries, you are allowed to travel in the USA with no visa for a maximum of 90 days (Visa&#10;            Waiver Program):&#10;        &lt;/b&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Andorra, Australia, Austria, Belgium, Brunei, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Iceland, Ireland, Italy, Japan,&#10;        Latvia, Liechtenstein, Hungary, Lithuania, Luxembourg, Malta, Monaco, New Zealand, the Netherlands, Norway, Portugal, San Marino, Singapore, Slovakia,&#10;        Slovenia, South Korea, Spain, Sweden, Switzerland, United Kingdom&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        During your short visit to the U.S. you may use some of your free time to practice English by taking a part-time course at CSE.&#10;    &lt;/p&gt;";

if (varNoVisa == true)
{
 return mymessage;
}

  return '';
}



function ExecutiveProgram(varExecutive) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        Executive Program:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        Speaking another language and being able to communicate with different cultures has always been an advantage, but these days it is crucial for your&#10;        business. Considering the growing global markets and the permanent increase of customer orientation, being able to communicate in English is&#10;        indispensable for any company that aims to keep high levels of competitiveness. In this context, being able to communicate with your clients in their&#10;        own language and knowing their culture is now a key factor in the success of any business.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The executive program is a mix of regular classes during the morning and private tutoring in the afternoon.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Monday, Tuesday, Wednesday, and Thursday class schedule&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [9 AM &amp;#8211; 10:40 AM] Grammar advanced&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [10:50 AM &amp;#8211; 12:30 PM] Writing Class&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [12:30 PM &amp;#8211; 1:20 PM] Lunch Break&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [1:30 PM &amp;#8211; 3:00 PM] Speaking and Listening advanced&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Tuition is $250 per week&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        After 3:00 PM, 1:30 hours Private tutoring Business English ($40 an hour)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Note: You may also want to ad private tutoring on Fridays for $40 an hour&#10;    &lt;/p&gt;";
if (varExecutive == true)
{
 return mymessage;
}

  return '';
}



function BusinessEnglish(varBusinessE) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        Business English:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        The Professional and Business English Program is designed to enable working professionals to improve their English communication skills.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The courses in this program are more than just &quot;business English,&quot; and they are not just for &quot;business people.&quot; They are designed to help professionals&#10;        of all types with the tools they need to interact in English with others on a personal and professional level. The materials used emphasize cultural&#10;        issues in the professional workplace, as well as different levels of discourse, networking, presentation skills, and industry trends.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The schedule is as follows:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Tuesday, Wednesday, and Thursday class schedule (12 contact hours a week) 5:00 PM to 9:00 PM&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Lab hours must be completed during the week: 10 hours (you can schedule the lab hours whenever you want from 9 AM to PM)&#10;    &lt;/p&gt;";
if (varBusinessE == true)
{
 return mymessage;
}

  return '';
}




function TOEFL(varTOEFL) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        TOEFL Preparation:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        A high score on the TOEFL (Test of English as a Foreign Language) is an essential step in being admitted to graduate or undergraduate programs at most&#10;        U.S. colleges and universities. At CSE we use the latest technology to help students polish the language skills needed for the exam and generally make&#10;        them smarter test-takers&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Students review grammar, build vocabulary, and develop reading, listening, and speaking skills. Students also do practice TOEFL tests.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The schedule for the TOEFL preparation Program is as follows:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Monday, Tuesday, Wednesday, and Thursday we have classes (20 hours a week). Fridays we have an optional activity which gets you out and about in the&#10;        city to encounter native speakers.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [9 AM &amp;#8211; 10:40 AM] TOEFL Grammar Class&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [10:50 AM &amp;#8211; 12:30 PM] TOEFL Reading &amp;amp; writing&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [12:30 PM &amp;#8211; 1:20 PM] Lunch Break&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [1:30 PM &amp;#8211; 3:00 PM] TOEFL Speaking and Listening&#10;    &lt;/p&gt;";
if (varTOEFL == true)
{
 return mymessage;
}

  return '';
}



function AcademicEnglish(varAcademic) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        Academic English:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        The Intensive Academic English Program is designed for students who need to improve their English-language skills and plan to continue their study at a&#10;        college or university in the United States. The Intensive Academic English Program is made up of small &amp;amp; friendly classes. To be successful in&#10;        classes that are conducted completely in English Immersion, students need to be able to read large amounts of academic material in English, understand&#10;        lectures given in English, think critically about the ideas they have read and heard, and express their understandings and critiques of ideas through&#10;        speaking and writing in English.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The schedule for the Academic Program is as follows:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Monday, Tuesday, Wednesday, and Thursday we have classes (20 hours a week). Fridays we have an optional activity which gets you out and about in the&#10;        city to encounter native speakers.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [9 AM &amp;#8211; 10:40 AM] Grammar Advanced Class&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [10:50 AM &amp;#8211; 12:30 PM] Reading and Writing Advanced Class&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [12:30 PM &amp;#8211; 1:20 PM] Lunch Break&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [1:30 PM &amp;#8211; 3:00 PM] Speaking and Listening Advanced Class&#10;    &lt;/p&gt;";
if (varAcademic == true)
{
 return mymessage;
}

  return '';
}



function EnglishSpeaking(varEnglish) {
var mymessage; 
mymessage = "&lt;h3&gt;&#10;        English Speaking:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        Our conversational style of instruction immerses you in your new language and makes learning fast and easy. Our instructors are native English speakers&#10;        who focus on the practical grammar and vocabulary you&amp;#8217;ll use in real-life situations. Classes are small allowing teachers and students to&#10;        interact in class as much as possible. You will also be mixed with students from different countries and cultures. We have designed the Speaking class&#10;        with only one objective in mind: The more you speak in class, the more you are corrected by your teacher, the more you learn. You will still learn&#10;        grammar, reading and writing but at your own pace.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        The&lt;b&gt; &lt;/b&gt;schedule for the Immersion Speaking Program is as follows:&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Monday, Tuesday, Wednesday, and Thursday we have classes. Fridays we have an optional activity which gets you out and about in the city to encounter&#10;        native speakers.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [9 AM &amp;#8211; 10:40 AM] Grammar Class&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [10:50 AM &amp;#8211; 12:30 PM] Reading and Writing Class&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [12:30 PM &amp;#8211; 1:20 PM] Lunch Break&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        [1:30 PM &amp;#8211; 3:00 PM] Speaking and Listening Class&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        You will also practice with your American host family after class, during the evening and week end.&#10;    &lt;/p&gt;";
if (varEnglish == true)
{
 return mymessage;
}

  return '';
}


function Tuition(varHaveAgent) {
var mymessage; 
var mymessage2;

mymessage2 = "&#10;    &lt;h3&gt;&#10;        Tuition:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        Tuition for our Intensive English Program (20 hours a week, available for F-1 students) is $250 a week, $1000 every 4 weeks.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Intensive TOEFL preparation Program and Academic English Program are $300 a week (advanced students)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Tuition for the Intensive Professional English Program (12 hours of classes and 8 lab hours, available for F-1 students) is $170 a week&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        You can start any Monday in any of our programs.&#10;    &lt;/p&gt;&#10;&#10;";
 
mymessage = "&lt;h3&gt;&#10;        Tuition:&#10;    &lt;/h3&gt;&#10;    &lt;p&gt;&#10;        &lt;u&gt;Tuition Full time Program: &lt;/u&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Tuition for our Intensive English Program (20 hours a week, available for F-1 students) is $250 a week for the first 8 weeks.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        If you apply for 12 weeks, tuition is $2750 (one week Free). You will pay $750 every 4 weeks after that.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        One year tuition is $7750.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Tuition for the Intensive Professional English Program (12 hours of classes and 8 lab hours, available for F-1 students) is $170 a week&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        You can start any Monday in any of our programs.&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Intensive TOEFL preparation Program and Academic English Program are $300 a week (advanced students)&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        &lt;u&gt;Tuition Part time Program:&lt;/u&gt;&#10;    &lt;/p&gt;&#10;    &lt;p&gt;&#10;        Contact us if you have scheduled or time constraint, we have part time day and evening programs from $25 to $120 a week. Please note, you cannot apply&#10;        for a part time program if you have a F-1 visa.&#10;    &lt;/p&gt;"

if (varHaveAgent == "No")
{
 return mymessage;
}

  return mymessage2;
}


function HostFamily(varAccomodation) {
var mymessage; 
mymessage = "&lt;h3&gt;Accommodation:&lt;/h3&gt;&#10;&lt;p&gt;You can choose to live with a US family. The cost for a room and meals is $750 per month payable directly to the family once you are in Denver. We         choose and select our families carefully and work with them for years on a regular basis.&lt;/p&gt;&#10;&lt;p&gt;1/ You have to fill out the online questionnaire, so we can select a family for you based on your interests and cultural differences:&lt;/p&gt;&#10;&lt;p&gt;&lt;a href=&quot;http://www.englishamerica.org/Home/AccomodationHomestay/HomestayQuestionnaire/tabid/115/language/en-US/Default.aspx&quot; target=&quot;_blank&quot;&gt;             http://www.englishamerica.org/Home/AccomodationHomestay/HomestayQuestionnaire/tabid/115/language/en-US/Default.aspx         &lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;2/ You also need to pay for the homestay application fee: $190&lt;/p&gt;&#10;&lt;p&gt;&lt;a href=&quot;http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx&quot; target=&quot;_blank&quot;&gt;             http://www.englishamerica.org/Applynow/CreditCardForm/tabid/188/language/en-US/Default.aspx         &lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;Once we have the application complete, we will send you a description of the family, home and location for review. You will also be in contact with the         family, via email or phone calls before traveling!&lt;/p&gt;";

if (varAccomodation == true)
{
 return mymessage;
}

  return '';
}





/***********************************************
* This function call is used to add validate that a field is an integer. 
* Example use: validateNumber($(DynamicForms_ShortFieldName))
***********************************************/


function validateNumber(fieldvalue){
if (!isNaN(fieldvalue) && (fieldvalue>0))
alert('This is a number greater than 0');
else
alert('This is not a number greater than 0');
}

/***********************************************
* This function call is used to add two decimal places to a field. For example 50.4 would be returned as 50.40 
* Example use: toTwoDecimals($(DynamicForms_ShortFieldName))
***********************************************/

function toTwoDecimals(n) {
  var s = "" + Math.round(n * 100) / 100
  var i = s.indexOf('.')
  if (i < 0) return s + ".00"
  var t = s.substring(0, i + 1) + s.substring(i + 1, i + 3)
  if (i + 2 == s.length) t += "0"
  return t
}


/***********************************************
* This function call is used to add commas to a number. For example 100000 would be returned as 100,000 
* Example use: addCommas($(DynamicForms_ShortFieldName))
***********************************************/

function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}


/***********************************************
* This function call is used to return the value of a radio button. This function can be called for using calculations with radio buttons
* Example use: funcRadioCalc($(ShortFieldName_FieldID))
***********************************************/


function  funcRadioCalc(RadioName)

 {
var chkList1= document.getElementById (RadioName);
var arrayOfCheckBoxes= chkList1.getElementsByTagName("input");
for(var i=0;i<arrayOfCheckBoxes.length;i++)
{

if (arrayOfCheckBoxes[i].checked) {
return arrayOfCheckBoxes[i].value;
}
  }
}



 /***********************************************
* This is a client side event function call is used to verify the email address via a client side event 
* Example use: verifyEmail($(ShortFieldName))
***********************************************/

function verifyEmail(emaddress){
var status = false;    
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
     if (emaddress.search(emailRegEx) == -1) {
          alert("Please enter a valid email address.");
     }
     return status;
}



 /***********************************************
* This is a client side event function call is used to verify the a required field via a client side event 
* Example use: Verifyrequired($(ShortFieldName), 'Your alert message here'))
***********************************************/


function Verifyrequired(reqfield,alerttxt){
var status = false;
 if (reqfield.value==null||reqfield.value==""){
 alert(alerttxt);
 }
 return status;
}



/***********************************************
* This function call is used to calculate the total number of characters and notify the user that they exceeded their limitations. For more details
*please  visit this URL: http://www.datasprings.com/Products/DNNModules/DynamicForms/DynamicFormsDemonstration6/tabid/842/Default.aspx
***********************************************/


 function countChars(dId,txtVal,limit)
  {
      var totalLen = txtVal.length + 1;
 
      if (totalLen < limit)
      {
          document.getElementById(dId).innerHTML = "<font color='red'>You have used " + totalLen + " of " + limit + " characters available.<br>You have " + (limit - totalLen) + " characters remaining.</font>"; 
      }
      else
      {
          document.getElementById(dId).innerHTML = "<font color='red'>You have exceeded the character limit for this field.</font>";
      }
  }




/***********************************************
* This function call will format the number into a currency format
***********************************************/



function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '$' + num + '.' + cents);
}



function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
{
alert(alerttxt);return false;
}
else
{
return true;
}
}
} 
function validate_email(field,alerttxt)
{
with (field)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2) 
{alert(alerttxt);return false;}
else {return true;}
}
}

function CalculateCheckBoxList(CheckBoxList) {
var objChkBoxLst = document.getElementById(CheckBoxList);
if(objChkBoxLst) {
var objChkBoxes = objChkBoxLst.getElementsByTagName('input');
var objChkLabels = objChkBoxLst.getElementsByTagName('label');
var i; var numSum = 0;            
for(i=0;i<objChkBoxes.length;i++) {                    
if(objChkBoxes[i].checked) {                    
numSum += GetLabelValue(objChkLabels, objChkBoxes[i].id);
}
}
}
numSum = Math.round(numSum * 100)/100;                
return (numSum);
}
function GetLabelValue(objLabelList, strForValue) {
if(objLabelList) {
var i; var numActualVal; var strElemForValue;
for(i=0;i<objLabelList.length;i++) {
if(objLabelList[i].htmlFor)
strElemForValue = objLabelList[i].htmlFor;
else
strElemForValue = objLabelList[i].getAttribute('for');
if(strElemForValue==strForValue) {                        
numActualVal = objLabelList[i].innerHTML;
if(numActualVal.indexOf('$')!=-1); {
numActualVal = numActualVal.substring(numActualVal.indexOf('$')+1, numActualVal.length);
} 
return(numActualVal*1);
}
}
}
return(0);
}
function CalculateCheckBoxListValues(CheckBoxList, CheckBoxValField) {
var objChkBoxLst = document.getElementById(CheckBoxList);
var objChkBoxVals = document.getElementById(CheckBoxValField);
var arrChkBoxVals = '';
if(objChkBoxVals)
arrChkBoxVals = objChkBoxVals.value.split('|');
if(objChkBoxLst) {
var objChkBoxes = objChkBoxLst.getElementsByTagName('input');                
var i; var numSum = 0;            
for(i=0;i<objChkBoxes.length;i++) {                    
if(objChkBoxes[i].checked) {                    
numSum += GetCBValue(i, arrChkBoxVals);
}
}
}
numSum = Math.round(numSum * 100)/100;                
return (numSum);
}
function GetCBValue(intIndex, arrChkValues) {            
if(arrChkValues) {
var i;
var arrTempVals;
var numRetVal = 0;
for(i=0;i<arrChkValues.length;i++) {
arrTempVals = arrChkValues[i].split(':');
if(arrTempVals) {
if(arrTempVals[0]==intIndex) {
numRetVal = arrTempVals[1];
if(numRetVal.indexOf('$')!=-1); {
numRetVal = numRetVal.substring(numRetVal.indexOf('$')+1, numRetVal.length);
} 
return(numRetVal*1);
}                        
}
}
}
return(0);
}      
/***********************************************
* Show Hint script- � Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
		
var horizontal_offset="9px" //horizontal offset of hint box from anchor link

/////No further editting needed

var vertical_offset="0" //horizontal offset of hint box from anchor link. No need to change.
var ie=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
}
return edgeoffset
}

function showhint(menucontents, obj, e, tipwidth){
if ((ie||ns6) && document.getElementById("hintbox")){
dropmenuobj=document.getElementById("hintbox")
dropmenuobj.innerHTML=menucontents
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (tipwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=tipwidth
}
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
dropmenuobj.style.visibility="visible"
obj.onmouseout=hidetip
}
}

function hidetip(e){
dropmenuobj.style.visibility="hidden"
dropmenuobj.style.left="-500px"
}

function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}

if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
else if (document.getElementById)
window.onload=createhintbox
























































