 function remove_all_spaces(str) {
 
   ch = "";
   nstr = "";
   
   for(i=0;i<str.length;i++) {
   
       ch = str.substr(i, 1);
       
       if(ch != " ")
          nstr += ch;
          
   }
   
   return nstr;
   
 } // end
 
 
 function login_check(e) {
   
  key = window.event ? e.keyCode : e.which;

  if(key == 13)
     validate()
    
 } // end


 function hide_data() {
 
   if(window.hide_all)
      hide_all();
    
 } // end
 
 
 function open_win_site(url, resize, scroll, width, height) {

   windowprops = "top=300,"
               + "left=300," 
               + "toolbar=no,"
               + "location=no,"
               + "directories=no,"
               + "menubar=no,"
               + "copyhistory=yes,"
               + "status=no,"
               + "resizable=" + resize + ","
               + "scrollbars=" + scroll + ","
               + "width=" + width + ","
               + "height=" + height;

   page = "popup.php?" + url  
   window.open(page, "", windowprops);

 }     
 

 function open_page_win(url, resize, scroll, width, height) {

   windowprops = "top=300,"
               + "left=300," 
               + "toolbar=no,"
               + "location=no,"
               + "directories=no,"
               + "menubar=no,"
               + "copyhistory=yes,"
               + "status=no,"
               + "resizable=" + resize + ","
               + "scrollbars=" + scroll + ","
               + "width=" + width + ","
               + "height=" + height;

   page = url;
   window.open(page, "", windowprops);

 }     
 

 function print_page(v) {
 
   if(document.getElementById("top_links"))
      document.getElementById("top_links").style.display = v;

   if(document.getElementById("bottom_links"))
      document.getElementById("bottom_links").style.display = v;
 
 } // end if
 
function addtotrip() { 

document.trip.submit();


}
 
