	 
	function showWindow (url, name, features, myWidth, myHeight, isCenter) {
		
		if (name == '') {
			var now	=	new Date ();
			var ms	=	now.getMilliseconds ();
			name	=	'flexwindow'	+	ms;
		}
		
		if ( (myHeight == '') || (myHeight == 0) ) 	myHeight	=	500;
		if ( (myWidth == '') || (myWidth == 0) ) 	myWidth		=	500;
				
		if ( (features == "none") || (features == '') ) {
			features = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes";
		} else {	
			if (features == "all") {
				features = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";
			}
		}
		
		if ( (window.screen) && (isCenter == "true") ){
			var myLeft	=	(screen.width - myWidth) / 2;
			var myTop	=	( (screen.height - myHeight) / 2) - 20;
			features	+=	(features != '') ? ',' : '';
			features	+=	',left=' + myLeft + ',top=' + myTop;
  		}
			
  		window.open (url, name, features + ((features != '') ? ',' : '') + 'width=' + myWidth + ',height=' + myHeight).focus();
	}
	
	function ShowPrice(priceno,howmanypricesToShow)
	{
	  for (var i=0;i<howmanypricesToShow;i++)
	  {
	    if (i!=priceno)
	    {
	      document.getElementById('priceNo'+i).style.display='none';
	    }
	      
	    else
	    {
	      document.getElementById('priceNo'+i).style.display='block';
      }
	  }
  }
  
  	function showFlights(departNo,howmanyDepartsToShow)
	{
	  for (var i=1;i<=howmanyDepartsToShow;i++)
	  {
	    if (i!=departNo)
	    {
	      document.getElementById('Depart'+i).style.display='none';
	    }
	    else
	    {
	      document.getElementById('Depart'+i).style.display='block';
      }
	  }
  }


	function ShowNew(regtopid)
	{
	    var oRows=document.getElementById(regtopid).getElementsByTagName("table")[0].rows;

	    document.getElementById(regtopid).getElementsByTagName("table")[0].rows[oRows.length-1].style.display='block';

 }   
     
     
 function NewCalc(totalID,chkID,priceid,amount)
 {
  var Total=document.getElementById(totalID).getElementsByTagName("p")[0].firstChild.data;
  if (document.getElementById(chkID).getElementsByTagName("input")[0].checked)
  {
    Total=Total-(-amount);
    document.getElementById(priceid).style.display='block';
  }
  else
  {
    Total=Total-amount;
    document.getElementById(priceid).style.display='none';
  }
  
  document.getElementById(totalID).getElementsByTagName("p")[0].firstChild.data=Total.toFixed(2);
  }
   
