<!--

var visibleLayer="disagree";



if(isNaN(window.trip)){

window.trip=0;

} //set up globals



if(isNaN(window.occup)){

window.occup=0;

} //set up globals



function checkselections(thisbutton){



thevalue=thisbutton.value;

thename=thisbutton.name;



thecode=thevalue.substring(0,1);



if (thename=="trip"){

window.trip=thecode;

theothercode=window.occup;

}

else{

window.occup=thecode;

theothercode=window.trip

}



//	alert (window.trip);

//	alert (window.occup);



if(window.trip!=window.occup && window.trip!=0 && window.occup!=0){

alert('That is an invalid selection! \n \n The hotel/occupancy you select must match the departure city/date!');



if (thename!="trip"){

thisbutton.checked=false;

}

}





} //checkselections



function layerToggle(layerName){

	//note that the layer name must be unique for any object on the page (you cannot

	//even have a button or field and a layer with the same name) 

	if (layerName == visibleLayer) return; //else continue execution

	if (document.layers) { //netscape 4

		l1 = eval("document.layers." + visibleLayer);

		l2 = eval("document.layers." + layerName);

		}

	else { //IE4 & up & Mozilla 5 & up

		l1 = eval("document.getElementById('" + visibleLayer + "')");

		l2 = eval("document.getElementById('" + layerName + "')");

		}

	l1.style.visibility = "hidden";

	l2.style.visibility = "visible";

	visibleLayer = layerName;

	

}//layerToggle





function newwin(path, height, width){

window.open(path,"Add","Height="+height+",Width="+width+", scrollbars=yes");

}



browserName = navigator.appName;

browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);

ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);



function newaction(path, height, width,ID){

if(confirm("Are you sure you want to delete ID "+ID+"?")){

		window.open(path,"Delete","Height="+height+",Width="+width);

	}

else{

	alert ("No action was taken.");

	}

}





function popAction(path, height, width,ID,actiontype){

if(confirm("Are you sure you want to "+actiontype+" ID "+ID+"?")){

		window.open(path,"Delete","Height="+height+",Width="+width);

	}

else{

	alert ("No action was taken.");

	}

}



function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_findObj(n, d) { //v4.0

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && document.getElementById) x=document.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}





function doPic(imgName) {

if (ns3up || ie4up) {

imgOn = ("images/header_" + imgName + ".jpg");



document.header.src = imgOn;

}

}



function openpopup(path, height, width){



window.open(path,"Add","Height="+height+",Width="+width);



}



function openPopupScrolling(path, height, width){



window.open(path,"Add","scrollbars=yes,Height="+height+",Width="+width);



}





function preloadImages() {

	var doc=document;

	if(doc.images){

		if(!doc.p)

			doc.p=new Array();

		var count,j=doc.p.length,a=preloadImages.arguments;

		for(count=0; count<a.length; count++)

			if (a[count].indexOf("#")!=0){

				doc.p[j]=new Image;

				doc.p[j++].src=a[count];

			}

	}

}



function checkOptionals(form){



if (form.insurance.checked){

form.temptripprice.value=66.95;

}

else{

form.temptripprice.value=50;

}



}



/* This script is Copyright (c) Paul McFedries and 

Logophilia Limited (http://www.mcfedries.com/).

Permission is granted to use this script as long as 

this Copyright notice remains in place.*/



function round_decimals(original_number, decimals) {

    var result1 = original_number * Math.pow(10, decimals)

    var result2 = Math.round(result1)

    var result3 = result2 / Math.pow(10, decimals)

    return pad_with_zeros(result3, decimals)

}



function pad_with_zeros(rounded_value, decimal_places) {



    // Convert the number to a string

    var value_string = rounded_value.toString()

    

    // Locate the decimal point

    var decimal_location = value_string.indexOf(".")



    // Is there a decimal point?

    if (decimal_location == -1) {

        

        // If no, then all decimal places will be padded with 0s

        decimal_part_length = 0

        

        // If decimal_places is greater than zero, tack on a decimal point

        value_string += decimal_places > 0 ? "." : ""

    }

    else {



        // If yes, then only the extra decimal places will be padded with 0s

        decimal_part_length = value_string.length - decimal_location - 1

    }

    

    // Calculate the number of decimal places that need to be padded with 0s

    var pad_total = decimal_places - decimal_part_length

    

    if (pad_total > 0) {

        

        // Pad the string with 0s

        for (var counter = 1; counter <= pad_total; counter++) 

            value_string += "0"

        }

    return value_string

}

