// JScript source code
strDownloadURL = "test.asp";
var searchFor = "";	
var noInput= "Please include a word or phrase in your search.";
var searchlocale = "";
var isV5 = false;
var isIE = false;
if (parseInt(navigator.appVersion) >= 5) isV5 = true;
if (navigator.appVersion.indexOf("MSIE") != -1) isIE = true;

function MouseOutMenu(Item) {
	if (isV5) {
		var MenuItem = document.getElementById(Item);
		MenuItem.setAttribute("style", "");
	}
	eval(Item + ".style.borderColor = '#E7E7E7';");	
}
function MouseOverMenu(Item) {
	if (isV5) {
		var MenuItem = document.getElementById(Item);
		MenuItem.setAttribute("style", "border-width:2px;border-style:solid;border-color:#000080;");
	}
	eval(Item + ".style.borderColor = '#000080';");
}
function confirmSubmit()
{
	var agree=confirm("Are you sure you want to continue?  Please note that these changes cannot be undone!");
	if (agree)
		return true ;
	else
	return false ;
}

function redirect(){
	window.open("get_order_all.asp")						
}

function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
} 

function something()
{	
	var agree=confirm("Are you sure you want to continue?  Please note that these changes cannot be undone!");
	if (agree)
		return true ;
	else
	return false ;
}

function newWindow(file,window) {
	msgWindow=open(file,window,'resizable=no,width=400,height=200');
	if (msgWindow.opener == null) msgWindow.opener = self;
}

function downloadToOnlineStorage(strProvider)
{
if(strProvider == "xdrive")
{
	var strXDriveRedirURL = '';
	strXDriveRedirURL += '/onlinestorage/redir_xdrive_download.asp';
	strXDriveRedirURL += ('?' + strDownloadURL);
	window.open(strXDriveRedirURL,'','toolbar=no,menubar=no,scrollbars=no,fullscreen=no,resizable=no,width=575,height=200');
}

}

function change(ID){
		window.location.href = "tax_edit.asp?ID=" + ID
}

function deleterate(ID){
		window.location.href = "tax_delete_confirm.asp?ID=" + ID	
}

function batchdelete() {
		if (window.confirm("Are you sure you want to continue? Deletions cannot be undone!")) 
			{  document.forms[0].Action.value = "Delete";
				document.forms[0].submit();
		} 
    }
    
function CCA(CB)
{
	if (CB.checked)
	{
		hL(CB);
		CB.className = "checkboxchecked";
	}
	else
	{
		dL(CB);
		CB.className = "checkbox";
	}
			
}
function hL(E)
{			
	while (E.tagName!="TR")
		{E=E.parentElement;}				
	E.className = "H";
}
	
function dL(E)
{
	while (E.tagName!="TR")
		{E=E.parentElement;}
	E.className = "";
}

function showImage(imageURL) {
    var theUrl = location.protocol + "//" + location.host + "/" + imageURL;
    var imageWindow = window.open(theUrl,"OnPointDevPopupImage","width=600,height=400,resizable=yes,scrollbars=yes,location=no,status=no,toolbar=no,menubar=no");
    imageWindow.focus();
}

function slideshowPopup(listing_ID) {
    var theUrl = location.protocol + "//" + location.host + "/slideshow.asp?listing_ID=" + listing_ID;
    var imageWindow = window.open(theUrl,"OnPointDevPopupImage","fullscreen=yes,resizable=yes,scrollbars=yes,location=no,status=no,toolbar=no,menubar=no");
    imageWindow.focus();
}

function emailPopup(listing_ID) {
    var theUrl = location.protocol + "//" + location.host + "/emailproperty.asp?listing_ID=" + listing_ID;
    var imageWindow = window.open(theUrl,"OnPointDevEmailProperty","width=400,height=550,resizable=no,scrollbars=no,location=no,status=no,toolbar=no,menubar=no");
    imageWindow.focus();
}

function mortgagePopup(purchPrice) {
    var theUrl = location.protocol + "//" + location.host + "/mortgage.asp?purchaseprice=" + purchPrice;
    var imageWindow = window.open(theUrl,"OnPointDevMortgage","width=500,height=600,resizable=no,scrollbars=no,location=no,status=no,toolbar=no,menubar=no");
    imageWindow.focus();
}

function galleryPopup(listing_ID) {
    var theUrl = location.protocol + "//" + location.host + "/listings_gallery.asp?listing_ID=" + listing_ID;
    var imageWindow = window.open(theUrl,"OnPointDevPopupImage","fullscreen=no,width=700,height=500,resizable=no,scrollbars=no,location=no,status=no,toolbar=no,menubar=no");
    imageWindow.focus();
}

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox - only way firefox allows js bookmarks
	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);
}

