function validatefeedback(frm){
var error=true;
if ($("input[name='suggestion']:checked").length == 0){
$("#suggestionerr").html("Please Select a Suggestion");
$("input[name='suggestion']").css("outline","1px solid red");
error=false;
} else
{
$("#suggestionerr").html("");
$("input[name='suggestion']").css("outline","0px solid red");
}
//Subject
if ($("select[name='Subject']").val()=="-1"){
$("#subjecterr").html("Please Select a Subject");
$("select[name='Subject']").css("border","1px solid red");
error=false;
} else if ($("select[name='Subject']").val()=="other"){
$("select[name='Subject']").css("border","0px solid red");
if ($("input[name='other']").val()==""){
$("#subjecterr").html("Please enter Other value of Subject ");
$("input[name='other']").css("border","1px solid red");
error=false;
} else {
$("#subjecterr").html("");
$("input[name='other']").css("border","0px solid red");
}
} else {
$("#Subjecterr").html("");
$("select[name='Subject']").css("border","0px solid red");
}
/*
//comments
if ($("textarea[name='comments']").val()==""){
$("#commentserr").html("Please Enter Comments");
$("textarea[name='comments']").css("border","1px solid red");
error=false;
} else {
$("#commentserr").html("");
$("textarea[name='comments']").css("border","0px solid red");
}
//fname
if ($("input[name='feedName']").val()==""){
$("#feedNameerr").html("Please enter Name ");
$("input[name='feedName']").css("border","1px solid red");
error=false;
} else {
$("#feedNameerr").html("");
$("input[name='feedName']").css("border","0px solid red");
}
*/
//femail
if ($("input[name='femail']").val()==""){
$("#femailerr").html("Please enter Email ");
$("input[name='femail']").css("border","1px solid red");
error=false;
} else {
$("#femailerr").html("");
$("input[name='femail']").css("border","0px solid red");
}
//check1
/*if ($("input[name='check1']").val()==""){
$("#check1err").val="Please enter Email ";
$("input[name='check1']").css("border","1px solid red");
error=false;
} else {
$("#check1err").val="";
$("input[name='check1']").css("border","0px solid red");
}*/
return error;
}
function validatemembership(frm){
var error=true;
//fname
if ($("input[name='fname']").val() == ""){
$("#fnameerr").html("Please Enter First name");
$("input[name='fname']").css("border","1px solid red");
error=false;
} else
{
$("#fnameerr").html("");
$("input[name='fname']").css("border","0px solid red");
}
//lname
if ($("input[name='lname']").val() == ""){
$("#lnameerr").html("Please Enter First name");
$("input[name='lname']").css("border","1px solid red");
error=false;
} else
{
$("#lnameerr").html("");
$("input[name='lname']").css("border","0px solid red");
}
/*
//minit
if ($("input[name='minit']").val() == ""){
$("#miniterr").html("Please Enter Initial");
$("input[name='minit']").css("border","1px solid red");
error=false;
} else
{
$("#miniterr").html("");
$("input[name='minit']").css("border","0px solid red");
}
//ptitle
if ($("input[name='ptitle']").val() == ""){
$("#ptitleerr").html("Please Enter Title/Salutation");
$("input[name='ptitle']").css("border","1px solid red");
error=false;
} else
{
$("#ptitleerr").html("");
$("input[name='ptitle']").css("border","0px solid red");
}
//pccoup
if ($("input[name='pccoup']").val() == ""){
$("#pccouperr").html("Please Enter Occupation");
$("input[name='pccoup']").css("border","1px solid red");
error=false;
} else
{
$("#pccouperr").html("");
$("input[name='pccoup']").css("border","0px solid red");
}
//sadd
if ($("input[name='sadd']").val() == ""){
$("#sadderr").html("Please Enter Street Address");
$("input[name='sadd']").css("border","1px solid red");
error=false;
} else
{
$("#sadderr").html("");
$("input[name='sadd']").css("border","0px solid red");
}
//cadd
if ($("input[name='cadd']").val() == ""){
$("#cadderr").html("Please Enter Address");
$("input[name='cadd']").css("border","1px solid red");
error=false;
} else
{
$("#cadderr").html("");
$("input[name='cadd']").css("border","0px solid red");
}
//city
if ($("input[name='city']").val() == ""){
$("#cityerr").html("Please Enter City");
$("input[name='city']").css("border","1px solid red");
error=false;
} else
{
$("#cityerr").html("");
$("input[name='city']").css("border","0px solid red");
}
//pstate
if ($("input[name='pstate']").val() == ""){
$("#pstateerr").html("Please Enter Province/State");
$("input[name='pstate']").css("border","1px solid red");
error=false;
} else
{
$("#pstateerr").html("");
$("input[name='pstate']").css("border","0px solid red");
}
//pcode
if ($("input[name='pcode']").val() == ""){
$("#pcodeerr").html("Please Enter Postal Code/Zip");
$("input[name='pcode']").css("border","1px solid red");
error=false;
} else
{
$("#pcodeerr").html("");
$("input[name='pcode']").css("border","0px solid red");
}
//country
if ($("input[name='country']").val() == ""){
$("#countryerr").html("Please Enter Country");
$("input[name='country']").css("border","1px solid red");
error=false;
} else
{
$("#countryerr").html("");
$("input[name='country']").css("border","0px solid red");
}
*/
//wphone
if ($("input[name='wphone']").val() == ""){
$("#wphoneerr").html("Please Enter Work Phone");
$("input[name='wphone']").css("border","1px solid red");
error=false;
} else
{
$("#wphoneerr").html("");
$("input[name='wphone']").css("border","0px solid red");
}
/*
//hphone
if ($("input[name='hphone']").val() == ""){
$("#hphoneerr").html("Please Enter Home Phone");
$("input[name='hphone']").css("border","1px solid red");
error=false;
} else
{
$("#hphoneerr").html("");
$("input[name='hphone']").css("border","0px solid red");
}
//fax
if ($("input[name='fax']").val() == ""){
$("#faxerr").html("Please Enter Fax No.");
$("input[name='fax']").css("border","1px solid red");
error=false;
} else
{
$("#faxerr").html("");
$("input[name='fax']").css("border","0px solid red");
}
*/
//pemail
if ($("input[name='pemail']").val() == ""){
$("#pemailerr").html("Please Enter E-mail");
$("input[name='pemail']").css("border","1px solid red");
error=false;
} else
{
$("#pemailerr").html("");
$("input[name='pemail']").css("border","0px solid red");
}
/*
//purl
if ($("input[name='purl']").val() == ""){
$("#purlrr").html("Please Enter URL");
$("input[name='purl']").css("border","1px solid red");
error=false;
} else
{
$("#purlrr").html("");
$("input[name='purl']").css("border","0px solid red");
}
//psex
if ($("input[name='psex']").val() == ""){
$("#psexerr").html("Please Select Sex");
$("input[name='psex']").css("outline","1px solid red");
error=false;
} else
{
$("#psexerr").html("");
$("input[name='psex']").css("outline","0px solid red");
}
//purl1
if ($("input[name='purl1']").val() == ""){
$("#purl1err").html("Please Enter URl");
$("input[name='purl1']").css("border","1px solid red");
error=false;
} else
{
$("#purl1err").html("");
$("input[name='purl1']").css("border","0px solid red");
}
//bcountry
if ($("input[name='bcountry']").val() == ""){
$("#bcountryerr").html("Please Enter Country Of Birth");
$("input[name='bcountry']").css("border","1px solid red");
error=false;
} else
{
$("#bcountryerr").html("");
$("input[name='bcountry']").css("border","0px solid red");
}
//dob
if ($("input[name='dob']").val() == ""){
$("#doberr").html("Please Enter DOB");
$("input[name='dob']").css("border","1px solid red");
error=false;
} else
{
$("#doberr").html("");
$("input[name='dob']").css("border","0px solid red");
}
//mstatus
if ($("select[name='mstatus']").val() == "-1"){
$("#mstatuserr").html("Please Select Marital Status");
$("select[name='mstatus']").css("border","1px solid red");
error=false;
} else
{
$("#mstatuserr").html("");
$("select[name='mstatus']").css("border","0px solid red");
}
//sname1
if ($("input[name='sname1']").val() == ""){
$("#sname1err").html("Please Enter Name Of Sponsor #1");
$("input[name='sname1']").css("border","1px solid red");
error=false;
} else
{
$("#sname1err").html("");
$("input[name='sname1']").css("border","0px solid red");
}
//sphone1
if ($("input[name='sphone1']").val() == ""){
$("#sphone1err").html("Please Enter Telephone Number Of Sponsor #1");
$("input[name='sphone1']").css("border","1px solid red");
error=false;
} else
{
$("#sphone1err").html("");
$("input[name='sphone1']").css("border","0px solid red");
}
//sname2
if ($("input[name='sname2']").val() == ""){
$("#sname2err").html("Please Enter Name Of Sponsor #2");
$("input[name='sname2']").css("border","1px solid red");
error=false;
} else
{
$("#sname2err").html("");
$("input[name='sname2']").css("border","0px solid red");
}
//sphone2
if ($("input[name='sphone2']").val() == ""){
$("#sphone2err").html("Please Enter Telephone Number Of Sponsor #2");
$("input[name='sphone2']").css("border","1px solid red");
error=false;
} else
{
$("#sphone2err").html("");
$("input[name='sphone2']").css("border","0px solid red");
}
//sponsor1
if ($("input[name='sponsor1']").val() == ""){
$("#sponsor1err").html("Please Enter Name Of Sponsor #3");
$("input[name='sponsor1']").css("border","1px solid red");
error=false;
} else
{
$("#sponsor1err").html("");
$("input[name='sponsor1']").css("border","0px solid red");
}
//sphone2
if ($("input[name='sponsor1tel']").val() == ""){
$("#sponsor1telerr").html("Please Enter Telephone Number Of Sponsor #3");
$("input[name='sponsor1tel']").css("border","1px solid red");
error=false;
} else
{
$("#sponsor1telerr").html("");
$("input[name='sponsor1tel']").css("border","0px solid red");
}
*/
//iagree
if ($("input[name='iagree']:checked").length == 0){
$("#iagreeerr").html("Please Select I agree");
$("input[name='iagree']").css("outline","1px solid red");
error=false;
} else
{
$("#iagreeerr").html("");
$("input[name='iagree']").css("outline","0px solid red");
}
return error;
}