function displayQuote()
{
	var quote0 = "<em>\"Marketron plays a critical role in the broadcast industry. The support, service and resources it provides for us are among the best we have experienced. We are excited to continue our relationship with them.\"</em><div class=homequoter>- Chris Redgrave, VP/General Manager, Salt Lake Radio Group, Bonneville</div>";
	
	var quote1 = "<em>\"Marketron’s ability to show us product advancements that support our long term company goals was a primary consideration in our decision. Our stations are looking to the future and trust the leadership that Marketron is providing.\"</em><div class=homequoter>- Bill Shriftman, CFO, Lotus</div>";
	
	var quote2 = "<em>\"We have a long history with Marketron and appreciate their strong commitment to both their products and clients. Marketron takes a shared interest in the success of our business and we look forward to the advances they are bringing to the industry.\"</em><div class=homequoter>- John King, SVP of Operations, Townsquare Media</div>";
	
	var quote3 = "<em>\"We are always selective in choosing partners. We forge relationships that make our company stronger. Marketron’s products, strategy and leadership values align perfectly with the goals we have for our radio business and we are pleased to continue our relationship.\"</em><div class=homequoter>- Bill Mueller, CFO, Renda Broadcasting</div>";
	
	var quote4 = "<em>\"Marketron plays a critical role in the broadcast industry. The support, service and resources it provides for us are among the best we have experienced. We are excited to continue our relationship with them.\"</em><div class=homequoter>- Chris Redgrave, VP/General Manager, Salt Lake Radio Group, Bonneville</div>";
	
	var quote5 = "<em>\"Radio has an opportunity to substantially increase its share of [digital] advertising. Stations and groups that are serious about competing for this revenue will be investing in solutions like Marketron Revenue Builder to support the commitment that they need to succeed.\"</em><div class=homequoter>- Colby Atwood, President, Borrell Associates</div>";
	
	var quote6 = "<em>\"Cox has a very successful digital strategy. Marketron Revenue Builder gives our local stations a great advantage and an opportunity to increase sales, streamline processes and provide an unlimited array of services to our advertisers.\"</em><div class=homequoter>- Neil Johnston, CFO, Cox Media</div>";
	
	var quote7 = "<em>\"As Emmis continues to seek out ways to use technology to improve sales process and customer engagement, we look to Marketron. Mediascape is a natural evolution in Marketron's commitment to strengthen our industry.\"</em><div class=homequoter>- Patrick Walsh, COO and CFO, Emmis Communications</div>";
	
	var quote8 = "<em>\"Marketron’s Mediascape will help Maverick Media operate more efficiently and profitably, while our advertisers can increase their effectiveness across the multiple advertising mediums such as digital and mobile.\"</em><div class=homequoter>- Gary Rozynek, CEO, Maverick Media</div>";
	
	var quote9 = "<em>\"The collaboration between Marketron and Harris is significant to the media industry and lays the foundation for providing us with real-time, consolidated information to manage our business more effectively.\"</em><div class=homequoter>- Mark Beck, VP of IT, Cox Media Group</div>";
	
	var quote10 = "<em>\"Beasley is excited to benefit from the openness, efficiency and opportunity Mediascape delivers to our operations as well as the wide variety of innovative services it offers to our stations and corporate office.\"</em><div class=homequoter>- Caroline Beasley, EVP/CFO, Beasley Broadcast Group</div>";
	
	var mess = new Array(quote0,quote1,quote2,quote3,quote4,quote5,quote6,quote7,quote8,quote9,quote10);
	var max = mess.length;
	var num = Math.floor((Math.random() * max));
	document.write(mess[num]);
}

