function GoSomewhere()
{
document.location.href="booktest.html"
}
function clearFirst()
{
	var nBox=document.frmData.strFirst
		
	if(nBox.value=="First Name")
	{
	nBox.value='';
	nBox.style.color='blue'
	
	}
}

function makeMeBig(obj)
{
	document.bigone.src=obj.src
}
	
function GP_AdvOpenWindow(theURL,winName,features,popWidth,popHeight,winAlign,ignorelink,alwaysOnTop,autoCloseTime,borderless) { //v2.0
  var leftPos=0,topPos=0,autoCloseTimeoutHandle, ontopIntervalHandle, w = 480, h = 340;  
  if (popWidth > 0) features += (features.length > 0 ? ',' : '') + 'width=' + popWidth;
  if (popHeight > 0) features += (features.length > 0 ? ',' : '') + 'height=' + popHeight;
  if (winAlign && winAlign != "" && popWidth > 0 && popHeight > 0) {
    if (document.all || document.layers || document.getElementById) {w = screen.availWidth; h = screen.availHeight;}
		if (winAlign.indexOf("center") != -1) {topPos = (h-popHeight)/2;leftPos = (w-popWidth)/2;}
		if (winAlign.indexOf("bottom") != -1) topPos = h-popHeight; if (winAlign.indexOf("right") != -1) leftPos = w-popWidth; 
		if (winAlign.indexOf("left") != -1) leftPos = 0; if (winAlign.indexOf("top") != -1) topPos = 0; 						
    features += (features.length > 0 ? ',' : '') + 'top=' + topPos+',left='+leftPos;}
  if (document.all && borderless && borderless != "" && features.indexOf("fullscreen") != -1) features+=",fullscreen=1";
  if (window["popupWindow"] == null) window["popupWindow"] = new Array();
  var wp = popupWindow.length;
  popupWindow[wp] = window.open(theURL,winName,features);
  if (popupWindow[wp].opener == null) popupWindow[wp].opener = self;  
  if (document.all || document.layers || document.getElementById) {
    if (borderless && borderless != "") {popupWindow[wp].resizeTo(popWidth,popHeight); popupWindow[wp].moveTo(leftPos, topPos);}
    if (alwaysOnTop && alwaysOnTop != "") {
    	ontopIntervalHandle = popupWindow[wp].setInterval("window.focus();", 50);
    	popupWindow[wp].document.body.onload = function() {window.setInterval("window.focus();", 50);}; }
    if (autoCloseTime && autoCloseTime > 0) {
    	popupWindow[wp].document.body.onbeforeunload = function() {
  			if (autoCloseTimeoutHandle) window.clearInterval(autoCloseTimeoutHandle);
    		window.onbeforeunload = null;	}  
   		autoCloseTimeoutHandle = window.setTimeout("popupWindow["+wp+"].close()", autoCloseTime * 1000); }
  	window.onbeforeunload = function() {for (var i=0;i<popupWindow.length;i++) popupWindow[i].close();}; }   
  document.MM_returnValue = (ignorelink && ignorelink != "") ? false : true;
}
function putFirst()
	{
	var nBox=document.frmData.strFirst
		
	if(nBox.value=="")
	{
	nBox.value='First Name';
	nBox.style.color='red'
	}
	
	}
	
