// JavaScript Document $(window).load (function(){ $("#loder").fadeOut("slow"); }); function fixborder3() { document.getElementById("bottom5").style.borderBottom="5px solid #A4CC6C"; } function validationcontact() { var nm=document.contactform.txtname.value; var email=document.contactform.txtemail.value; var phone=document.contactform.txttel.value; var msg=document.contactform.txtmsg.value; if(nm=="") { document.contactform.txtname.style.borderColor="red"; document.getElementById("txname").innerHTML="This field cann't be empty"; document.contactform.txtname.focus(); return false; } else if(email=="") { document.contactform.txtemail.style.borderColor="red"; document.getElementById("txemail").innerHTML="This field cann't be empty"; document.contactform.txtemail.focus(); return false; } else if(phone=="") { document.contactform.txttel.style.borderColor="red"; document.getElementById("txtel").innerHTML="This field cann't be empty"; document.contactform.txttel.focus(); return false; } else if(msg=="") { document.contactform.txtmsg.style.borderColor="red"; document.getElementById("txmsg").innerHTML="This field cann't be empty"; document.contactform.txtmsg.focus(); return false; } else { return true; } } function txtnmform() { var nm=document.contactform.txtname.value; if (nm=="") { document.contactform.txtname.style.borderColor="red"; document.contactform.txtname.focus(); } else { document.contactform.txtname.style.borderColor="silver"; document.getElementById("txemail").style.display="none"; } } function txtemailform() { var email=document.contactform.txtemail.value; if (email=="") { document.contactform.txtemail.style.borderColor="red"; document.contactform.txtemail.focus(); } else { document.contactform.txtemail.style.borderColor="silver"; document.getElementById("txtel").style.display="none"; } } function txtphoneform() { var phone=document.contactform.txttel.value; if (phone=="") { document.contactform.txttel.style.borderColor="red"; document.contactform.txttel.focus(); } else { document.contactform.txttel.style.borderColor="silver"; document.getElementById("txmsg").style.display="none"; } } function txtmsgform() { var msg=document.contactform.txtmsg.value; if (msg=="") { document.contactform.txtmsg.style.borderColor="red"; document.contactform.txtmsg.focus(); } else { document.contactform.txtmsg.style.borderColor="silver"; document.getElementById("txname").style.display="none"; } } //feedback validation function feedbackValidation() { var nm=document.feedbackform.txtNm.value; var email=document.feedbackform.txtemail.value; var title=document.feedbackform.txttitle.value; var msg=document.feedbackform.txtmsg.value; if(nm=="") { document.feedbackform.txtNm.style.borderColor="red"; document.getElementById("txname").innerHTML="This field cann't be empty"; document.feedbackform.txtNm.focus(); return false; } else if(email=="") { document.feedbackform.txtemail.style.borderColor="red"; document.getElementById("txemail").innerHTML="This field cann't be empty"; document.feedbackform.txtemail.focus(); return false; } else if(title=="") { document.feedbackform.txttitle.style.borderColor="red"; document.getElementById("txtitle").innerHTML="This field cann't be empty"; document.feedbackform.txttitle.focus(); return false; } else if(msg=="") { document.feedbackform.txtmsg.style.borderColor="red"; document.getElementById("txmsg").innerHTML="This field cann't be empty"; document.feedbackform.txtmsg.focus(); return false; } else { return true; } } function txtnmfeedbackform() { var nm=document.feedbackform.txtNm.value; if (nm=="") { document.feedbackform.txtNm.style.borderColor="red"; document.feedbackform.txtNm.focus(); } else { document.feedbackform.txtNm.style.borderColor="silver"; document.getElementById("txname").style.display="none"; } } function txtemailfeedbackform() { var email=document.feedbackform.txtemail.value; if (email=="") { document.feedbackform.txtemail.style.borderColor="red"; document.feedbackform.txtemail.focus(); } else { document.feedbackform.txtemail.style.borderColor="silver"; document.getElementById("txmail").style.display="none"; } } function txttitlefeedbackform() { var title=document.feedbackform.txttitle.value; if (title=="") { document.feedbackform.txttitle.style.borderColor="red"; document.feedbackform.txttitle.focus(); } else { document.feedbackform.txttitle.style.borderColor="silver"; document.getElementById("txtitle").style.display="none"; } } function txtmsgfeedbackform() { var msg=document.feedbackform.txtmsg.value; if (msg=="") { document.feedbackform.txtmsg.style.borderColor="red"; document.feedbackform.txtmsg.focus(); } else { document.feedbackform.txtmsg.style.borderColor="silver"; document.getElementById("txmsg").style.display="none"; } }