// end rounding





//===========================

// Show/Hide functions for non-pointer layer/objects



var citizen_mode;

 

function show_option(id) {



	if (id == 'OutsideUS')

	{ 

		document.all['id_province'].style.display = "";

	}



	if (id == 'Passport')

	{ 

		//document.OrderForm.usemail[0].checked = 0;

		//document.OrderForm.usemail[1].checked = 0;  

		document.all['id_passport'].style.display = "";

		document.all['id_document1'].style.display = "";

		document.all['id_document2'].style.display = "";

		citizen_mode = 'Passport'; 

	}



	else if (id == 'BirthCertificate')

	{ 

		//document.OrderForm.usemail[0].checked = 0;

		//document.OrderForm.usemail[1].checked = 0;

		document.all['id_document1'].style.display = "";

		document.all['id_document2'].style.display = "";

		document.all['id_passport'].style.display = "none";

		citizen_mode = 'BirthCertificate'; 

	} 

	else if (id == 'Other')

	{ 

		//document.OrderForm.usemail[0].checked = 0;

		//document.OrderForm.usemail[1].checked = 0;

		document.all['id_document1'].style.display = "none";

		document.all['id_document2'].style.display = "none";

		document.all['id_passport'].style.display = "none";

		citizen_mode = 'Other'; 

	} 

	else if (id == '0')

	{  

		document.all['id_roommate1f'].style.display = "none";

		document.all['id_roommate1l'].style.display = "none"; 

		document.all['id_roommate2f'].style.display = "none";

		document.all['id_roommate2l'].style.display = "none";  

		document.all['id_roommate3f'].style.display = "none";

		document.all['id_roommate3l'].style.display = "none";  

	} 

	else if (id == '1')

	{  

		document.all['id_roommate1f'].style.display = "";

		document.all['id_roommate1l'].style.display = ""; 

		document.all['id_roommate2f'].style.display = "none";

		document.all['id_roommate2l'].style.display = "none";  

		document.all['id_roommate3f'].style.display = "none";

		document.all['id_roommate3l'].style.display = "none";  

	} 



	else if (id == '2')

	{  

		document.all['id_roommate1f'].style.display = "";

		document.all['id_roommate1l'].style.display = ""; 

		document.all['id_roommate2f'].style.display = "";

		document.all['id_roommate2l'].style.display = "";  

		document.all['id_roommate3f'].style.display = "none";

		document.all['id_roommate3l'].style.display = "none"; 

	} 

	else if (id == '3')

	{  

		document.all['id_roommate1f'].style.display = "";

		document.all['id_roommate1l'].style.display = ""; 

		document.all['id_roommate2f'].style.display = "";

		document.all['id_roommate2l'].style.display = "";  

		document.all['id_roommate3f'].style.display = "";

		document.all['id_roommate3l'].style.display = ""; 

	} 

	

	

	

	if (id == 'CustomEngine')

	{  

 		document.all['tripOccupancy'].style.display = "none";

	 

		document.all['tripHotel'].style.display = "none";

		document.all['tripDates'].style.display = "none";

		document.all['tripCity'].style.display = "none";

		document.all['tripPrice'].style.display = "none";

		document.all['tripDivider'].style.display = "none";

		document.all['tripPriceLabel'].style.display = "none";

		document.all['enginetab'].style.display = "none";

		document.all['enginego'].style.display = "none";

		document.all['tripallinclusive'].style.display = "none";

		document.all['tripallinclusive2'].style.display = "none";

		document.all['tripallinclusive0'].style.display = "none";

		

		document.all['customAirport'].style.display = "";

		document.all['customDate'].style.display = "";

		document.all['customLength'].style.display = "";

		document.all['customTravelers'].style.display = "";

		document.all['enginetabCustom'].style.display = "";

		document.all['enginegoCustom'].style.display = "";

		document.all['customDisclaimer'].style.display = "";

		

		

		skipengine=1;

		createcals();

	}

	

	if (id == 'TripEngine')

	{  

 		document.all['tripOccupancy'].style.display = "";

 

		document.all['tripHotel'].style.display = "";

		document.all['tripDates'].style.display = "";

		document.all['tripCity'].style.display = "";

		document.all['tripPrice'].style.display = "";

		document.all['tripPriceLabel'].style.display = "";

		document.all['tripDivider'].style.display = "";

		document.all['enginetab'].style.display = "";

		document.all['enginego'].style.display = "";

		

		document.all['customAirport'].style.display = "none";

		document.all['customDate'].style.display = "none";

		document.all['customLength'].style.display = "none";

		document.all['customTravelers'].style.display = "none";

		document.all['enginetabCustom'].style.display = "none";

		document.all['enginegoCustom'].style.display = "none";

		document.all['customDisclaimer'].style.display = "none";

		



		skipengine=0;

		

	}

}



