// JavaScript Document

function winopen(){
	window.open("requestcall.php", "requestcall", "menubar=no, width=500, height=450,toolbar=no, scrollbars=no");
}

var quotations = new Array()
quotations[0]= '<span class="quotes-blue">Teresa K.</span><br/><strong>Burlington, North Carolina</strong><br/><br/>I wish every service I used was like yours. Richard was extremely knowledgeable and actually took the time to teach me how Medicare supplements work. I <span class="quotes-red">was able to save $84/month </span>and kept the same plan letter I had before.';
quotations[1]= '<span class="quotes-blue">Bob C.</span><br/><strong>Effingham, Illinois</strong><br/><br/>You know they just don\'t make this stuff easy on a 65 year old.  If it weren\'t for you guys I think I would have had to take a course on how Medicare and supplements work.  I appreciate your service and will definitely refer all my fellow Medicare-aged friends to you.';
quotations[2]= '<span class="quotes-blue">Mattie N.</span><br/><strong>Spring, Texas</strong><br/><br/>I wish I would have found you guys when I first got on Medicare.  I figure I <span class="quotes-red">would have saved about $2500 in premiums </span>over that time if I knew the benefits of a plan F were the same regardless of which company I went with.  Thanks for helping me save $$.';
quotations[3]= '<span class="quotes-blue">Jim & Sally H.</span><br/><strong>Pinehurst, North Carolina</strong><br/><br/>I would have been willing to pay for the service you guys offer but it was nice to learn it was free.  I was so pleasantly surprised to learn that Jim and I could <span class="quotes-red">save almost $170/month </span>and get the same exact coverage from another insurance company.';
quotations[4]= '<span class="quotes-blue">Doug & Mary F.</span><br/><strong>Mount Prospect, Illinois</strong><br/><br/>It\'s hard to believe we were able to get the same plan F with another company and <span class="quotes-red">save almost $100 a month</span>. Mary and I would like to thank you very much. We\'ll definitely send folks your way.';
quotations[5]= '<span class="quotes-blue">Mike & Courtney D.</span><br/><strong>Richmond, Virginia</strong><br/><br/>I don\'t think I\'ve ever been more pleased with a service than I have been in dealing with your staff.  Everybody was both friendly and knowledgeable and I felt my best interests were always considered.';

function display()
{
	a=0;
	document.getElementById('slideshow').innerHTML=quotations[a];
}
function previous()
{
	a--;
	if(a<0)
	{
		a=quotations.length-1;	
	}
	document.getElementById('slideshow').innerHTML=quotations[a];
}
function next()
{
	a++;
	if(a>=quotations.length)
	{
		a=0;	
	}
	document.getElementById('slideshow').innerHTML=quotations[a];
}
/*
function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value==""||value=="Enter Zip Code")
  {alert(alerttxt);return false;}
else {return true}
}
}

function validate_form(thisform)
{
with (thisform)
{
if (validate_required(zip,"Please fill out the zip code")==false)
  {email.focus();return false;}
}
}
*/

function changecolor(){
	document.getquotes.zip.style.color = "#330066";	
}

function validateform(){
  if ((document.getquotes.zip.value == "")||(document.getquotes.zip.value == null)||(document.getquotes.zip.value == "Enter Zip Code")) {
    alert( "Please enter in a valid zip code" );
  }
  else if (!document.getquotes.tnc.checked){
	  alert("You must agree to our terms and conditions before proceeding");
  }
  else{
	return document.getquotes.submit();  
  }
}

function hideDiv() {
document.getElementById('wthvideo').style.visibility = 'hidden';
}