// valid selector from dropdown lists

function checkCompany(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your company's description from the drop-down list.\n";
    }
return error;
}

function checkJobFunction(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your job function from the drop-down list.\n";
    }
return error;
}

function checkJobTitle(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your job title category from the drop-down list.\n";
    }
return error;
}

function checkGender(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your gender from the drop-down list.\n";
    }
return error;
}

function checkNumYears(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the number of years you have worked in interactive marketing from the drop-down list.\n";
    }
return error;
}

function checkNumShows(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the number of trade shows you have attended in the last year from the drop-down list.\n";
    }
return error;
}

function checkMktgRole(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your level of involvement in interactive/search marketing from the drop-down list.\n";
    }
return error;
}

function checkPurchRole(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your company's description from the drop-down list.\n";
    }
return error;
}

function checkWhoSem(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select who performs search marketing for your company from the drop-down list.\n";
    }
return error;
}

function checkIndustry(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your industry from the drop-down list.\n";
    }
return error;
}

function checkNumEmployees(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the number of employees at your company from the drop-down list.\n";
    }
return error;
}

function checkRev(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your company's annual revenue from the drop-down list.\n";
    }
return error;
}

function checkAdSpend(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your company's annual online advertising budget from the drop-down list.\n";
    }
return error;
}


function checkTimeFrameLocal(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your purchasing time frame for local advertising platforms from the drop-down list.\n";
    }
return error;
}

function checkFactorsLocal(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the factor most motivating you to consider buying local ad platforms from the drop-down list.\n";
    }
return error;
}

function checkImpedimentsLocal(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the impediment to buying local ad platforms from the drop-down list.\n";
    }
return error;
}

function checkPricingLocal(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the most predominant pricing model for local platform campaigns from the drop-down list.\n";
    }
return error;
}

function checkTimeFrameMobile(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select your purchasing time frame for mobile advertising platforms from the drop-down list.\n";
    }
return error;
}

function checkFactorsMobile(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the factor most motivating you to consider buying mobile ad platforms from the drop-down list.\n";
    }
return error;
}

function checkImpedimentsMobile(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the impediment to buying mobile ad platforms from the drop-down list.\n";
    }
return error;
}

function checkPricingMobile(choice) {
var error = "";
    if (choice == 0) {
    error = "Please select the most predominant pricing model for mobile platform campaigns from the drop-down list.\n";
    }
return error;
}

// exactly one radio button is chosen

function checkGeoSearch(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please indicate if you are buying, considering, or not buying Geotargeted web search ads.\n";
    }
return error;
}

function checkBusiness(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please indicate if you are buying, considering, or not buying business listings ads.\n";
    }
return error;
}

function checkWeather(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please indicate if you are buying, considering, or not buying local/mobile weather ads.\n";
    }
return error;
}

function checkNews(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please indicate if you are buying, considering, or not buying local/mobile news ads.\n";
    }
return error;
}

function checkGeoEmail(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please indicate if you are buying, considering, or not buying geotargeted email ads.\n";
    }
return error;
}

function checkLocalBizAds(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please indicate if you are buying, considering, or not buying local business ads.\n";
    }
return error;
}

function checkBizDirectory(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please indicate if you are buying, considering, or not buying business directory listing ads.\n";
    }
return error;
}

//


// Radio Button Validation
// copyright Stephen Chapman, 15th Nov 2004,14th Sep 2005
// you may copy this function but please keep the copyright notice with it
function valGeoSearch(btn) {
var error = "";
    var cnt = -1;
     for (var i=btn.length-1; i > -1; i--) {
	 if (btn[i].checked) {cnt = i; i = -1;}
     }
     if (cnt > -1) return "";
     else  {
       error = "Please indicate if you are buying, considering, or not buying geotargeted web search ads.\n";
    }
return error;
}

function valBusiness(btn) {
var error = "";
    var cnt = -1;
     for (var i=btn.length-1; i > -1; i--) {
	 if (btn[i].checked) {cnt = i; i = -1;}
     }
     if (cnt > -1) return "";
     else  {
       error = "Please indicate if you are buying, considering, or not buying business listing ads.\n";
    }
return error;
}     

function valWeather(btn) {
var error = "";
    var cnt = -1;
     for (var i=btn.length-1; i > -1; i--) {
	 if (btn[i].checked) {cnt = i; i = -1;}
     }
     if (cnt > -1) return "";
     else  {
       error = "Please indicate if you are buying, considering, or not buying local or mobile weather ads.\n";
    }
return error;
}

function valNews(btn) {
var error = "";
    var cnt = -1;
     for (var i=btn.length-1; i > -1; i--) {
	 if (btn[i].checked) {cnt = i; i = -1;}
     }
     if (cnt > -1) return "";
     else  {
       error = "Please indicate if you are buying, considering, or not buying local or mobile news ads.\n";
    }
return error;
}             

function valGeoEmail(btn) {
var error = "";
    var cnt = -1;
     for (var i=btn.length-1; i > -1; i--) {
	 if (btn[i].checked) {cnt = i; i = -1;}
     }
     if (cnt > -1) return "";
     else  {
       error = "Please indicate if you are buying, considering, or not buying geotargeted email ads.\n";
    }
return error;
}

function valLocalBizAds(btn) {
var error = "";
    var cnt = -1;
     for (var i=btn.length-1; i > -1; i--) {
	 if (btn[i].checked) {cnt = i; i = -1;}
     }
     if (cnt > -1) return "";
     else  {
       error = "Please indicate if you are buying, considering, or not buying local business  ads.\n";
    }
return error;
}


function valBizDir(btn) {
var error = "";
    var cnt = -1;
     for (var i=btn.length-1; i > -1; i--) {
	 if (btn[i].checked) {cnt = i; i = -1;}
     }
     if (cnt > -1) return "";
     else  {
       error = "Please indicate if you are buying, considering, or not buying business directory listing ads.\n";
    }
return error;
}