//---------------------------------------------------------



function popFIT()

{

	newwin('http://airdepartment.ezrez.com/travel/arc.cfm?nav=csb', 600, 870);

	//alert("Check back soon for the 2007 custom trip builder.");

	//document.location="content_custominterstitial2.php";

	 

}



//-->





/*************************************************************************

  This code is from Dynamic Web Coding at http://www.dyn-web.com/

  Copyright 2001-3 by Sharon Paine 

  See Terms of Use at http://www.dyn-web.com/bus/terms.html

  regarding conditions under which you may use this code.

  This notice must be retained in the code as is!

*************************************************************************/



// onresize for ns4

var origWidth, origHeight;

if (document.layers) {

	origWidth = window.innerWidth; origHeight = window.innerHeight;

	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }

}



var cur_lyr = 'tab_content_vip';	// holds id of currently visible layer

function swapLayers(id) {

  if (cur_lyr) hideLayer(cur_lyr);

  showLayer(id);

  cur_lyr = id;

}



function showLayer(id) {

  var lyr = getElemRefs(id);

  if (lyr && lyr.css) lyr.css.visibility = "visible";

}



function hideLayer(id) {

  var lyr = getElemRefs(id);

  if (lyr && lyr.css) lyr.css.visibility = "hidden";

}



function getElemRefs(id) {

	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;

	if (el) el.css = (el.style)? el.style: el;

	return el;

	



}



function flustTabs()

{

		bluetab1.className='bluetab';

		bluetabtext1.className='tab_nav';



		bluetab2.className='bluetab';

		bluetabtext2.className='tab_nav';



		bluetab3.className='bluetab';

		bluetabtext3.className='tab_nav';



		bluetab4.className='bluetab';

		bluetabtext4.className='tab_nav'; 	

}





function openParentThenClose(gotoURL)

{

	window.opener.document.location=gotoURL;



	window.close();

}





function startLoadingLayer()

{

	var ldiv = document.getElementById('LoadingDiv');

	

	ldiv.style.display='block';



	/*Do your ajax calls, sorting or laoding, etc. then load this to clear it:



	ldiv.style.display = 'none';



	*/

}



function startErrorLayer(yessir)

{

	document.getElementById("LoadingText").innerHTML=yessir;



	var ldiv = document.getElementById('LoadingDiv');

	ldiv.style.display='block';



}







// ======= CUSTOM INTEGER FUNCTIONS ===============

   function isInteger (s)

   {

      var i;



      if (isEmpty(s))

      if (isInteger.arguments.length == 1) return 0;

      else return (isInteger.arguments[1] == true);



      for (i = 0; i < s.length; i++)

      {

         var c = s.charAt(i);



         if (!isDigit(c)) return false;

      }



      return true;

   }



   function isEmpty(s)

   {

      return ((s == null) || (s.length == 0))

   }

   

   

   function openParentThenClose(gotoURL)

{

	window.opener.document.location=gotoURL;

	window.close();

}





   function isDigit (c)

   {

      return ((c >= "0") && (c <= "9"))

   }

// END ======= CUSTOM INTEGER FUNCTIONS ===============







/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
var fadeimages=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages[0]=["images/maingraphic-7.jpg", "content_specials.php", ""]
fadeimages[1]=["images/maingraphic-8.jpg", "content_noflight.php", ""]
fadeimages[2]=["images/maingraphic-9.jpg", "content_signup.php", ""]

 
var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.
//SET IMAGE PATHS. Extend or contract array as needed
fadeimages2[0]=["photo1.jpg", "", ""] //plain image syntax
fadeimages2[1]=["photo2.jpg", "http://www.cssdrive.com", ""] //image with link syntax
fadeimages2[2]=["photo3.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntax
 
var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div ><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}



