// JavaScript Document
http://www.aplusrealtync.com/open-realty/index.php?pclass[]=2&action=searchresults
//**************Index Scripts
function mls_search()
{
  new_window = 
    window.open("http://framing.usamls.net/rev_framing.asp?yc=true&p=d:\web\390&acid=390&oid=85&aid=0","width=560,height=400,scrollbars=yes");
    new_window.focus();
}
function hot_property()
{
  new_window = 
    window.open("../listings/hot_property.html","hot_property","width=560,height=400,scrollbars=yes");
    new_window.focus();
}
function index_article1()
{
  new_window = 
    window.open("articles/index_article1.html","Article_1","width=420,height=500,scrollbars=yes");
    new_window.focus();
}

function close()
{
	onFocus=new_window.close();
}
//************** About Us Scripts
function about_article1()
{
  new_window = 
    window.open("articles/about_article1.html","Article_1","width=420,height=500,scrollbars=yes");
    new_window.focus();
}
function about_article2()
{
  new_window = 
    window.open("articles/about_article2.html","Article_1","width=420,height=500,scrollbars=yes");
    new_window.focus();
}

//************** Buy & Sell Scripts
function glossary()
{
  new_window = 
    window.open("glossary/a.html","glossary","width=600,height=400,scrollbars=yes");
    new_window.focus();
}
function buy_article1()
{
  new_window = 
    window.open("articles/buy_article1.html","Article_1","width=420,height=500,scrollbars=yes");
    new_window.focus();
}
function sell_article1()
{
  new_window = 
    window.open("articles/sell_article1.html","Article_1","width=420,height=500,scrollbars=yes");
    new_window.focus();
}
//**************Contact Scripts
function bc_rita()
{
  new_window = 
    window.open("images/bc_rita.jpg","rita","width=520,height=300");
    new_window.focus();
}
function bc_jason()
{
  new_window = 
    window.open("images/bc_jason.jpg","rita","width=520,height=300");
    new_window.focus();
}
function bc_yvonne()
{
  new_window = 
    window.open("images/bc_yvonne.jpg","rita","width=520,height=300");
    new_window.focus();
}
function bc_renee()
{
  new_window = 
    window.open("images/bc_renee.jpg","rita","width=520,height=300");
    new_window.focus();
}
function bio_rita()
{
  new_window = 
    window.open("bios/rita_bio.html","bio","width=450,height=300,scrollbars=yes");
    new_window.focus();
}
function bio_jason()
{
  new_window = 
    window.open("bios/jason_bio.html","bio","width=450,height=300,scrollbars=yes");
    new_window.focus();
}
function bio_yvonne()
{
  new_window = 
    window.open("bios/yvonne_bio.html","bio","width=450,height=300,scrollbars=yes");
    new_window.focus();
}
function bio_renee()
{
  new_window = 
    window.open("bios/renee_bio.html","bio","width=450,height=300,scrollbars=yes");
    new_window.focus();
 }

//************** Local Info Scripts

function info_article1()
{
  new_window = 
    window.open("articles/info_article1.html","Article_1","width=420,height=500,scrollbars=yes");
    new_window.focus();
}
function info_article2()
{
  new_window = 
    window.open("articles/info_article2.html","Article_2","width=420,height=500,scrollbars=yes");
    new_window.focus();
}
function attorneys()
{
  new_window = 
    window.open("local_providers.html#attorneys","providers","width=450,height=260,scrollbars=yes");
    new_window.focus();
}
function appraisers()
{
  new_window = 
    window.open("local_providers.html#appraisers","providers","width=450,height=260,scrollbars=yes");
    new_window.focus();
}
function home_inspectors()
{
  new_window = 
    window.open("local_providers.html#home_inspectors","providers","width=450,height=260,scrollbars=yes");
    new_window.focus();
}
function insurance_agents()
{
  new_window = 
    window.open("local_providers.html#insurance_agents","providers","width=450,height=260,scrollbars=yes");
    new_window.focus();
}
function lenders()
{
  new_window = 
    window.open("local_providers.html#lenders","providers","width=450,height=260,scrollbars=yes");
    new_window.focus();
}
function pest_inspectors()
{
  new_window = 
    window.open("local_providers.html#pest_inspectors","providers","width=450,height=260,scrollbars=yes");
    new_window.focus();
}

//************** Listings Scripts
function openPopup(sURL, bScroll, nWidth, nHeight, windowName)
{
	if (windowName == null)	windowName = "_blank"
	var temp = window.open(sURL, windowName, "height=" + nHeight + ",width=" + nWidth + ",resizable=no,status=no,toolbar=no,menubar=no,location=no,scrollbars=" + (bScroll == true ? "yes" : "no"));
	temp.opener = self;
}
function providerPopup(sURL, bScroll, nWidth, nHeight, windowName)
{
	if (windowName == null)	windowName = "new_window"
	var temp  = window.open(sURL, windowName, "height=" + nHeight + ",width=" + nWidth + ",resizable=no,status=no,toolbar=no,menubar=no,location=no,scrollbars=" + (bScroll == true ? "yes" : "no"));
	temp.opener = self;
}
function openerHREF(sURL)
{
	opener.location.href = sURL;
}
