function rndTestimonials() {
var rand1 = 0;
var useRand = 0;
var siteid = location.pathname;

if (siteid != "/Default.aspx") {
testimonials = new Array;


testimonials[1] = '<p style="color:#FFFFFF;"><i>"Amazing food, quality and professionalism. I would use your company again and always."</i><br><br><b>Chris T.<br>Voltier Inc.</b>';

testimonials[2] = '<p style="color:#FFFFFF;"><i>"You helped my kids party go smooth without a worry. That meant alot to us."</i><br><br><b>Nicole S.';

testimonials[3] = '<p style="color:#FFFFFF;"><i>"At Boca Joes , we know Italian."</i><br><br><b>Boca Joe</b>';

testimonials[4] = '<p style="color:#FFFFFF;"><i>"Our seafood is so fresh, you would think we caught it ourselves."</i><br><br><b>Boca Joe</b>';

testimonials[5] = '<p style="color:#FFFFFF;"><i>"We pride ourselves on the quality and presentation of our food selection."</i><br><br><b>Boca Joe</b>';

testimonials[6] = '<p style="color:#FFFFFF;"><i>"Our reception was an affair to remember. Thank you for your service and staff."</i><br><br><b>Steve and Kim C.</b>';

testimonials[7] = '<p style="color:#FFFFFF;"><i>"Tender and delicious! The barbeque chicken was fantastic."</i><br><br><b>Renzo C.<br>Enzo Milano Corp.</b>';

testimonials[8] = '<p style="color:#FFFFFF;"><i>"Boca Joes is our go to caterer. They do a great job on small and large affairs."</i><br><br><b>Eric S.<br>A1 Luxury Limos</b>';

testimonials[9] = '<p style="color:#FFFFFF;"><i>"We can not wait to have Boca Joes cater our next party."</i><br><br><b>The Karsch Family</b>';

testimonials[10] = '<p style="color:#FFFFFF;"><i>"Good food, good service, great party. Its nice to work with a caterer who lives up to what they offer."</i><br><br><b>Veronica L.<br>Simple Solutions Inc.</b>';

testimonials[11] = '<p style="color:#FFFFFF;"><i>"We were extremely impressed with the variety and selection."</i><br><br><b>Ben M.<br>Morey Consulting</b>';

testimonials[12] = '<p style="color:#FFFFFF;"><i>"The appetizers were so delicious ,  we kept going back for more."</i><br><br><b>Steve C.<br>Fine Audio</b>';

testimonials[13] = '<p style="color:#FFFFFF;"><i>"Thanks from all of us for making our  Anniversary Party , one to remember."</i><br><br><b>The Larson Family</b>';

testimonials[14] = '<p style="color:#FFFFFF;"><i>"Our monthly awards breakfast was a success. The food was fresh and delicious."</i><br><br><b>Monica L.<br>Southern Realty</b>';

testimonials[15] = '<p style="color:#FFFFFF;"><i>"The presentation was top notch. It looked to good to eat."</i><br><br><b>Jason G.<br>Dart Corp.</b>';

testimonials[16] = '<p style="color:#FFFFFF;"><i>"The salads were a hit at our company picnic."</i><br><br><b>Jana K.<br>Outdoor Living Concepts</b>';

testimonials[17] = '<p style="color:#FFFFFF;"><i>"Everyone loved the food , and asked who catered it. I will always recommend you to my friends."</i><br><br><b>Rob and Pam B.</b>';

testimonials[18] = '<p style="color:#FFFFFF;"><i>"Chef Joe , everything went according to plan. My husband was surprised , thanks again."</i><br><br><b>Emma G.</b>';

testimonials[19] = '<p style="color:#FFFFFF;"><i>"Chef Joe, a tremendous weight was lifted dealing with you from out of state. I spoke with my mother and she said the pastries and fruit were especially delightful. Thank you for making a difficult situation alot easier."</i><br><br><b>Pam D.</b>';

testimonials[20] = '<p style="color:#FFFFFF;"><i>"Chef Joe, you have earned some new clients for our future events."</i><br><br><b>Rita S.</b>';

testimonials[21] = '<p style="color:#FFFFFF;"><i>"The food arrived in time and the set up was fast."</i><br><br><b>Ayumary F.</b>';

testimonials[22] = '<p style="color:#FFFFFF;"><i>"We had a good time last night. The food was great as usual. Great job again!"</i><br><br><b>Debbie A.</b>';

testimonials[23] = '<p style="color:#FFFFFF;"><i>"Your food got numerous compliments, and the staff was outstanding."</i><br><br><b>Marianne T.</b>';

testimonials[24] = '<p style="color:#FFFFFF;"><i>"Joe , I want to commend your services. Our company looked great to our clients."</i><br><br><b>Barbara L.<br>Cosmopolitan Construction</b>';

testimonials[25] = '<p style="color:#FFFFFF;"><i>"Just wanted to send a quick note. The spread was wonderful. Mom is already talking up Boca Joes."</i><br><br><b>Tracy R.<br>Cosmopolitan Construction</b>';

testimonials[26] = '<p style="color:#FFFFFF;"><i>"Our employees loved the food. We will keep your number handy."</i><br><br><b>Catalina Lighting</b>';


var testnum = testimonials.length - 1;
do {
var randnum = Math.random();
rand1 = Math.round((testnum - 1) * randnum) + 1;
} while (rand1 == useRand);
useRand = rand1;
document.getElementById("testimonial").innerHTML = testimonials[useRand];
document.getElementById("testimonial").style.marginLeft="10px";
document.getElementById("testimonial").style.marginRight="10px";
document.getElementById("testimonial").style.position="absolute";
document.getElementById("testimonial").style.top="850px";
document.getElementById("testimonial").style.width="200px";
document.getElementById("testimonial").style.clear="both";
}
}

window.onload = rndTestimonials;requiredfields = new Array('first_name','First Name','last_name','Last Name','email','Email Address','phone','Phone','country','Country');
var country;
var state;
function formrules(frm)
{
    var thisform = frm;
    var elements = document.forms['aspnetForm'].elements;
    var ret = listAllRequiredFields(elements);
    if (ret == false) {return false;}
    
        for (var x = 0;x<elements.length;x++)
        {
            if (elements[x].FieldName != undefined)
            {
                
                if (elements[x].FieldName == 'country')
                {
                    country = elements[x].value;
                }
                else if (elements[x].FieldName == 'state')
                {
                    state = elements[x].value;
                }
                else if (elements[x].FieldName == 'first_name')
                {
                    ret = badFormValue(elements[x].value);
                    if (ret == true) {alert('Invalid first name');return false;}
                }

            }
        }
        if (country == 'US' && state == '')
        {
            alert('You must select a state.')
            return false;
        }
        else if (country != 'US' && state != '')
        {
            alert('Please delete your state selection.')
            return false;
        }
            
    return true;
}

function badFormValue(frmvalue)
{
    var badwords = new Array('http://*');
    for (var b = 0;b<badwords.length;b++)
    {
    var re = new RegExp(badwords[b]);
          if (frmvalue.match(re)) 
          {
            return true;
          } 
    }
return false;
}

function listAllRequiredFields(elements)
{
                for (var x = 0;x<elements.length;x++)
                {
                    for (r=0;r<requiredfields.length;r++)
                    {
                        if (requiredfields[r] == elements[x].FieldName && elements[x].value == '')
                        {
                            alert(requiredfields[r+1] + ' is required');
                            r++
                            elements[x].focus()
                            return false;
                        }
                    }
                }
return true;
}