function checkVNewsform(){
            document.getElementById('vmsg').value = "";
            document.getElementById('vmsg').style.color="black";
            document.getElementById('fnameVal').style.color="#0077BB";
            document.getElementById('lnameVal').style.color="#0077BB";
            document.getElementById('employerVal').style.color="#0077BB";
            document.getElementById('addressVal').style.color="#0077BB";
            document.getElementById('cityVal').style.color="#0077BB";
            document.getElementById('stateVal').style.color="#0077BB";
            document.getElementById('countryVal').style.color="#0077BB";
            document.getElementById('zipVal').style.color="#0077BB";
            document.getElementById('phoneVal').style.color="#0077BB";
            document.getElementById('emailVal').style.color="#0077BB";



if (!document.vnews.fname.value.trim()) {
         document.getElementById('vmsg').value = "*Your first name is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('fnameVal').style.color="red";
         document.vnews.fname.focus();
         return false;
}
else if (!document.vnews.lname.value.trim()) {
         document.getElementById('vmsg').value = "*Your last name is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('lnameVal').style.color="red";
         document.vnews.lname.focus();
         return false;
}
else if (!document.vnews.employer.value.trim()) {
         document.getElementById('vmsg').value = "*Your employer is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('employerVal').style.color="red";
         document.vnews.employer.focus();
         return false;
}
else if (!document.vnews.address.value.trim()) {
         document.getElementById('vmsg').value = "*Your address is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('addressVal').style.color="red";
         document.vnews.address.focus();
         return false;
}
else if (!document.vnews.city.value.trim()) {
         document.getElementById('vmsg').value = "*Your city is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('cityVal').style.color="red";
         document.vnews.city.focus();
         return false;
}
else if (!document.vnews.state.value.trim()) {
         document.getElementById('vmsg').value = "*Your state/province is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('stateVal').style.color="red";
         document.vnews.state.focus();
         return false;
}
else if (document.vnews.country.options[0].selected) {
         document.getElementById('vmsg').value = "*Your country is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('countryVal').style.color="red";
         document.vnews.country.focus();
         return false;
}

else if (!document.vnews.zip.value.trim()) {
         document.getElementById('vmsg').value = "*Your zip code is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('zipVal').style.color="red";
         document.vnews.zip.focus();
         return false;
}
else if (!document.vnews.phone.value.trim()) {
         document.getElementById('vmsg').value = "*Your phone number is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('phoneVal').style.color="red";
         document.vnews.phone.focus();
         return false;
}
else if (!document.vnews.email.value.trim()) {
         document.getElementById('vmsg').value = "*Your e-mail address is required";
         document.getElementById('vmsg').style.color="red";
         document.getElementById('emailVal').style.color="red";
         document.vnews.email.focus();
         return false;
}
		 
else if(!document.vnews.email.value || document.vnews.email.value.indexOf("@") < 1 || document.vnews.email.value.indexOf(".") < 1){                
                document.getElementById('vmsg').value = "*A valid e-mail address is required";
                document.getElementById('vmsg').style.color="red";
                document.getElementById('emailVal').style.color="red";
                document.vnews.email.focus();
         	return false;
}

else
   document.vnews.submit();

		 
}		 
//List of States
var countryList=['-- Select --','United States','Canada','Afghanistan','Albania','Algeria','American Samoa','Andorra','Angola',
'Antigua & Barbuda','Argentina','Armenia','Aruba','Australia','Austria','Azerbaijan','Bahamas',  
'Bahrain','Bangladesh', 'Barbados', 'Bassas da India', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda',  
'Bhutan', 'Bolivia', 'Bosnia & Herzegovina','Botswana', 'Brazil', 'British Indian Ocean Terr.',  
'Brunei Darussalam','Bulgaria','Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Cape Verde', 
'Cayman Islands', 'Central African Rep.', 'Chad', 'Chile', 'China', 'Clipperton', 'Colombia', 'Comoros',  
'Congo','Cook Islands','Costa Rica','Cote d Ivoire','Croatia','Cuba','Cyprus','Czech Rep.', 
'Dem. Rep. of the Congo', 'Denmark', 'Djibouti',  
'Dominica','Dominican Rep.','Ecuador','Egypt','El Salvador','Equatorial Guinea','Eritrea','Estonia',  
'Ethiopia','Europa','Falkland Islands','Faroe Islands', 'Fiji','Finland', 'France', 'French Guiana', 
'French Polynesia','Gabon', 'Gambia', 'Georgia', 'Germany', 'Ghana', 'Gibraltar','Glorieuses','Greece','Greenland',  
'Grenada', 'Guadeloupe', 'Guam', 'Guatemala', 'Guernsey', 'Guinea', 'Guinea-Bissau', 'Guyana', 'Haiti','Holy See', 
'Honduras', 'Hungary', 'Iceland', 'India', 'Indonesia', 'Iran', 'Iraq','Ireland','Isle of Man', 'Israel', 'Italy', 'Jamaica',  
'Japan', 'Jersey','Jordan','Juan de Nova', 'Kazakhstan', 'Kenya', 'Kiribati','Korea','Kuwait','Kyrgyzstan','Lao','Latvia',  
'Lebanon','Lesotho','Liberia', 'Libyan Arab Jamahiriya','Liechtenstein', 'Lithuania','Luxembourg', 'Macedonia', 
'Madagascar', 'Malawi', 'Malaysia', 'Maldives','Mali', 'Malta', 'Mariana Islands', 'Marshall Island','Martinique',  
'Mauritania', 'Mauritius', 'Mayotte', 'Mexico', 'Micronesi','Monaco', 'Mongolia', 'Montserrat', 'Morocco', 'Mozambique',  
'Myanmar', 'Namibia', 'Nauru','Nepal', 'Netherlands', 'Netherlands Antilles', 'New Caledonia', 'New Zealand', 'Nicaragua',  
'Niger', 'Nigeria', 'Niue','Norway', 'Oman','Pakistan', 'Palau','Panama', 'Papua New Guinea', 'Paraguay', 'Peru', 'Philippines',  
'Pitcairn Islands', 'Poland', 'Portugal', 'Puerto Rico', 'Qatar','Rep. of Moldova','Rep. of Korea', 'Reunion', 'Romania',  
'Russian Federation', 'Rwanda', 'Saint Helena', 'Saint Kitts & Nevis', 'Saint Lucia', 'Saint Pierre & Miquelon',  
'Saint Vincent','Samoa','San Marino','Sao Tome & Principe','Saudi Arabia', 'Senegal', 'Serbia & Montenegro', 
'Seychelles', 'Sierra Leone', 'Singapore', 'Slovakia', 'Slovenia','Solomon Islands','Somalia', 'South Africa',  
'South Georgia', 'Southern terr.', 'Spain', 'Sri Lanka', 'Sudan', 'Suriname',  
'Swaziland', 'Sweden', 'Switzerland', 'Syrian Arab Rep.','Tajikistan','Thailand', 'The Former Yugoslav','Rep. of Macedonia', 
'Timor-Leste','Togo', 'Tonga','Trinidad & Tobago', 'Tromelin', 'Tunisia', 'Turkey', 'Turkmenistan', 'Turks & Caicos Islands', 
'Tuvalu','Uganda', 'Ukraine', 'United Arab Emirates', 'United Kingdom','United Rep. of Tanzania','Uruguay',  
'Uzbekistan','Vanuatu', 'Venezuela','Viet Nam', 'Virgin Islands (GB)', 'Virgin Islands (US)', 'Wallis & Futuna Islands',  
'Yemen', 'Zambia', 'Zimbabwe']; 

function writeCountries(){
    for(var i = 0; i < countryList.length; i++){
         document.write('<option value="' + countryList[i] + '">' + countryList[i] + '</option>'); 
    }
}