function clearLast()
	{
	var nBox=document.frmData.strLast
		
	if(nBox.value=="Last Name")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putLast()
	{
	var nBox=document.frmData.strLast
		
	if(nBox.value=="")
	{
	nBox.value='Last Name';
	nBox.style.color='red'
	
	}
	
	}
	
function clearEmail()
	{
	var nBox=document.frmData.strEmail
		
	if(nBox.value=="eMail")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putEmail()
	{
	var nBox=document.frmData.strEmail
		
	if(nBox.value=="")
	{
	nBox.value='eMail';
	nBox.style.color='red'
	
	}
	
	}
function clearAddress()
	{
	var nBox=document.frmData.strAddress
		
	if(nBox.value=="Address")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putAddress()
	{
	var nBox=document.frmData.strAddress
		
	if(nBox.value=="")
	{
	nBox.value='Address';
	nBox.style.color='blue'
	
	}
	
	}
function clearState()
	{
	var nBox=document.frmData.strState
		
	if(nBox.value=="State/Province")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putState()
	{
	var nBox=document.frmData.strState
		
	if(nBox.value=="")
	{
	nBox.value='State/Province';
	nBox.style.color='blue'
	
	}
	
	}
function clearCity()
	{
	var nBox=document.frmData.strCity
		
	if(nBox.value=="City")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putCity()
	{
	var nBox=document.frmData.strCity
		
	if(nBox.value=="")
	{
	nBox.value='City';
	nBox.style.color='blue'
	
	}
	
	}
function clearZip()
	{
	var nBox=document.frmData.strZip
		
	if(nBox.value=="Zip/PostCode")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putZip()
	{
	var nBox=document.frmData.strZip
		
	if(nBox.value=="")
	{
	nBox.value='Zip/PostCode';
	nBox.style.color='blue'
	
	}
	
	}
function clearPhone()
	{
	var nBox=document.frmData.strPhone
		
	if(nBox.value=="Phone")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putPhone()
	{
	var nBox=document.frmData.strPhone
		
	if(nBox.value=="")
	{
	nBox.value='Phone';
	nBox.style.color='blue'
	
	}
	
	}
function clearFax()
	{
	var nBox=document.frmData.strFax
		
	if(nBox.value=="Fax")
	{
	nBox.value='';
	nBox.style.color='blue'
	}

	}
function putFax()
	{
	var nBox=document.frmData.strFax
		
	if(nBox.value=="")
	{
	nBox.value='Fax';
	nBox.style.color='blue'
	
	}
	
	}

function openWindow(url,name)
{
	
var widgets ="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,left=110,top=70,resizable=no,width=550,height=420"
popupWin = window.open (url,name,widgets);
popupWin.focus();
}

function openEmailWindow(url,name)
{
	
var widgets ="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,left=160,top=50,resizable=no,width=480,height=420"
popupWin = window.open (url,name,widgets);
popupWin.focus();
}


function printthis()
{
if (window.print != null) 
{ window.print(); }
 else
 { alert('Unfortunately, your browser does not support this shortcut.  Please select Print from the File menu.'); }
}

function checkRateType()
    {
	if  (document.frmData.strRateTypeName.value=="")
      {
        alert("The Rate Type Name is mandatory!"); 
        return false;
       }
	return true;      
    }

function checkRoomPricing()
    {
	if  (isNaN(document.frmData.strPrice.value))
      {
        alert("The Price figure must be a number!"); 
        return false;
       }
	return true;      
    }

function checkRoomSurcharge()
    {
	if  (isNaN(document.frmData.intSurchargeTypeId.value==""))
      {
        return false;
       }
	if  (document.frmData.strNightly.value==0)
      {
        alert("The Nightly Surcharge must be greater than zero!"); 
        return false;
       }
	if  (isNaN(document.frmData.strNightly.value))
      {
        alert("The Nightly Surcharge figure must be a number!"); 
        return false;
       }
	return true;      
    }

function checkEmailValid(emailStr)
{
	var emailPat=/^(.+)@(.+)$/
	var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
	var validChars="\[^\\s" + specialChars + "\]"
	var quotedUser="(\"[^\"]*\")"
	var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
	var atom=validChars + '+'
	var word="(" + atom + "|" + quotedUser + ")"
	var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
	var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
	var errMsg="";   
	var matchArray=emailStr.match(emailPat)
	if (matchArray==null) 
	{
	   errMsg=errMsg+"The eMail Address seems incorrect!";
	   return errMsg;
	}
	else
	{
	  var user=matchArray[1]
	  var domain=matchArray[2]
	  if (user.match(userPat)==null) 
	  {
		errMsg=errMsg+"The eMail Address seems incorrect!";
		return errMsg;       
	  }
	  var IPArray=domain.match(ipDomainPat)
	  if (IPArray!=null) 
	  {
		  for (var i=1;i<=4;i++) 
			  {
			if (IPArray[i]>255) 
				{
				errMsg=errMsg+"The eMail Address seems incorrect!";
				return errMsg;
				}//IF
			  }//for
	   }//IP Array
	   var domainArray=domain.match(domainPat)
	   if (domainArray==null) 
	   {
		 errMsg=errMsg+"The eMail Address seems incorrect!";
		 return errMsg;
	   }
	   var atomPat=new RegExp(atom,"g")
	   var domArr=domain.match(atomPat)
	   var len=domArr.length
	   if (domArr[domArr.length-1].length<2 || domArr[domArr.length-1].length>3) 
	   {
		 errMsg=errMsg+"The eMail Address seems incorrect!";
		 return errMsg;	
	   } 
	   if (len<2) 
	   {
		 errMsg=errMsg+"The eMail Address seems incorrect!";
		 return errMsg;	 
	   } 
	 }//End  Match
	return "0";
}

function checkSubscribe()
{
	if (document.frmData.strContactName.value=="")
		{
			alert("Your name is required");
			return false;
		}
	var e=document.frmData.strEmail.value;
	if (e=="")
	{
		alert("A valid email address is required to process your subscription");
		return false;
	}
	else
	{
		if (checkEmailValid(e) !="0") 
		{
			alert( checkEmailValid(e));
			return false;	
		}
	}
		

	return true;
}

//************************************************************************************
//the following validation functions made by Athena Digital Media on 3rd November 2008
//************************************************************************************
function checkRerseveWord(txt)
{
	txt=txt.toLowerCase();
	var msg="";
	var intSelectPos=txt.indexOf("select");
	var intInsertPos=txt.indexOf("insert");
	var intUpdatePos=txt.indexOf("update");
	var intDeletePos=txt.indexOf("delete");
	var intAlterPos=txt.indexOf("alter ");
	var intDropPos=txt.indexOf("drop");
	var intTruncatePos=txt.indexOf("truncate");
/*	var intWherePos=txt.indexOf("where");
	var intUnionPos=txt.indexOf("union");*/
	var intSchemaPos=txt.indexOf("schema");
	var intJoinPos=txt.indexOf("join ");
	var intExecPos=txt.indexOf("exec ");


//	if((intSelectPos==-1) && (intInsertPos==-1) && (intUpdatePos==-1) && (intDeletePos==-1) && (intAlterPos==-1) && (intDropPos==-1) && (intTruncatePos==-1) && (intWherePos==-1) && (intUnionPos==-1) && (intSchemaPos==-1) && (intJoinPos==-1) && (intExecPos==-1))

	//*********************************************************
	//took off WHERE and UNION as requested on 3rd April 2009
	//*********************************************************
	if((intSelectPos==-1) && (intInsertPos==-1) && (intUpdatePos==-1) && (intDeletePos==-1) && (intAlterPos==-1) && (intDropPos==-1) && (intTruncatePos==-1) && (intSchemaPos==-1) && (intJoinPos==-1) && (intExecPos==-1))
	{
		msg="clean";
	}
	return msg;
}

function checkContactUsPage()
{
	if(checkRerseveWord(document.form1.cname.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.email.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.phone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.altphone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.fax.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.message.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	return true;
}

function checkEditDetailsLogon()
{
	var e=document.frmData.strEmail.value;
	if (e.length==0)
	{
	   alert("The eMail Address is required!");
	   return false;
	}
	if (checkEmailValid(e)!="0") 
	{
		alert( checkEmailValid(e));
		return false;	
	}

	if(checkRerseveWord(e)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if (document.frmData.strPassword.value.length==0)
	{
	   alert("The Password is required!");
	   return false;
	}

	if(checkRerseveWord(document.frmData.strPassword.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	return true;
}

function checkSubscribeConfirm()
{
	if(document.frmData.strFirstName.value.length==0)
	{
		alert("The First Name is required!")
		return false;
	}

	if(checkRerseveWord(document.frmData.strFirstName.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(document.frmData.strLastName.value.length==0)
	{
		alert("The Last Name is required!")
		return false;
	}

	if(checkRerseveWord(document.frmData.strLastName.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if (document.frmData.strPassword.value.length==0)
	{
		alert("The Password is required!");
		return false;
	}

	if(checkRerseveWord(document.frmData.strPassword.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if (document.frmData.strConfirmPassword.value.length==0)
	{
		alert("The Confirm Password is required!");
		return false;
	}
	if (document.frmData.strPassword.value != document.frmData.strConfirmPassword.value)
	{
		alert("The Password and Confirm Password do not match!");
		return false;
	}
	var c=document.frmData.chkEmailGroup;
	var valid=false;
	for(i=0;i<c.length;++i)
	{
		if(c[i].checked)
		{
			valid=true;
		}
	}
	if(c.checked)
	{
		valid=true;
	}
	if(valid==false)
	{
		alert("Please select an Interests!");
		return false;
	}

	if(checkRerseveWord(document.frmData.strAddress.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if (document.frmData.strAddress.value.length > 250)
	{
		  alert("The length of Address must be lesser than 250 characters!");
		  return false;
	}

	if(checkRerseveWord(document.frmData.strPhone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strFax.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	return true;
}

function checkEmailThis()
{
	if(checkRerseveWord(document.frmData.strSendTo.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strName.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strEmail.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strComment.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	return true;
}

function checkForgotPassword()
{
	var e=document.frmData.strEmail.value;
	if (e.length==0)
	{
	   alert("The eMail Address is required!");
	   return false;
	}
	if (checkEmailValid(e)!="0") 
	{
		alert( checkEmailValid(e));
		return false;	
	}

	if(checkRerseveWord(e)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
}

function checkHotelForm()
{
	if(checkRerseveWord(document.form1.cname.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.email.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.phone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.form1.comment.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
}

function checkLinkInclude()
{
	if(checkRerseveWord(document.AddLinkForm.Email.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.Link.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.Title.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.URL.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.Description.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
}

function checkLinks()
{
	if(checkRerseveWord(document.AddLinkForm.Email.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.Link.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.Title.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.URL.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.AddLinkForm.Description.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
}
	
function checkUnSubscribe()
{
	var e=document.frmData.strEmail.value;
	if (e.length==0)
	{
	   alert("The eMail Address is required!");
	   return false;
	}
	if (checkEmailValid(e)!="0") 
	{
		alert( checkEmailValid(e));
		return false;	
	}

	if(checkRerseveWord(e)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if (document.frmData.strPassword.value.length==0)
	{
	   alert("The Password is required!");
	   return false;
	}

	if(checkRerseveWord(document.frmData.strPassword.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
}

function checkPkgeBooking()
{
	if  (document.frmData.strContactName.value=="")
      {
        alert("The Contact Name is required!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.strContactName.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if  (document.frmData.strEmail.value=="")
      {
        alert("The eMail Address is required!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.strEmail.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strPhone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strAddress.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strComments.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
 }

function checkHotelBooking()
    {
	if  (document.frmData.strContactName.value=="")
      {
        alert("The Contact Name is required information!"); 
        return false;
       }

	if(checkRerseveWord(document.frmData.strContactName.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if  (document.frmData.strEmail.value=="")
      {
        alert("The eMail Address is required information!"); 
        return false;
       }

	if(checkRerseveWord(document.frmData.strEmail.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strPhone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if  (document.frmData.txtDate.value=="" || document.frmData.txtDate.value=="  Click The Icon  >>>  ")
      {
        alert("The Arrival Date is missing!"); 
        return false;
       }	
	if  (document.frmData.txtDate2.value=="" || document.frmData.txtDate2.value=="  Click The Icon  >>>  ")
      {
      alert("The Departure Date is missing!"); 
      return false;
      }	

	if  (document.frmData.intAdult.value==0 && document.frmData.intChild.value==0)
      {
      alert("Please indecate the number of adults/children in your party!"); 
      return false;
      }
	var a=document.frmData.strComments.value

	if(checkRerseveWord(a)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	if (a.length>1000)
     {
       alert("Maximum of 1000 Characters allowed in the Comments!"); 
        return false;
     }
	return true;      
}

function checkTourBookingForm()
{
	if  (document.form1.strContactName.value=="")
	{
		alert("The Contact Name is required information!"); 
		return false;
	}

	if  (document.form1.email.value=="")
	{
		alert("The Contact Name is required information!"); 
		return false;
	}

	if  (document.form1.phone.value=="")
	{
		alert("The Contact Name is required information!"); 
		return false;
	}

	if  (document.form1.totPrice.value=="")
	{
		alert("The Contact Name is required information!"); 
		return false;
	}

	if  (document.form1.other.value=="")
	{
		alert("The Contact Name is required information!"); 
		return false;
	}

	if  (document.form1.comment.value=="")
	{
		alert("The Contact Name is required information!"); 
		return false;
	}
	return true;      
}

function checkSpecialBooking()
{
	if  (document.frmData.strContactName.value=="")
      {
        alert("The Contact Name is required!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.strContactName.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if  (document.frmData.strEmail.value=="")
      {
        alert("The eMail Address is required!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.strEmail.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strPhone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strAddress.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strComments.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
}

function checkFlightBooking()
 {     
    var datePat = /^(\d{1,2})(\/|-)(\d{1,2})(\/|-)(\d{4})$/;
    var dateStr = document.frmData.intMonthId.value+"-"+document.frmData.intDayId.value+"-"+document.frmData.intYearId.value
    var matchArray = dateStr.match(datePat); // is the format ok?

    month = matchArray[1]; // parse date into variables
    day = matchArray[3];
    year = matchArray[5];

    if (month < 1 || month > 12) { // check month range
        alert("The Departure Date does not appear to be a correct date!");
        return false;
    }

    if (day < 1 || day > 31) {
        alert("The Departure Date does not appear to be a correct date!");
        return false;
    }

    if ((month==4 || month==6 || month==9 || month==11) && day==31) {
        alert("The Departure Date does not appear to be a correct date!")
        return false;
    }

    if (month == 2) { // check for february 29th
        var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0));
        if (day > 29 || (day==29 && !isleap)) {
            alert("The Departure Date does not appear to be a correct date!");
            return false;
        }
    }

	if  (document.frmData.strFrom.value=="")
      {
        alert("The Departure From is mandatory!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.strFrom.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if  (document.frmData.strDestination.value=="")
      {
        alert("The Destination is mandatory!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.strDestination.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if  (document.frmData.intClassId.value==0)
      {
        alert("The Ticket Class is mandatory!"); 
        return false;
      }
	if  (document.frmData.intAdultId.value==0 && document.frmData.intInfantId.value==0 && document.frmData.intChildId.value==0)
      {
        alert("No of Adults, Infants and Children one of them is mandatory!"); 
        return false;
      }
	if  (document.frmData.strContactName.value=="")
      {
        alert("The Contact Name is mandatory!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.strContactName.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if  (document.frmData.streMail.value=="")
      {
        alert("The eMail Address is mandatory!"); 
        return false;
      }

	if(checkRerseveWord(document.frmData.streMail.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strAddress.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strCity.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strPhone.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strFax.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}

	if(checkRerseveWord(document.frmData.strOther.value)!="clean")
	{
		document.location.href="problemencountered.asp";
		return false;
	}
	return true;
}
