// JavaScript Document
			//for the hitcounter
            function hitcount(){
				document.getElementById('hidcounter').value++;
            }
			//for the validation code
			var rand_no = Math.floor((5287-4)*Math.random()) + 5;
            var iresult = rand_no;
			function showalert(custmessage){
				document.getElementById('alertcover_2').style.display = 'block';
				document.getElementById('alertdiv_2').style.display = 'block';
				document.getElementById('alertbody').innerHTML = custmessage;
			}
			function closealert(){
				document.getElementById('alertcover_2').style.display = 'none';
				document.getElementById('alertdiv_2').style.display = 'none';
			}
			function validateform(){
				var firstname = document.getElementById('firstname').value;
				var lastname = document.getElementById('lastname').value;
				var jobtitle = document.getElementById('jobtitle').value;
				var companyname = document.getElementById('companyname').value;
				var city = document.getElementById('city').value;
				var state = document.getElementById('state').value;
				var country = document.getElementById('country').value;
				
				var zipcode = document.getElementById('zipcode').value;
				var phonenumber = document.getElementById('phonenumber').value;
				var source = document.getElementById('source').value;
				var target = document.getElementById('destination').value;
				var description = document.getElementById('description').value;
				var valicode = document.getElementById('valicode').value;
				var mailad = document.getElementById('email').value;

				var mmailat = mailad.indexOf('@');
				var mmaildot = mailad.indexOf('.');
				var noymail = mailad.indexOf('yahoo.com');
				var nohmail = mailad.indexOf('hotmail.com');
				var nogmail = mailad.indexOf('gmail.com');
				
				var valid = "true";
				if(firstname == "" || firstname == " "){
					valid = "false";
					showalert('First Name Required');
				}
				if((lastname == "" || lastname == " ") && valid != "false"){
					valid = "false";
					showalert('Last Name Required');
				}
				if((jobtitle == "" || jobtitle == " ") && valid != "false"){
					valid = "false";
					showalert('Job Title Required');
				}
				if((companyname == "" || companyname == " ") && valid != "false"){
					valid = "false";
					showalert('Company Name Required');
				}
				if((city == "" || city == " ") && valid != "false"){
					valid = "false";
					showalert('City Required');
				}
				if((state == "" || state == " ") && valid != "false"){
					valid = "false";
					showalert('State Required');
				}
				if(country == 0 && valid != "false"){
					valid = "false";
					showalert('Pls Select A Country');
				}
				if((zipcode == "" || zipcode == " ") && valid != "false"){
					valid = "false";
					showalert('Zip Code Required');
				}
				if((phonenumber == "" || phonenumber == " ") && valid != "false"){
					valid = "false";
					showalert('Phone Number Required');
				}
				if((mailad == " " || mailad == "") && valid != "false"){
					valid = "false";
					showalert('Email Address Needed');
				}
				if((mmailat == -1 || mmaildot == -1) && valid != "false"){
					valid = "false";
					showalert('Invalid Email Address');
				}
				if((noymail != -1 || nohmail != -1 || nogmail != -1) && valid != "false"){
					valid = "false";
					showalert('You Cannot Use That Kind Of Email');
				}
				if(source == target && valid != "false"){
					valid = "false";
					showalert('The Source Language and the Target Language Cannot Be The Same');
				}
				if((description == "" || description == " ") && valid != "false"){
					valid = "false";
					showalert('Pls Describe Your Document');
				}				
				if(iresult != valicode && valid != "false"){
					valid = "false";
					showalert('Wrong Validation Code');
				}
				if(valid == "true"){
					return true;
				}
				else{
					return false;
				}
			}

