Confirm your Water Sports package with us at a cheapest rate.
Fill The Form To Get Best Offer
function validateTheForm(){
var name = $.trim($("#txtname").val());
var email = $.trim($("#txtemail").val());
var mobile = $.trim($("#txtnumber").val());
var destination = $.trim($("#destination").val());
if(name =='' || name =='Your Name *'){
alert('Please provide your name.');
$("#name").focus;
return false;
}
if(email =='' || email =='Your E-mail *'){
alert('Please provide email address.');
$("#email").focus;
return false;
}
if(email !='' ){
if(isValidEmail(email) == ""){
alert ( "Please provide valid email address" );
$("#email").focus;
return false;
}
}
if(mobile =='' || mobile =='Your Mobile *'){
alert('Please provide your mobile number.');
$("#mobile").focus;
return false;
}
if(mobile !='' && mobile.length != 10){
alert('Please provide your proper mobile number.');
$("#mobile").focus;
return false;
}
if(destination =='' || destination =='Select Activities'){
alert('Please provide your requirement.');
$("#description").focus;
return false;
}
$.post('https://www.seawatersports.com/goa-tour/enquiry2DBscba.php',{'name':name,'email':email,'mobile':mobile, 'description':destination},function(data){
//alert(data);
if(data == 1){
alert('Our representative will get in touch with you at earliest.');
$("#name").val('');
$("#email").val('');
$("#mobile").val('');
$("#destination").val('');
}else{
alert('there is some issue, try later.');
}
})
}
function chk_integer(field_obj){
if(isNaN(field_obj.value)) {
field_obj.value = "";
alert("Only numbers allowed.");
}else{
var n = field_obj.value.indexOf(".");
if(n > -1){
field_obj.value = field_obj.value.substr(0,n);
alert("Decimal not allowed.")
}
}
}// EOF FUNCTION
function isValidEmail(str)
{
emailRe = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/
if (!emailRe.test(str))
{
//alert('Please provide proper email ID.');
return false;
}
else
return true;
}