function onchangeapproxpeople(value){
	if( value=="1-9" ){
		alert('Groups of 10 or more can submit a quote request using this form, while groups of less than 10 may use the CUSTOM TRIP BUILDER in the upper left hand corner of this website.');
	}
}

function addnewline(id,name){
	var tddateid = "tddate"+id;
	var tddate = document.getElementById(tddateid);
	var tdqty = document.getElementById("tdqty"+id);
	
	//get index
	var numberid = 'number'+id;
	var inputnumber = document.getElementById(numberid);
	var index = inputnumber.value;

	var template_month = document.getElementById('hiddenmmselector');
	template_month = template_month.innerHTML;
	var template_day = document.getElementById('hiddenddselector');
	template_day = template_day.innerHTML;
	var template_year = document.getElementById('hiddenyyselector');
	template_year = template_year.innerHTML;
	
	var newtddatecontent = template_month.replace(/<select>/,"<select name=mm"+index+"["+id+"]>");
	newtddatecontent += template_day.replace(/<select>/,"<select name=dd"+index+"["+id+"]>");
	newtddatecontent += template_year.replace(/<select>/,"<select name=yy"+index+"["+id+"]>");
	
	//get time
	var template_time = document.getElementById('timetemplate'+id);
	if(template_time){
		template_time = template_time.innerHTML;
		template_time = "<select name=time"+index+"["+id+"]>" + template_time +"</select>";
		newtddatecontent += template_time;
	}
	
	var newindex = parseInt(index) + 1;
	newtddatecontent += "<br/><span id='linkaddnew"+id+newindex+"'><a href='#' onclick='return addnewline(\""+id+"\",\""+name+"\")'>add another date</a></span>";
	//display none all add link
	for( var i=1;i<newindex;i++){
		var addlinkid = "linkaddnew" +id + i;
		document.getElementById(addlinkid).style.display = "none";
	}
	
	
	newtddatecontent = "<tr><td>" + newtddatecontent+"</td></tr>";
	var row = tddate.insertRow(-1);//insert one row 
	row.style.backgroundColor = "#CFCFCF";
	var cell = row.insertCell(-1);
	cell.innerHTML = newtddatecontent;
	
	//get qty
	var template_qty = document.getElementById('qty'+id);
	template_qty = template_qty.innerHTML;
	template_qty = "<select name=qty"+index+"["+id+"]>" + template_qty +"</select>";
	row = tdqty.insertRow(-1);//insert one row 
	row.style.backgroundColor = "#AFAFAF";
	cell = row.insertCell(-1);
	cell.innerHTML = template_qty;
	
	document.getElementById(numberid).value = parseInt(index) + 1;
	return false;
}



function onchangearriveairlinelist( val,hiddeninputid ){
	if( val=="Other"  ){
		document.getElementById(hiddeninputid).style.display = "";
	}else{
		document.getElementById(hiddeninputid).style.display = "none";
	}
}

var from_tr_array = new Array("flightinfodeparturedatemm","flightinfoairlinenumber","flightinfoarrivaltime");
var to_tr_array = new Array("flightinfoteturndatemm","flightinforeturnairlinenumber","flightinforeturndeparturetime");

function showfrompart(id){
	for(var i=0;i<to_tr_array.length;i++ ){ 
		var objid=  'tr'+id + to_tr_array[i];
        document.getElementById(objid).style.display = "none";
    } 
	
	for(var i=0;i<from_tr_array.length;i++ ){ 
		var objid=  'tr'+id + from_tr_array[i];
        document.getElementById(objid).style.display = "";
    } 
}

function showtopart(id){
	for(var i=0;i<from_tr_array.length;i++ ){ 
		var objid=  'tr'+id + from_tr_array[i];
        document.getElementById(objid).style.display = "none";
    } 
	
	for(var i=0;i<to_tr_array.length;i++ ){ 
		var objid=  'tr'+id + to_tr_array[i];
        document.getElementById(objid).style.display = "";
    }
}

function showfromandtopart(id){
	for(var i=0;i<from_tr_array.length;i++ ){ 
		var objid=  'tr'+id + from_tr_array[i];
        document.getElementById(objid).style.display = "";
    } 
	
	for(var i=0;i<to_tr_array.length;i++ ){ 
		var objid=  'tr'+id + to_tr_array[i];
        document.getElementById(objid).style.display = "";
    }
}
