function LaunchPopup(sUrl, iWidth, iHeight){
	window.open(sUrl, "Popup", "width=" + iWidth + ",height=" + iHeight + ",menubar=0,toolbar=1,scrollbars=1")
}
function HeartgardPopup(){
	window.open("AdPopupHeartgard001.aspx", "Heartgard", "width=640,height=480,menubar=0,toolbar=1,scrollbars=1")
}
function ScienceDietPopup(){
	window.open("AdPopupScienceDiet001.aspx", "ScienceDiet", "width=640,height=480,menubar=0,toolbar=1,scrollbars=1")
}
function SiteTour(){
	window.open("SiteTour1.htm", "SiteTour", "width=760,height=460,menubar=0,toolbar=0,scrollbars=0")
}
function DisplayCustService(sObjectToHide){
	var e = document.getElementById("CustServiceMenu");
	if (sObjectToHide != ""){
		var o = document.getElementById(sObjectToHide);
	}
	if (e.style.visibility == "hidden"){
		e.style.visibility = "visible";
		if (sObjectToHide != ""){
			o.style.visibility = "hidden"
		}
	}
	else {
		e.style.visibility = "hidden";
		if (sObjectToHide != ""){
			o.style.visibility = "visible"
		}
	}
}
function DisplayQuickFind(sObjectToHide){
	var e = document.getElementById("QuickFindMenu");
	if (sObjectToHide != ""){
		var o = document.getElementById(sObjectToHide);
	}
	if (e.style.visibility == "hidden"){
		e.style.visibility = "visible";
		if (sObjectToHide != ""){
			o.style.visibility = "hidden"
		}
	}
	else {
		e.style.visibility = "hidden";
		if (sObjectToHide != ""){
			o.style.visibility = "visible"
		}
	}
}
function DisplayShoppingCart(){
	var e = document.getElementById("ShoppingCart");
	var t = document.getElementById("ViewCartLink");
	if (e.style.visibility == "hidden"){
		e.style.visibility = "visible";
		t.innerText = "hide cart"
	}
	else {
		e.style.visibility = "hidden";
		t.innerText = "view cart"
	}
}
function NextPhoneField(sFieldName, iFieldNo){
	if (iFieldNo == 1){
		if (document.getElementById(sFieldName + "1").value.length == 3){
			document.getElementById(sFieldName + "2").focus();
			document.getElementById(sFieldName + "2").select()
		}
	}
	else if (iFieldNo == 2){
		if (document.getElementById(sFieldName + "2").value.length == 3){
			document.getElementById(sFieldName + "3").focus();
			document.getElementById(sFieldName + "3").select()
		}
	}
}
function SecurityCode(){
	window.open("wSecurityCode.htm", "SecurityCode", "width=400,height=350,menubar=0,toolbar=0,scrollbars=0")
}
function ForgotClubPassword(){
	window.open("wClubForgotPassword.aspx", "ClubForgotPassword", "width=400,height=325,menubar=0,toolbar=0,scrollbars=0")
}
function ForgotAdvertiserPassword(){
	window.open("wSponsorshipForgotPassword.aspx", "SponsorshipForgotPassword", "width=400,height=325,menubar=0,toolbar=0,scrollbars=0")
}
function GetClubInfo(iClubId){
	window.open("wClubInfo.aspx?ClubId=" + iClubId, "ClubInfo", "width=600,height=400,menubar=0,toolbar=1,scrollbars=1")
}
function GetLeadershipInfo(sPosition){
	window.open("wLeadershipInfo.aspx?Position=" + sPosition, "Leadershipinfo", "width=450,height=300,menubar=0,toolbar=1,scrollbars=1")
}
function GetBreed(iBreedId){
	window.open("wBreeds.aspx?BreedId=" + iBreedId, "Breeds", "width=600,height=400,menubar=0,toolbar=1,scrollbars=1")
}
function GetStorePolicies(){
	window.open("wBoutiquePolicies.aspx", "Policies", "width=600,height=400,menubar=0,toolbar=1,scrollbars=1")
}
function GetStoreSecurity(){
	window.open("wBoutiqueSecurity.aspx", "Security", "width=600,height=400,menubar=0,toolbar=1,scrollbars=1")
}
function GetOrderByPhone(){
	window.open("wBoutiqueOrderByPhone.aspx", "OrderByPhone", "width=600,height=400,menubar=0,toolbar=1,scrollbars=1")
}
function GetAssistance(){
	window.open("wBoutiqueAssistance.aspx", "Assistance", "width=600,height=400,menubar=0,toolbar=1,scrollbars=1")
}
function EnlargePhoto(sImageUrl, iWidth, iHeight){
	window.open("wEnlargedPhoto.aspx?ImageUrl=" + sImageUrl + "&Width=" + iWidth + "&Height=" + iHeight, "EnlargedPhoto", "width=" + (iWidth + 40) + ",height=" + (iHeight + 40) + ",menubar=0,toolbar=0,scrollbars=0")
}