function DisplayFuncShooter(fPage, fNewPage)
{
	//alert(fPage);
	//alert(fNewPage);
	if (fPage.length > 1)
	{
		window.location.href = fPage;
	}
	if (fNewPage.length > 0)
	{
		var args;
		var fNewWindow;
		args = "width=600,height=475,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,hotkeys=0,screenx=200,screeny=400,left=200,top=200";
		fNewWindow = window.open(fNewPage, "Value", args);
		return BlockerCheck(fNewWindow);
		fNewWindow.focus();
	}

}

function DisplayFuncShooter2k3(fPage, fPopPage, fExternPage)
{
	//alert("Page: " + fPopPage);
	//alert(fNewPage);
	if (fPage.length > 1)
	{
		window.location.href = fPage;
	}
	if (fPopPage.length > 0)
	{
		var args;
		var fNewWindow;
		var fFullPath;
		//var fFullPath = fPopPage + '?Page=' + escape(fExternPage)
		var fFullPath = fExternPage
		args = "width=800,height=600,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,hotkeys=0,screenx=200,screeny=200,left=200,top=200";
		fNewWindow = window.open(fFullPath, "Value", args);
		return BlockerCheck(fNewWindow);
		fNewWindow.focus();
	}

}

var gWindow = null;	

function doPopup(fHeight, fWidth, fURL)
{	
	var lWinName = "MyWindow";
	var lWinSettings = "scrollbars=yes,directories=no,height=" + fHeight + ",width=" + fWidth + ",location=no,menubar=no,status=no,titlebar=no,resizable=yes";
	if((gWindow != null) && (!gWindow.open == false))
	{
		gWindow.close();
		gWindow = null;
		//alert('test');
	}	
	gWindow = window.open(fURL, lWinName, lWinSettings);
	BlockerCheck(gWindow);
	gWindow.focus();
}
	
function BlockerCheck(lWindow)
{	
	//Check to see if the window exists and is open.
	if((lWindow != null) && (!lWindow.open == false) && (!lWindow.closed == true))
	{
		//do nothing
		//lWindow.focus();
		//alert('No error.');
	}
	else
	{				
	//Window didn't open - display alert.
	alert('Pop-up blocking software installed on your computer may have prevented \nthis page from opening. Please disable it and try again.');
	return false;
	}	
}

function SplashPageShooter(fPage, fNewPage)
{

	if (fPage.length > 0)
	{
	window.location.href = fPage;
	}
	if (fNewPage.length > 0)
	{
		var args;
		var fNewWindow;
		args = "width=600,height=475,location=0,menubar=1,resizable=1,scrollbars=1,status=1,titlebar=0,toolbar=1,hotkeys=0,screenx=200,screeny=200,left=200,top=200";
		fNewWindow = window.open(fNewPage, "Value", args);
		fNewWindow.focus();
	}
}

// PRELOADING IMAGES
if (document.images) {
 searchhelp_on =new Image();  searchhelp_on.src ="/PhotoLib/Common/button_search_on.gif"; 
 searchhelp_off=new Image();  searchhelp_off.src="/PhotoLib/Common/button_search_off.gif"; 
}

function SearchHelpOver() { 
 if (document.images) document.imgName.src=searchhelp_on.src;
}

function SearchHelpOut() {
 if (document.images) document.imgName.src=searchhelp_off.src;
}



function validateLocation()
{

	//Added on 7/29/02 by Jay Harvey
	//Loads category page for those categories that only have National Merchants...

	var type;
	type = document.SearchFormAV.SPType.value;
	
	if (type == "NationalDeals")
		{
		window.document.location.href = "/Memberweb2K1/NationalMerchants.asp";
		return false;
		}
		
		if (type == "<%= gSPAutomotive %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		if (type == "<%= gSPDining %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		if (type == "<%= gSPRecreation %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		if (type == "<%= gSPServices %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		if (type == "<%= gSPShopping %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		if (type == "<%= gSPHealthBeauty %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		

	if (type == "<%= gSPCarRental %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
	
	if (type == "<%= gSPCondo %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
	
	if (type == "<%= gSPCruise %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
	
	if (type == "<%= gSPTravel %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		
	if (type == "<%= gSPMoreGreatDeals %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		
	if (type == "<%= gSPMoreDeals %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}

	if (type == "<%= gSPMoreDeals %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		
	if (type == "<%= gSPMoreDiningDeals %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		
	if (type == "<%= gSPEducationSponsor %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		
	if (type == "<%= gSPEventPlanning %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}	
		
		
	if (type == "<%= gSPFinancialServices %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}	
		
	if (type == "<%= gSPGolf %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}	
		
	if (type == "<%= gSPHotel %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}	
		
	if (type == "<%= gSPEventPlanning %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}	
		
	if (type == "<%= gSPMovie %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
		
	if (type == "<%= gSPSkiSnowboard %>")
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}	
		

	var fTempVar;
	fTempVar = document.SearchFormAV.Location.value;
	
	if (fTempVar.length < 1)
		{
		window.document.location.href = "/Memberweb2K1/SplashPage2k2.asp?SPType=" + type;
		return false;
		}
	return true;
}