 function open_calendar() {

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


   page = "calendar.php";  
   win_area = window.open(page, "", windowprops);

   if (!win_area.opener) win_area.opener = self;


 }         

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

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


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

   if (!win_area.opener) win_area.opener = self;


 }         


 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);

 }         

 function open_owin_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 = "site_popup.php?" + url  
   win_area = window.open(page, "Popup_Page", windowprops);

   if (!win_area.opener) win_area.opener = self;

 }    
      

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

   if(document.getElementById("bottom_options"))
      document.getElementById("bottom_options").style.display = v;
 
 } // end if
 
 
 function Remove_Spaces(string) {
 
  string = string + " "
  newString = ""
  
  schars = string.split(" ")
 
  for(j=0;j<schars.length;j++)
      newString = newString + schars[j]
  
  return newString
  
 }


 function Check_Email(email) {

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

 function login_check(e) {
   
  key = window.event ? e.keyCode : e.which;

  if(key == 13)
     ich()
    
 }


 function additional() {
 
   objects = document.getElementsByTagName("object");

   for(var i = 0; i < objects.length; i++)
       objects[i].outerHTML = objects[i].outerHTML;

   embeds = document.getElementsByTagName("embed");

   for(var i = 0; i < embeds.length; i++)
       embeds[i].outerHTML = embeds[i].outerHTML;

 } // end function
 

 