

// JavaScript Document



// Create the mouseovers for our randomly generating images

if (document.images) {

    
   
    corp1Out = new Image
    corp1Over = new Image

    product1Out = new Image
    product1Over = new Image

    galas1Out = new Image
    galas1Over = new Image

    special1Out = new Image
    special1Over = new Image
   
   
var ran_unrounded=Math.random()*6;
var ran_number=Math.floor(ran_unrounded);
   

    switch (ran_number) {
       
        case 0:

            corp1Out.src = "images/homeCorp1.jpg"
            corp1Over.src = "images/homeCorp1Over.jpg"
       
            product1Out.src = "images/homeProduct1.jpg"
            product1Over.src = "images/homeProduct1Over.jpg"
       
            galas1Out.src = "images/homeGalas1.jpg"
            galas1Over.src = "images/homeGalas1Over.jpg"
       
            special1Out.src = "images/homeSpecial1.jpg"
            special1Over.src = "images/homeSpecial1Over.jpg"
       
        break;
       
        case 1:
       
            corp1Out.src = "images/homeCorp2.jpg"
            corp1Over.src = "images/homeCorp2Over.jpg"
       
            product1Out.src = "images/homeProduct2.jpg"
            product1Over.src = "images/homeProduct2Over.jpg"
       
            galas1Out.src = "images/homeGalas2.jpg"
            galas1Over.src = "images/homeGalas2Over.jpg"
       
            special1Out.src = "images/homeSpecial2.jpg"
            special1Over.src = "images/homeSpecial2Over.jpg"
       
        break;
   
        case 2:
       
            corp1Out.src = "images/homeCorp3.jpg"
            corp1Over.src = "images/homeCorp3Over.jpg"
       
            product1Out.src = "images/homeProduct3.jpg"
            product1Over.src = "images/homeProduct3Over.jpg"
       
            galas1Out.src = "images/homeGalas3.jpg"
            galas1Over.src = "images/homeGalas3Over.jpg"
       
            special1Out.src = "images/homeSpecial3.jpg"
            special1Over.src = "images/homeSpecial3Over.jpg"
       
        break;
   
        case 3:
       
            corp1Out.src = "images/homeCorp4.jpg"
            corp1Over.src = "images/homeCorp4Over.jpg"
       
            product1Out.src = "images/homeProduct4.jpg"
            product1Over.src = "images/homeProduct4Over.jpg"
       
            galas1Out.src = "images/homeGalas4.jpg"
            galas1Over.src = "images/homeGalas4Over.jpg"
       
            special1Out.src = "images/homeSpecial4.jpg"
            special1Over.src = "images/homeSpecial4Over.jpg"
       
        break;
   
        case 4:
       
            corp1Out.src = "images/homeCorp5.jpg"
            corp1Over.src = "images/homeCorp5Over.jpg"
       
            product1Out.src = "images/homeProduct5.jpg"
            product1Over.src = "images/homeProduct5Over.jpg"
       
            galas1Out.src = "images/homeGalas5.jpg"
            galas1Over.src = "images/homeGalas5Over.jpg"
       
            special1Out.src = "images/homeSpecial5.jpg"
            special1Over.src = "images/homeSpecial5Over.jpg"
       
        break;
   
        case 5:
       
            corp1Out.src = "images/homeCorp6.jpg"
            corp1Over.src = "images/homeCorp6Over.jpg"
       
            product1Out.src = "images/homeProduct6.jpg"
            product1Over.src = "images/homeProduct6Over.jpg"
       
            galas1Out.src = "images/homeGalas6.jpg"
            galas1Over.src = "images/homeGalas6Over.jpg"
       
            special1Out.src = "images/homeSpecial6.jpg"
            special1Over.src = "images/homeSpecial6Over.jpg"
       
        break;
       
    }

}    else {
   

corp1Out.src = ""
corp1Over.src = ""

product1Out.src = ""
product1Over.src = ""

galas1Out.src = ""
galas1Over.src = ""

special1Out.src = ""
special1Over.src = ""


document.corp1 = ""

document.product1 = ""

document.galas1 = ""

document.special1 = ""

   
}



// Form validation

function validateForm2()
{
// check name
if (document.forms[0].elements[0].value == "")
{
alert ("Please enter a name.");
return false;
}
// check password length
if (document.forms[0].elements[1].value == "")
{
alert ("Please enter your email address.");
return false;
}
// check email address

if (document.forms[0].elements[2].value == "")
{
alert ("Please enter your telephone number.");
return false;
}
if (document.forms[0].elements[3].value == "")
{
alert ("Please enter your company.");
return false;
}

return true;
}


function validateForm1()
{
// check name
if (document.forms[1].elements[0].value == "")
{
alert ("Please enter your email.");
return false;
}
// check password length
if (document.forms[1].elements[1].value == "")
{
alert ("Please enter your password.");
return false;
}

return true;
}






// Form validation

function validateForm3()
{
// check name
if (document.forms[0].elements[0].value == "")
{
alert ("Please enter your first name.");
return false;
}
// check name
if (document.forms[0].elements[1].value == "")
{
alert ("Please enter your last name.");
return false;
}
// check password length
if (document.forms[0].elements[2].value == "")
{
alert ("Please enter your email address.");
return false;
}
// check email address

if (document.forms[0].elements[3].value == "")
{
alert ("Please enter your telephone number.");
return false;
}
if (document.forms[0].elements[4].value == "")
{
alert ("Please enter your company.");
return false;
}

return true;
}


