﻿function UpdateContext (a)
	{
		var Text1 = document.getElementById("contenttext");
		
		if (a == 5)
			{Text1.innerHTML = "<p><object width='540' height=35'><param name='movie' value='http://www.youtube.com/v/YR4khS6AG4k?fs=1&amp;hl=en_US'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='http://www.youtube.com/v/YR4khS6AG4k?fs=1&amp;hl=en_US' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' width='540' height='385'></embed></object></p><p>Gary Speicher interviewed Bob Luellen about why your homeowner&#8217;s plan may not be the best way to insure your prize boat! Bob spoke to the NPAA Conference members on Saturday, January 8, 2011. Please check out this video for excellent information about the right way to insure your boat and contact Bob with any questions.</p>";}
		if (a == 4)
			{Text1.innerHTML = "<h2>Quick Quotes</h2><a href='sailboats.php'>Sailboats</a><br /><br /><a href='bassboats.php'>Bass Boats<br /></a><br /><a href='walleyeboats.php'>Walleye Boats<br /></a><br /><a href='cigaretteboats.php'>Cigarette Boats<br /></a><br /><a href='yachts.php'>Yachts</a>";}
		if (a == 3)
			{Text1.innerHTML = "<h2>Services</h2><br />SERVICE<br /><br />The team members at Worldwide Marine Underwriters are experienced marine underwriters as well as avid boaters. We are committed to prompt, personal and professional service.<br /><br />PRICE<br /><br />Discover the most comprehensive marine insurance available. Worldwide Marine Underwriters have exclusive programs that fit your needs with the best rates anywhere.<br /><br />COVERAGE<br /><br />• Stated Value Policies<br />• Agreed Value Policies<br />• Protection and Indemnity Liability<br />• Medical Payments Coverage for your guests<br />• Personal Effects Coverage (contents)<br />• Deductible Options, Towing Coverage, Uninsured Boater Protection<br /><br />DISCOUNTS<br /><br />Most of our clients qualify for special savings based on experience, equipment and courses. Talk to your Worldwide Marine Underwriter today for more information and to see if you qualify.<br /><br />STATED VALUE POLICIES<br /><br />In the event of a total loss, you will receive the amount shown on the declarations page of your policy.<br /><br />AGREED VALUE POLICIES<br /><br />Some of our policies are Agreed Value Policies. This means you and your insurance company agree at the very beginning of the policy period what your boat is worth. In the event of a total loss due to fire, theft, sinking, etc., they will pay that agreed amount without a subtraction for depreciation and without the deductible being applied on a total loss.<br /><br /><br /><br />PROTECTION and INDEMNITY LIABILITY<br /><br />1. Bodily Injury<br />2. Property Damage<br />3. Jones Act<br />4. Death on the High Seas Act<br />5. Wreck Removal (sinking)<br />6. U.S. Longshoreman's and Harborworkers<br />7. Maintenance &amp; Cure<br />8. Negligence for unseaworthy vessel<br />9. Damages in &quot;Rem&quot; (the vessel)<br />10. Defense in Admiralty Jurisdiction<br /><br />WATERCRAFT LIABILITY<br /><br />1. Bodily Injury<br />2. Property Damage<br /><br />MEDICAL PAYMENT COVERAGE<br /><br />Coverage payment for the insured and guests who are injured while on board the boat, boarding, or departing from the boat.<br /><br />PERSONAL EFFECTS COVERAGE<br /><br />This includes coverage for clothing, personal effects, fishing gear and sports equipment owned by you, your family or guests on board your boat. Money, jewelry, traveler's checks and other valuable papers or documents are not included for this coverage.<br /><br />TOWING COVERAGE<br /><br />This coverage applies to any service charge the insured may incur by receiving marine assistance. This may include coverage for a service charge for towing due to engine failure, mechanical breakdown, grounding and delivery of fuel.<br /><br />UNINSURED BOATER COVERAGE<br />	<br />Coverage that is a secondary medical payment coverage for the insured only. If you are injured by an uninsured boater or a hit and run vessel, Uninsured Boater Coverage will pay the insured for any medical expenses above and beyond the Medical Payment Coverage limit. Many watercraft liability policies do not include Uninsured Boater coverage.";}
		if (a == 2)
			{Text1.innerHTML = "<h2>News</h2><br />Worldwide Marine Underwriters–<br /><br />Co-hosted the Smoke on the Water Poker Run in Grand Haven, Michigan from 2003 to 2006. This event brought over 100 of the most exotic performance boats in the country. In the years the even was held, we were able to raise over $160,000 for the Make-A-Wish Foundation of Michigan, as well as provide over 200 boat rides for the kids. Make sure you go to the video section on this site to watch the videos of the event.<br /><br />Bob Luellen";}
		if (a == 1)
			{Text1.innerHTML = "<h2><font id='contenttext'>About Us</font></h2><p>Worldwide Marine Underwriters is the premiere marine insurance provider for the boating industry - period. The company was founded by Bob Luellen - an avid boater, angler, and 25-plus-year veteran within the marine trade.</p><p>Worldwide Marine Underwriters only insures boats. It offers special programs for all types of watercraft, including pleasure boats, performance boats, cruisers, yachts, sailboats, charter boats and fishing boats.</p><p>The principal trust behind Worldwide Marine is not only its committed professionals, but the A+ rated insurance carriers that Worldwide Marine Underwriters represents. Worldwide Marine has the authority to quote, underwrite and bind, and can provide you with coverage within minutes.</p><p>Service - Worldwide Marine is staffed by only the most experienced underwriters - professionals who are committed to giving you prompt, professional and personal service. The entire team is made up of avid boaters, and understands your boating insurance needs. And in the event of a claim, Worldwide underwriters are the very people who will be helping you with the claim. </p><p>Price - Looking for the most comprehensive marine insurance available as well as the best rates? Worldwide marine has exclusive programs to fit your boating insurance needs and can offer you the best of both. </p><p>Discounts - Many boaters qualify for special savings based on their experience, applied boating and safety courses and equipment. Ask one of Worldwide Marine's underwriters to see where you qualify.</p><p>Coverage - Worldwide Marine offers the most comprehensive marine insurance coverage available, including:</p><ul><li type='disc'>Agreed Value Programs</li><li type='disc'>Protection and Indemnity Liability</li><li type='disc'>Medical payment Coverage for guests</li><li type='disc'>Personal Effects Coverage (contents)</li><li type='disc'>Fishing Equipment Coverage</li><li type='disc'>Deductible Options, Towing Coverage, Uninsured Boater Protection and more</li></ul><p>To put it simply: No other marine agency has more knowledge of the boating industry than Worldwide Marine.</p><p>Your Community - Worldwide Marine is not only committed to insuring the boating industry, but is steadfast in giving back to the community. Example: Worldwide Marine was a major supporter of the &quot;Smoke on the Water Poker Run&quot;, out of Grand Haven, Michigan - a charity event to benefit the Make-A-Wish Foundation of Michigan. The institution grants the wishes of children, under the age of 18, living with life-threatening medical conditions. The event raised over $170,000 for the Make-A-Wish Foundation of Michigan, as well as provided over 200 boat ride wishes for children.</p><p>Contact Worldwide Marine Underwriters today!<br />Call: 800-339-1235<br />Fax: 517-627-3355<br />Fill out our Quick Quote Form</p><p>Bob Luellen - Marine underwriter and producer, and a 20-year insurance veteran with over 25 years of knowledge in the marine industry. He is the founder of Worldwide Marine Underwriters Inc.</p><p>Diana Weber - Office manager, marine account manager, and certified insurance service representative (CISR)</p><p>Bill Stehouwer - Marine underwriter with over 25 years in the marine industry</p><p>Amber Clark - Customer Service Representative</p><p>Hanna Weber - Customer Service Representative</p>";}
		if (a == 6)
			{Text1.innerHTML = "<h2>Link to us:</h2><p>Help us make it easier for your associates to find our page.</p><table width='540' border='0' cellspacing='8' cellpadding='0'><tr><td><a href='http://www.worldwidemarineins.com'><img src='http://www.worldwidemarineins.com/images/WorldWideMarineWebLink300x150.jpg' alt='WorldWide Marine Underwriters - International Marine Insurance - Bass, Walleye, Cruiser, Yacht and Cigarette Boat Coverage' width='300' height='150' border='0' /></a></td></tr><tr><td>300x150 Logo - Copy/Paste the code below into your webpage:</td></tr><tr><td bgcolor='#eeeeee'><font color='#346b43'>&lt;a href=&quot;http://www.worldwidemarineins.com&quot;&gt;&lt;img src=&quot;http://www.worldwidemarineins.com/images/WorldWideMarineWebLink300x150.jpg&quot; alt=&quot;WorldWide Marine Underwriters - International Marine Insurance - Bass, Walleye, Cruiser, Yacht and Cigarette Boat Coverage&quot; width=&quot;300&quot; height=&quot;150&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</font></td></tr><tr height='16'><td height='16'></td></tr><tr><td><a href='http://www.worldwidemarineins.com'><img src='http://www.worldwidemarineins.com/images/WorldWideMarineWebLink200x60.jpg' alt='WorldWide Marine Underwriters - International Marine Insurance - Bass, Walleye, Cruiser, Yacht and Cigarette Boat Coverage' width='200' height='60' border='0' /></a></td></tr><tr><td>200x60 Logo - Copy/Paste the code below into your webpage:</td></tr><tr><td bgcolor='#eeeeee'><font color='#346b43'>&lt;a href=&quot;http://www.worldwidemarineins.com&quot;&gt;&lt;img src=&quot;http://www.worldwidemarineins.com/images/WorldWideMarineWebLink200x60.jpg&quot; alt=&quot;WorldWide Marine Underwriters - International Marine Insurance - Bass, Walleye, Cruiser, Yacht and Cigarette Boat Coverage&quot; width=&quot;200&quot; height=&quot;60&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;</font></td></tr></table>";}

	}

