 function open_win_images(url) {

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

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

 } // end function        


 function site_search() {
   
   txt = Remove_Spaces(document.search.text.value);
   
   if(txt == "" || txt.length < 3) {
      alert("Type text, at least 3 characters")
   }
   else {
      document.search.submit();
   }         
 
 } // end function
 
 
 function Remove_Spaces(string) {
 
  string = string + " "
  newString = ""
  
  schars = string.split(" ")
 
  for(j=0;j<schars.length;j++)
      newString = newString + schars[j]
  
  return newString
  
 } // end function
 

 function Check_Email(email) {

  ss = ""
  at = email.indexOf("@")
  
  if(at == -1)	
	  ss = "Not a valid e-mail"  
  
  return ss
    
 } // end function
 