

 function open_win(url, res, scroll, width, height) {

   windowprops = "top=0,"
               + "left=0," 
               + "toolbar=no,"
               + "location=no,"
               + "directories=no,"
               + "menubar=no,"
               + "copyhistory=yes,"
               + "status=no,"
               + "resizable=" + res + ","
               + "scrollbars=" + scroll + ","
               + "width=" + width + ","
               + "height=" + height;

   page = "popup.php?" + url  
   window.open(page, "", windowprops);

 }         


 function Remove_Spaces(string) {
 
  string = string + " "
  newString = ""
  
  chars = string.split(" ")
 
  for(j=0;j<chars.length;j++)
      newString = newString + chars[j]
  
  return newString
  
 }


 function search_for() {
  
   if(Remove_Spaces(document.searching.find.value) == "")
      alert("Type text")
   else
      document.searching.submit()
 
 }


 function Check_Email(email) {

  ss = ""
  at = email.indexOf("@")
  
  if(at == -1)	
	  ss = "Not a valid e-mail"  
  
  return ss
    
 }
 
 
 function vops(v) {
 
   document.getElementById("ops").style.display = v
   document.getElementById("ops2").style.display = v

 }