function validateFormOnSubmit(theForm)
	{
		var reason = "";

		
			reason = validateEmpty(theForm.Name_Insured);
			reason += validateEmpty(theForm.FromWhere);
			reason += validateEmpty(theForm.Date_Of_Birth);
			reason += validateEmpty(theForm.Home_Phone);
			reason += validateEmpty(theForm.Email);
			reason += validateEmpty(theForm.Street_Address);
			reason += validateEmpty(theForm.City);
			reason += validateEmpty(theForm.State);
			reason += validateEmpty(theForm.Zip);
			reason += validateEmpty(theForm.Years_of_Experience);
			reason += validateEmpty(theForm.Moving_Violation_Operator_1);
			reason += validateEmpty(theForm.Hull_Year);
			reason += validateEmpty(theForm.Manufacturer);
			reason += validateEmpty(theForm.Model);
			reason += validateEmpty(theForm.Material);
			reason += validateEmpty(theForm.Length);
			reason += validateEmpty(theForm.Purchase_Date);
			reason += validateEmpty(theForm.Prior_Boats_Owned);
			reason += validateEmpty(theForm.Machinery_Year);
			reason += validateEmpty(theForm.Make);
			reason += validateEmpty(theForm.No_Of_Engines);
			reason += validateEmpty(theForm.Total_Horse_Power);
			reason += validateEmpty(theForm.Propulsion_System);
			reason += validateEmpty(theForm.Current_Prior_Provider);
			reason += validateEmpty(theForm.Hull_Equipment);
			reason += validateEmpty(theForm.Deductible);
			reason += validateEmpty(theForm.Other_Deductible);
			reason += validateEmpty(theForm.P_I_Liability);
			reason += validateEmpty(theForm.Trailer);
			
			if (reason != "")
			{
				reason = "Please complete all required fields";
			}

			reason += validateEmail(theForm.Email);
				      
			if (reason != "")
			{
				alert("Some fields need correction:\n" + reason);
				return false;
			}
				
				return true;
	}
			
function trim(s)
	{
		return s.replace(/^\s+|\s+$/, '');
	} 
			
function validateEmail(fld)
	{
		var error="";
		var tfld = trim(fld.value);                        // value of field with whitespace trimmed off
		var emailFilter = /^[^@]+@[^@.]+\.[^@]*\w\w$/ ;
		var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ ;
			    
		if (fld.value == "") {
			fld.style.background = 'khaki';
			error = "Please enter an email address.\n";
			    } else if (!emailFilter.test(tfld)) {              //test email for illegal characters
			        fld.style.background = 'khaki';
			        error = "Please enter a valid email address.\n";
			    } else if (fld.value.match(illegalChars)) {
			        fld.style.background = 'khaki';
			        error = "The email address contains illegal characters.\n";
			    } else {
			        fld.style.background = 'White';
		}
		return error;
	}
			
function validateEmpty(fld)
	{
		var error = "";
			  
		//if (fld.value.length == 0)
		//if (!fld || fld.length === 0 || fld.replace(/\s+/g,"")=="")
		if (!fld || fld.value.length === 0)

			{
				fld.style.background = 'khaki'; 
			    error = "Required fields must be completed.\n"
			}
		else
			{
			    fld.style.background = 'White';
			}
    	return error;   
	}
