// Create a new array to hold image parameters
var btnElements = new Array();


// creates an object containing a default image, a rollOver image, and statusbar text.
// usage: button1 = new btnParam('images/image1.jpg', 'images/hot.jpg', 'home');
function btnParam(strSrcDef, strSrcRoll, strTxtStatus){
        if (document.images){
                this['srcDef'] = new Image();
                this['srcDef'].src = strSrcDef;
                this['srcRoll'] = new Image();
                this['srcRoll'].src = strSrcRoll;
        }
        this['txtStatus'] = strTxtStatus;
}

//                 I M A G E   D E C L A R A T I O N   F O R   R O L L O V E R S 
// Top level
// btnElements['home'] = new btnParam('images/home.jpg', 'images/home_o.jpg', "status bar message here");
btnElements['site_map'] = new btnParam('images/site_map_nav.jpg', 'images/site_map_nav_o.jpg', "Site Map");
btnElements['contact_us'] = new btnParam('images/contact_us_nav.jpg', 'images/contact_us_nav_o.jpg', "Contact Us");
btnElements['log_off'] = new btnParam('images/log_off_nav.jpg', 'images/log_off_nav_o.jpg', "Log Off");

//        E N D   O F   I M A G E   D E C L A R A T I O N 


// image rollOver methods for all images on page
function rollOver (imgName) {
    if (document.images)
        document.images[imgName].src = btnElements[imgName]['srcRoll'].src;
    window.status = btnElements[imgName]['txtStatus'];
} // ==============================================

function rollOut (imgName) {
    if (document.images)
        document.images[imgName].src = btnElements[imgName]['srcDef'].src;
    window.status = '';
} // ==============================================


function validateProfileForm() {
if (document.forms[0].firstName.value == "")
{self.alert("You must make an entry in firstName!");
document.forms[0].firstName.focus();
return false;}
if (document.forms[0].lastName.value == "")
{self.alert("You must make an entry in lastName!");
document.forms[0].lastName.focus();
return false;}
if (document.forms[0].businessType.value == "")
{self.alert("You must make an entry in businessType!");
document.forms[0].businessType.focus();
return false;}
if (document.forms[0].industry.value == "")
{self.alert("You must make an entry in industry!");
document.forms[0].industry.focus();
return false;}
if (document.forms[0].companyName.value == "")
{self.alert("You must make an entry in companyName!");
document.forms[0].companyName.focus();
return false;}
if (document.forms[0].jobTitle.value == "")
{self.alert("You must make an entry in jobTitle!");
document.forms[0].jobTitle.focus();
return false;}
if (document.forms[0].address.value == "")
{self.alert("You must make an entry in address!");
document.forms[0].address.focus();
return false;}
if (document.forms[0].city.value == "")
{self.alert("You must make an entry in city!");
document.forms[0].city.focus();
return false;}
if (document.forms[0].state.value == "")
{self.alert("You must make an entry in state!");
document.forms[0].state.focus();
return false;}
if (document.forms[0].zip.value == "")
{self.alert("You must make an entry in zip!");
document.forms[0].zip.focus();
return false;}
if (document.forms[0].telWork.value == "")
{self.alert("You must make an entry in telWork!");
document.forms[0].telWork.focus();
return false;}
if (document.forms[0].email.value == "")
{self.alert("You must make an entry in email!");
document.forms[0].email.focus();
return false;}
if (document.forms[0].notes1.value == "")
{self.alert("Please make an entry into Company Overview!");
document.forms[0].notes1.focus();
return false;}
if (document.forms[0].notes2.value == "")
{self.alert("Please make an entry indicating the types of leads you are interested in.");
document.forms[0].notes2.focus();
return false;}
}



function validateLeadForm() {
if (document.forms[0].firstName.value == "")
{self.alert("You must make an entry in firstName!");
document.forms[0].firstName.focus();
return false;}
if (document.forms[0].lastName.value == "")
{self.alert("You must make an entry in lastName!");
document.forms[0].lastName.focus();
return false;}
if (document.forms[0].companyName.value == "")
{self.alert("You must make an entry in companyName!");
document.forms[0].companyName.focus();
return false;}
if (document.forms[0].notes1.value == "")
{self.alert("Please make an entry into Lead Overview!");
document.forms[0].notes1.focus();
return false;}
}