﻿// Functions JScript File

function bookmarksite()
{
var url = window.location.href; var title = document.title; 

    if (window.sidebar) // firefox
	    window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
	    var elem = document.createElement('a');
	    elem.setAttribute('href',url);
	    elem.setAttribute('title',title);
	    elem.setAttribute('rel','sidebar');
	    elem.click();
    } 
    else if(document.all)// ie
	    window.external.AddFavorite(url, title);
}

        
        function showThis(id)
        {
            if(document.getElementById(id).style.display == "block")
            {document.getElementById(id).style.display = "none";}
            else
            {document.getElementById(id).style.display = "block";}
        }
        function GetContent(id)
        {
            return document.getElementById(id).innerHTML;
        }
        function emailThis(id)
        {
            var content = document.getElementById(id).innerHTML;
            var url = "Email.aspx?" + content;
            window.open (url,"mywindow","menubar=1,resizable=1,width=770,height=550");
        }
        
        function openContactForm()
        {
            var url = "SendMail.aspx";
            window.open (url,"mywindow","menubar=1,resizable=1,width=400,height=550");
        }
        
        function showADVOnload()
        {
            var min = document.getElementById("TextBox6").value;
            var max = document.getElementById("TextBox7").value;
            var type = document.getElementById("DropDownList2").value;
            if(min != "" || max != "" || type != "All")
            {
                document.getElementById("advDIV").style.display = "block";
            }
        }

