<!--
function get_amount()
{
//alert(parseInt(document.f1.qty.value));
if (document.f1.qty.value=="")
{
document.f1.qty.value=0
}
if (document.f1.qty2.value=="")
{
document.f1.qty2.value=0
}
//alert(document.f1.tr_amount.value);
tr_amount=parseInt(document.f1.tr_amount.value);
tr_amount2=parseInt(document.f1.tr_amount2.value);
document.f1.a1.value=parseInt(document.f1.qty.value)*tr_amount;
document.f1.a2.value=parseInt(document.f1.qty2.value)*tr_amount2;
document.f1.charge.value=(parseInt(document.f1.qty.value)*tr_amount)+(parseInt(document.f1.qty2.value)*tr_amount2);
document.f1.net.value= Math.round(parseInt(document.f1.charge.value)+ parseInt(document.f1.charge.value)*.0855);
document.f1.net_amount.value=document.f1.net.value;
}

function check_number()
{
if (parseInt(document.f1.qty.value)>=1  )
{
tr_amount=parseInt(document.f1.tr_amount.value);
document.f1.Amount.value=Math.round(parseInt(document.f1.qty.value)*(tr_amount)*1.0855);
//alert(document.f1.Amount.value);
return true;
}
else
{
alert("Please enter number of persons travelling");
return false;
}
}


function check_form()
{
if (document.form1.user.value =="" )
{
alert("Please enter Member Id");
document.form1.user.focus();
return false;
}
else if (document.form1.password.value =="" )
{
alert("Please enter password");
document.form1.password.focus();
return false;
}
else
return true;
}

function check_user()
{

if ((document.form1.user.value =="") || (document.form1.user.value=="BE") )
{
alert("Please enter Member Id");
document.form1.name.focus();
}
else{
document.location.href="forgot_pass.asp?user="+document.form1.user.value
}
}





function taLimit() {
	var taObj=event.srcElement;
	if (taObj.value.length==taObj.maxLength*1) return false;
}

function taCount(visCnt) { 
	var taObj=event.srcElement;
	if (taObj.value.length>taObj.maxLength*1) 

taObj.value=taObj.value.substring(0,taObj.maxLength*1);
	if (visCnt) visCnt.innerText=taObj.maxLength-taObj.value.length;
}

///

function spaceStripper(incomingText,str1,str2)
	{
		workString=incomingText;
		while (workString.indexOf(str1)!=-1)
		{
			workString=workString.substring(0,workString.indexOf(str1))+str2+workString.substring(workString.indexOf(str1)+str1.length,workString.length);
		}
		return workString;
	}

	
///
var testresults
function checkemail()
{
var str=document.f1.email.value;
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
testresults=true;
else{
alert("Please input a valid email address!")
testresults=false;
}
return (testresults)
}

function checkbae(){
if (document.layers||document.getElementById||document.all)
return checkemail()
else
return true
}	

///

function validate()
{
//validation for email	
if ((document.f1.email.value=="") )

	{
	 alert("Please fill email.");
	return false;
	}	
	email_length=spaceStripper(document.f1.email.value," ","");
	if((email_length.length >0) && (!checkbae())) 
		{	
	return false;
		}
	
		if ((document.f1.securityCode.value=="") )
	{
	 alert("Please fill Security Code.");
	return false;
	}	
	
 }






//-->
