// JavaScript Document
function check()
 {
 	if(document.addform.term.checked==false)
	{
 		alert("Please Accept Term and Condition")
		window.document.addform.term.value="";
		window.document.addform.term.focus()
		return false;
	}
 }
 
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height,sb,stat)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'width='+width+',height='+height+',left='+left+', top='+top+',scrollbars='+sb+',status='+stat+'');
}
function sel()
{
	window.document.ferry.rdate.focus()
}
function ferry()
{
	if(document.ferry.routetype.checked==true)
	{
		if(window.document.ferry.rdate.value=="")
		{
	 		alert("Please Enter return date")
			window.document.ferry.rdate.focus()
			return false;
		}
	}
	return true;
}


//no of items

function showPax(paxCode){
var setPax;
var totPax;

	setPax='';
	totPax='';
	totPax=parseInt(document.frmstorage.nitems.value);

for(i=2;i<=totPax;i++)
	{
	//	alert();
	setPax+= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td align="center" width="30%" class="normalbold"><input type="text" name="description'+i+'" value="" class="textField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="width'+i+'" value="" class="smalltextField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="length'+i+'" value="" class="smalltextField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="height'+i+'" value="" class="smalltextField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="weight'+i+'" value="" class="smalltextField" /></td></tr></table>';
//alert(setPax);
	}
	document.getElementById(paxCode+'Block').innerHTML=setPax
//	document.getElementById(paxCode).innerHTML=setPax;
}

function showPax1(paxCode){
var setPax;
var totPax;

	setPax='';
	totPax='';
	totPax=parseInt(document.frmstorage.nitems1.value);

for(i=2;i<=totPax;i++)
	{
	//	alert();
	setPax+= '<table width="100%" border="0" cellspacing="0" cellpadding="1"><tr><td align="center" width="30%" class="normalbold"><input type="text" name="sdescription'+i+'" value="" class="textField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="heated'+i+'" value="" class="smalltextField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="nonheated'+i+'" value="" class="smalltextField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="outside'+i+'" value="" class="smalltextField" /></td><td align="center" width="15%" class="normalbold"><input type="text" name="other'+i+'" value="" class="smalltextField" /></td></tr></table>';
//alert(setPax);
	}
	document.getElementById(paxCode+'Block').innerHTML=setPax
//	document.getElementById(paxCode).innerHTML=setPax;
}


function storage()
{
			if(window.document.frmstorage.name.value=="")
			{
					alert("Please enter correct Name");
					window.document.frmstorage.name.focus();
					return false;
			}
			if(window.document.frmstorage.email.value=="")
			{
					alert("Please enter correct Email address");
					window.document.frmstorage.name.focus();
					return false;
			}
			return true;
}