function checkClasses() {
missinginfo = "";
var chks = document.getElementsByName('classes[]');
var hasChecked = false;
// Get the checkbox array length and iterate it to see if any of them is selected
	for (var i = 0; i < chks.length; i++)
	{
		if (chks[i].checked)
		{
		        hasChecked = true;
			break;
		}
	}
	// if hasChecked is false then throw the error message
	if (!hasChecked) {
missinginfo += "\n     -  You must select at least one class";
}
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.title.value == "") {
missinginfo += "\n     -  Title";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.company.value == "") {
missinginfo += "\n     -  Company";
}
if (document.form1.city.value == "") {
missinginfo += "\n     -  City";
}
if (document.form1.letters.value == "") {
missinginfo += "\n     -  Call Letters";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete all the items, as follows:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkClasses2() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.title.value == "") {
missinginfo += "\n     -  Title";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.company.value == "") {
missinginfo += "\n     -  Company";
}
if (document.form1.city.value == "") {
missinginfo += "\n     -  City";
}
if (document.form1.letters.value == "") {
missinginfo += "\n     -  Call Letters";
}
if (document.form1.request.value == "") {
missinginfo += "\n     -  Date/Time Request";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete all the items, as follows:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkAgency() {
missinginfo = "";
if (document.form1.agency.value == "") {
missinginfo += "\n     -  Agency";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.address.value == "") {
missinginfo += "\n     -  Address";
}
if (document.form1.city.value == "") {
missinginfo += "\n     -  City";
}
if (document.form1.state.value == "") {
missinginfo += "\n     -  State";
}
if (document.form1.phone.value == "") {
missinginfo += "\n     -  Phone";
}
if (document.form1.zip.value == "") {
missinginfo += "\n     -  Zip";
}
if (document.form1.contact.value == "") {
missinginfo += "\n     -  Contact";
}
if((document.form1.emailbox.checked==false)&&(document.form1.ftpbox.checked==false)) {
missinginfo += "\n     -  Delivery Method";
}
if((document.form1.emailbox.checked==true)&&(document.form1.emailDeliv.value == "")) {
missinginfo += "\n     -  Delivery Email Address";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkDemo62() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.title.value == "") {
missinginfo += "\n     -  Title";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.letters.value == "") {
missinginfo += "\n     -  Call Letters";
}
if (document.form1.market.value == "") {
missinginfo += "\n     -  Market";
}
if (document.form1.owner.value == "") {
missinginfo += "\n     -  Owner";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkDemo() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.title.value == "") {
missinginfo += "\n     -  Title";
}
if (document.form1.organization.value == "") {
missinginfo += "\n     -  Organization";
}
if (document.form1.phone.value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.state.value == "") {
missinginfo += "\n     -  State";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkDemo2() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.title.value == "") {
missinginfo += "\n     -  Title";
}
if (document.form1.station.value == "") {
missinginfo += "\n     -  Station";
}
if (document.form1.phone.value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.city.value == "") {
missinginfo += "\n     -  City";
}
if (document.form1.state.value == "") {
missinginfo += "\n     -  State";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkDemo3() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.title.value == "") {
missinginfo += "\n     -  Title";
}
if (document.form1.phone.value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}



function checkDemoSF() {
missinginfo = "";
if (document.getElementById('first_name').value == "") {
missinginfo += "\n     -  First Name";
}
if (document.getElementById('last_name').value == "") {
missinginfo += "\n     -  Last Name";
}
if (document.getElementById('title').value == "") {
missinginfo += "\n     -  Title";
}
if (document.getElementById('company').value == "") {
missinginfo += "\n     -  Organization";
}
if (document.getElementById('phone').value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.getElementById('email').value == "") ||
(document.getElementById('email').value.indexOf('@') == -1) ||
(document.getElementById('email').value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email Address";
}
if (document.getElementById('state').value == "") {
missinginfo += "\n     -  State";
}

if (missinginfo != "") {
missinginfo ="You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\n\nPlease re-enter and submit again.";
alert(missinginfo);
return false;
}
else return true;
}



function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }
	

function checkChat() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Your Name";
}
if (document.form1.letters.value == "") {
missinginfo += "\n     -  Station Call Letters";
}
if (document.form1.help.value == "") {
missinginfo += "\n     -  How We Can Help You";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkSupReq() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.phone.value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.call_letters.value == "") {
missinginfo += "\n     -  Call Letters";
}
if (document.form1.product.value == "selprod") {
missinginfo += "\n     -  Product";
}
if (document.form1.version.value == "") {
missinginfo += "\n     -  Version";
}
if (document.form1.description.value == "") {
missinginfo += "\n     -  Description";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkSalReq() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.phone.value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.state.value == "") {
missinginfo += "\n     -  State/Province";
}
if (document.form1.company.value == "") {
missinginfo += "\n     -  Organization";
}
if (document.form1.description.value == "") {
missinginfo += "\n     -  Description";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkSalReqSF() {
missinginfo = "";
if (document.getElementById('first_name').value == "") {
missinginfo += "\n     -  First Name";
}
if (document.getElementById('last_name').value == "") {
missinginfo += "\n     -  Last Name";
}
if (document.getElementById('phone').value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.getElementById('email').value == "") ||
(document.getElementById('email').value.indexOf('@') == -1) ||
(document.getElementById('email').value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email Address";
}
if (document.getElementById('state').value == "") {
missinginfo += "\n     -  State";
}
if (document.getElementById('company').value == "") {
missinginfo += "\n     -  Organization";
}
if (document.getElementById('00NE0000000bb0u').value == "") {
missinginfo += "\n     -  Product";
}
if (document.getElementById('00NE0000000buKk').value == "") {
missinginfo += "\n     -  Description";
}

if (missinginfo != "") {
missinginfo ="You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\n\nPlease re-enter and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkQC() {
missinginfo = "";
if (document.form1.name.value == "") {
missinginfo += "\n     -  Name";
}
if (document.form1.title.value == "") {
missinginfo += "\n     -  Title";
}
if (document.form1.phone.value == "") {
missinginfo += "\n     -  Phone";
}
if ((document.form1.email.value == "") || 
(document.form1.email.value.indexOf('@') == -1) || 
(document.form1.email.value.indexOf('.') == -1)) {
missinginfo += "\n     -  Valid Email Address";
}
if (document.form1.state.value == "") {
missinginfo += "\n     -  State/Province";
}
if (document.form1.company.value == "") {
missinginfo += "\n     -  Organization";
}
if (document.form1.call_letters.value == "") {
missinginfo += "\n     -  Call Letters";
}
if (missinginfo != "") {
missinginfo ="You failed to correctly complete the following items:\n" +
missinginfo + "\n_____________________________________________________" +
"\n\nPlease make sure you complete all required items and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkQCSF() {
missinginfo = "";
if (document.getElementById('first_name').value == "") {
missinginfo += "\n     -  First Name";
}
if (document.getElementById('last_name').value == "") {
missinginfo += "\n     -  Last Name";
}
if (document.getElementById('title').value == "") {
missinginfo += "\n     -  Title";
}
if ((document.getElementById('email').value == "") ||
(document.getElementById('email').value.indexOf('@') == -1) ||
(document.getElementById('email').value.indexOf('.') == -1)) {
missinginfo += "\n     -  Email Address";
}
if (document.getElementById('phone').value == "") {
missinginfo += "\n     -  Phone";
}
if (document.getElementById('company').value == "") {
missinginfo += "\n     -  Company";
}
if (document.getElementById('state').value == "") {
missinginfo += "\n     -  State";
}
if (document.getElementById('00NE0000000bb0a').value == "") {
missinginfo += "\n     -  Call Letters";
}

if (missinginfo != "") {
missinginfo ="You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\n\nPlease re-enter and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

function checkLeadsSF() {
missinginfo = "";
if (document.getElementById('first_name').value == "") {
missinginfo += "\n     -  First Name";
}
if (document.getElementById('last_name').value == "") {
missinginfo += "\n     -  Last Name";
}
if (document.getElementById('company').value == "") {
missinginfo += "\n     -  Company";
}
if (document.getElementById('phone').value == "") {
missinginfo += "\n     -  Phone";
}
if (document.getElementById('00NE0000000c5wz').value == "") {
missinginfo += "\n     -  Lead Entered By";
}
if (document.getElementById('00NE0000000bgSr').value == "") {
missinginfo += "\n     -  Lead Type";
}
if (document.getElementById('00NE0000000bapn').value == "") {
missinginfo += "\n     -  Lead Source Details";
}
if (document.getElementById('rating').value == "") {
missinginfo += "\n     -  Rating";
}
if (document.getElementById('00NE0000000bgRl').value == "") {
missinginfo += "\n     -  Lead Notes";
}

if (missinginfo != "") {
missinginfo ="You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\n\nPlease re-enter and submit again.";
alert(missinginfo);
return false;
}
else return true;
}

var randImages = new Array() 
randImages[0] = 'images/home-footer-1b.png'
randImages[1] = 'images/home-footer-2b.png'
randImages[2] = 'images/home-footer-3b.png'
var j = 0
var z = randImages.length;
var preBuffer = new Array()
for (i = 0; i < z; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = randImages[i]
}
var whichImage = Math.round(Math.random()*(z-1));
function showImage(){
document.write('<img src="'+randImages[whichImage]+'">');
}





