 setCookie('faqsid', '');
 setCookie('PressReleases', '');

 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, "", windowprops);

   if (!win_area.opener) win_area.opener = self;

 } // end function        
      

 function open_owin_viewer(url) {

   windowprops = "top=100,"
               + "left=100," 
               + "toolbar=no,"
               + "location=no,"
               + "directories=no,"
               + "menubar=no,"
               + "copyhistory=yes,"
               + "status=no,"
               + "resizable=no,"
               + "scrollbars=no,"
               + "width=100,"
               + "height=100";

   page = "viewer.php?" + url  
   win_area = window.open(page, "", windowprops);

   if (!win_area.opener) win_area.opener = self;

 } // end function        


 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 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        
 
 

 function  validateNumeric(strValue) {

  var objRegExp  =  /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;
  
  return objRegExp.test(strValue);
  
 } // end function  
 

function goback(){
history.back();
}

 function divDisplay(id) {   
 
    faqsid = getCookie('faqsid');
   // alert(faqsid + "\n" + id);
    if(faqsid != "" && faqsid != null && id != faqsid)
       document.getElementById(faqsid).style.display = "none";
       
    setCookie('faqsid', id);

    if(document.getElementById(id).style.display == "none")
       document.getElementById(id).style.display = "block";
    else
       document.getElementById(id).style.display = "none";   
   // var style = document.getElementById(id).style;   style.display = style.display? 'none':'block'; 
 
 } //end function


 function press_releases(v) {

    spr = getCookie('PressReleases');
    st = document.getElementById("pr" + v).style.display;

    if(spr != '' && spr != null)
       document.getElementById("pr" + spr).style.display = "none";
       
    setCookie('PressReleases', v);
    
    if(st == "none")
       document.getElementById("pr" + v).style.display = "block";
       
 } // end function
      


