



function CartCalculateTax()
	{
	{
	if (document.CARTSUBMIT.SHIPTOSTYLE[0].checked == true)
		{
		document.CARTSUBMIT.SALESHIPS.value	= document.CARTSUBMIT.HOLDSHIPS.value;
		}
	}
	{
	if (document.CARTSUBMIT.SHIPTOSTYLE[1].checked == true)
		{
		document.CARTSUBMIT.SALESHIPS.value	= document.CARTSUBMIT.HOLDSHIPS.value;
		}
	}
	{
	if (document.CARTSUBMIT.SHIPTOSTYLE[2].checked == true)
		{
		document.CARTSUBMIT.SALESHIPS.value	= "0.00";
		}
	}
	{
	if (document.CARTSUBMIT.SHIPTOSTYLE[3].checked == true)
		{
		document.CARTSUBMIT.SALESHIPS.value	= "0.00";
		}
	}

	var GrossTotalWithShippingCharges   = Number(document.CARTSUBMIT.SALETOTAL.value) + Number(document.CARTSUBMIT.SALETAXES.value) + Number(document.CARTSUBMIT.SALESHIPS.value);
	document.CARTSUBMIT.SALEGROSS.value = GrossTotalWithShippingCharges.toFixed(2);
	document.all.SPANSHIPS.innerHTML	= document.CARTSUBMIT.SALESHIPS.value; 
	document.all.SPANGROSS.innerHTML	= document.CARTSUBMIT.SALEGROSS.value; 

	if (document.CARTSUBMIT.SHIPSTATE.value == "TN")
		{
		document.CARTSUBMIT.SALETAXES.value	= document.CARTSUBMIT.HOLDTAXES.value;
		document.CARTSUBMIT.SALEGROSS.value = (Number(document.CARTSUBMIT.SALETOTAL.value) + Number(document.CARTSUBMIT.SALETAXES.value) + Number(document.CARTSUBMIT.SALESHIPS.value)).toFixed(2);

		document.all.SPANTAXES.innerHTML	= document.CARTSUBMIT.SALETAXES.value; 
		document.all.SPANSHIPS.innerHTML	= document.CARTSUBMIT.SALESHIPS.value; 
		document.all.SPANGROSS.innerHTML	= document.CARTSUBMIT.SALEGROSS.value; 

		return;
		}
	if (document.CARTSUBMIT.SHIPTOSTYLE[2].checked == true)
		{
		document.CARTSUBMIT.SALETAXES.value	= document.CARTSUBMIT.HOLDTAXES.value;
		document.CARTSUBMIT.SALEGROSS.value = (Number(document.CARTSUBMIT.SALETOTAL.value) + Number(document.CARTSUBMIT.SALETAXES.value) + Number(document.CARTSUBMIT.SALESHIPS.value)).toFixed(2);
		document.all.SPANTAXES.innerHTML	= document.CARTSUBMIT.SALETAXES.value; 
		document.all.SPANSHIPS.innerHTML	= document.CARTSUBMIT.SALESHIPS.value; 
		document.all.SPANGROSS.innerHTML	= document.CARTSUBMIT.SALEGROSS.value; 

		return;
		}
	if (document.CARTSUBMIT.SHIPSTATE.value == "")
		{
		document.CARTSUBMIT.SALETAXES.value	= document.CARTSUBMIT.HOLDTAXES.value;
		document.CARTSUBMIT.SALEGROSS.value = (Number(document.CARTSUBMIT.SALETOTAL.value) + Number(document.CARTSUBMIT.SALETAXES.value) + Number(document.CARTSUBMIT.SALESHIPS.value)).toFixed(2);

		document.all.SPANTAXES.innerHTML	= document.CARTSUBMIT.SALETAXES.value; 
		document.all.SPANSHIPS.innerHTML	= document.CARTSUBMIT.SALESHIPS.value; 
		document.all.SPANGROSS.innerHTML	= document.CARTSUBMIT.SALEGROSS.value; 

		return;
		}

		var NoStateSalesTaxGrossTotal       = Number(document.CARTSUBMIT.HOLDTOTAL.value) + Number(document.CARTSUBMIT.SALESHIPS.value);
		document.CARTSUBMIT.SALETAXES.value	= "Out-Of-State<br>No Tax Paid!";
		document.CARTSUBMIT.SALEGROSS.value = NoStateSalesTaxGrossTotal.toFixed(2);

		document.all.SPANTAXES.innerHTML	= document.CARTSUBMIT.SALETAXES.value; 
		document.all.SPANSHIPS.innerHTML	= document.CARTSUBMIT.SALESHIPS.value; 
		document.all.SPANGROSS.innerHTML	= document.CARTSUBMIT.SALEGROSS.value; 

		return;		
	}

function CartCopyAddress()
	{
	if (document.CARTSUBMIT.SHIPTOSTYLE[1].checked == true)
		{
		if (document.CARTSUBMIT.BILLFNAME.value == "")
			{
			alert("You MUST Complete The Bill To Address First!");
			document.CARTSUBMIT.SHIPTOSTYLE[0].checked = true;
			CartCalculateTax();
			document.CARTSUBMIT.BILLFNAME.focus();
			return;
			}
		if (document.CARTSUBMIT.BILLADDRESS1.value == "")
			{
			alert("You MUST Complete The Bill To Address First!");
			document.CARTSUBMIT.SHIPTOSTYLE[0].checked = true;
			CartCalculateTax();
			document.CARTSUBMIT.BILLADDRESS1.focus();
			return;
			}
		if (document.CARTSUBMIT.BILLCITY.value == "")
			{
			alert("You MUST Complete The Bill To Address First!");
			CartCalculateTax();
			document.CARTSUBMIT.SHIPTOSTYLE[0].checked = true;
			document.CARTSUBMIT.BILLCITY.focus();
			return;
			}
		if (document.CARTSUBMIT.BILLSTATE.value == "")
			{
			alert("You MUST Complete The Bill To Address First!");
			document.CARTSUBMIT.SHIPTOSTYLE[0].checked = true;
			CartCalculateTax();
			document.CARTSUBMIT.BILLSTATE.focus();
			return;
			}
		if (document.CARTSUBMIT.BILLZIPCODE.value == "")
			{
			alert("You MUST Complete The Bill To Address First!");
			document.CARTSUBMIT.SHIPTOSTYLE[0].checked = true;
			CartCalculateTax();
			document.CARTSUBMIT.BILLZIPCODE.focus();
			return;
			}

		document.CARTSUBMIT.SHIPFNAME.value		=	document.CARTSUBMIT.BILLFNAME.value;
		document.CARTSUBMIT.SHIPLNAME.value		=	document.CARTSUBMIT.BILLLNAME.value;
		document.CARTSUBMIT.SHIPCNAME.value		=	document.CARTSUBMIT.BILLCNAME.value;
		document.CARTSUBMIT.SHIPADDRESS1.value	=	document.CARTSUBMIT.BILLADDRESS1.value;
		document.CARTSUBMIT.SHIPADDRESS2.value	=	document.CARTSUBMIT.BILLADDRESS2.value;
		document.CARTSUBMIT.SHIPCITY.value		=	document.CARTSUBMIT.BILLCITY.value;
		document.CARTSUBMIT.SHIPSTATE.value		=	document.CARTSUBMIT.BILLSTATE.value;
		document.CARTSUBMIT.SHIPZIPCODE.value	=	document.CARTSUBMIT.BILLZIPCODE.value;
		//
		CartCalculateTax();
		//
		return;
		}
	if (document.CARTSUBMIT.SHIPTOSTYLE[2].checked == true)
		{
		document.CARTSUBMIT.SHIPFNAME.value		=	document.CARTSUBMIT.BILLFNAME.value;
		document.CARTSUBMIT.SHIPLNAME.value		=	document.CARTSUBMIT.BILLLNAME.value;
		document.CARTSUBMIT.SHIPCNAME.value		=	"c/o Family Campers";
		document.CARTSUBMIT.SHIPADDRESS1.value	=	"101 Southside Park Dr,";
		document.CARTSUBMIT.SHIPADDRESS2.value	=	"";
		document.CARTSUBMIT.SHIPCITY.value		=	"Lebanon";
		document.CARTSUBMIT.SHIPSTATE.value		=	"TN";
		document.CARTSUBMIT.SHIPZIPCODE.value	=	"37090";
		//
		CartCalculateTax();
		//
		return;
		}

	if (document.CARTSUBMIT.SHIPTOSTYLE[3].checked == true)
		{
		document.CARTSUBMIT.SHIPFNAME.value		=	document.CARTSUBMIT.BILLFNAME.value;
		document.CARTSUBMIT.SHIPLNAME.value		=	document.CARTSUBMIT.BILLLNAME.value;
		document.CARTSUBMIT.SHIPCNAME.value		=	"c/o Sherlocks Book Emporium";
		document.CARTSUBMIT.SHIPADDRESS1.value	=	"235 Fifth Avenue North";
		document.CARTSUBMIT.SHIPADDRESS2.value	=	"";
		document.CARTSUBMIT.SHIPCITY.value		=	"Nashville";
		document.CARTSUBMIT.SHIPSTATE.value		=	"TN";
		document.CARTSUBMIT.SHIPZIPCODE.value	=	"37219";
		//
		CartCalculateTax();
		//
		return;
		}

		document.CARTSUBMIT.SHIPFNAME.value		=	"";
		document.CARTSUBMIT.SHIPLNAME.value		=	"";
		document.CARTSUBMIT.SHIPCNAME.value		=	"";
		document.CARTSUBMIT.SHIPADDRESS1.value	=	"";
		document.CARTSUBMIT.SHIPADDRESS2.value	=	"";
		document.CARTSUBMIT.SHIPCITY.value		=	"";
		document.CARTSUBMIT.SHIPSTATE.value		=	"";
		document.CARTSUBMIT.SHIPZIPCODE.value	=	"";
		//
		CartCalculateTax();
		//
		return;
	}

function CartUpdate(TheCartRecord,TheCartOrigin,TheNewQuantity)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("",DetermineWindowType(),"height=300,width=750,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Shopping Cart Update</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="CARTCONTENTS.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="CARTCONTENTS" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="SHOPPINGCART">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="CART-UPDATED">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="KEYTOITEM" VALUE="' + TheCartRecord  + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THEORIGIN" VALUE="' + TheCartOrigin  + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THENEWQTY" VALUE="' + TheNewQuantity + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THECARTID" VALUE="' + GetCookie("SherlocksCartIndex") + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function ConfirmActiveDate(TheDateToCheck)
	{
	var	CurrentDate;
	var	DateInMonth;
	var	MonthNumber
	//
	//	Open The Window
	//
	CurrentDate	=  new Date();
	//
	DateInMonth	=  CurrentDate.getDate().toFixed(0);
	MonthNumber =  (Number(CurrentDate.getMonth()) + 1).toFixed(0);
	//
	if (DateInMonth < 10) 	
		{
		DateInMonth = "0" + DateInMonth.toString();
		}
	if (MonthNumber < 10) 	
		{
		MonthNumber = "0" + MonthNumber.toString();
		}
	if (Number(CurrentDate.getFullYear() + MonthNumber.toString() + DateInMonth.toString()) > Number(TheDateToCheck).toFixed(0))
		{
		return false;
		}

	return true;
	}

function writePersistentCookie (CookieName, CookieValue, periodType, offset) 
	{
  var expireDate = new Date ();
  offset = offset / 1;
  
  var myPeriodType = periodType;
  switch (myPeriodType.toLowerCase()) 
	{
    case "years": 
     var year = expireDate.getYear();     
     // Note some browsers give only the years since 1900, and some since 0.
     if (year < 1000) year = year + 1900;     
     expireDate.setYear(year + offset);
     break;
    case "months":
      expireDate.setMonth(expireDate.getMonth() + offset);
      break;
    case "days":
      expireDate.setDate(expireDate.getDate() + offset);
      break;
    case "hours":
      expireDate.setHours(expireDate.getHours() + offset);
      break;
    case "minutes":
      expireDate.setMinutes(expireDate.getMinutes() + offset);
      break;
    default:
      alert ("Invalid periodType parameter for writePersistentCookie()");
      break;
	} 
  document.cookie = escape(CookieName ) + "=" + escape(CookieValue) + "; expires=" + expireDate.toGMTString() + "; path=/";
	}  

function GetCartContents(TheCartNumber,TheCartOrigin)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	//ReviewWindow	= window.open("","BookCartWindow","height=500,resizable=yes,scrollbars=yes");
	//ReviewWindow	= window.open("","BookCartWindow");
	ReviewWindow	= window.open("",DetermineWindowType());
	//
	ReviewContent	=  '<html><title>Shopping Cart Contents</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="CARTCONTENTS.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="CARTCONTENTS" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="SHOPPINGCART">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="CART-CONTENT">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THECARTID" VALUE="' + TheCartNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THEORIGIN" VALUE="' + TheCartOrigin + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function GetCartSubPage(TheCartNumber,TheCartOrigin)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	//ReviewWindow	= window.open("","BookCartWindow","height=500,resizable=yes,scrollbars=yes");
	//ReviewWindow	= window.open("","BookCartWindow");
	ReviewWindow	= window.open("",DetermineWindowType());
	//
	ReviewContent	=  '<html><title>Shopping Cart Contents</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="CARTCONTENTS.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="../SHERLOCKS-PUBLIC.EXE" NAME="CARTCONTENTS" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="SHOPPINGCART">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="CART-CONTENT">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THECARTID" VALUE="' + TheCartNumber + '">'
		{
	if (TheCartOrigin == "")
		{
		ReviewContent	+= '<INPUT TYPE="hidden" NAME="THEORIGIN" VALUE="BOOKS">'
		}
		else
		ReviewContent	+= '<INPUT TYPE="hidden" NAME="THEORIGIN" VALUE="' + TheCartOrigin + '">'
		}
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function GetCartCount()
	{
	if (GetCookie("SherlocksCartCount") == "")
		{
		document.all.theCartCount.innerHTML = "Cart Is Empty";
		return ""; 
		}
		document.all.theCartCount.innerHTML = GetCookie("SherlocksCartCount") + "&nbsp; Item(s) In Cart" + '<br>' + GetCookie("SherlocksCartIndex");
		return "";
	}


function GetCartDetails(TheIsbnNumber,TheTypeOfItem)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("","BookNotesWindow","height=300,width=800,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Shopping Cart Detail</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="CARTCONTENTS.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="CARTCONTENTS" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="SHOPPINGCART">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="CART-DETAILS">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="KEYTOITEM" VALUE="' + TheIsbnNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ITEMCLASS" VALUE="' + TheTypeOfItem + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function GetCookie(cookieName)
	{
  var exp = new RegExp (escape(cookieName) + "=([^;]+)");
  if (exp.test (document.cookie + ";")) 
	{
    exp.exec (document.cookie + ";");
    return unescape(RegExp.$1);
	}
	else return "";
	}


function OpenBookPageHome()
	{
	var	BookPage;
	//
	//	Open The Window
	//
	BookPage	= window.open("http://www.bookpage.com","BookPageWindow","height=500,width=1000,resizable=yes,scrollbars=yes");
	BookPage.focus();
	}


function OpenBookPageCreate()
	{
	var	EventWindow;
	var	EventContent;
	//
	//	Open The Window
	//
	EventWindow	= window.open("","BookPageWindow","height=360,width=650,resizable=yes,scrollbars=yes");
	EventWindow.focus();
	//
	EventContent	=  '<html><title>Book Page Creation</title>'
	EventContent	+= '<head>'
	EventContent	+= '</head>'
	EventContent	+= '<body bgcolor="lightskyblue" onLoad="BOOKPAGELIST.submit();">'
	EventContent	+= '<center>&nbsp;</center>'
	EventContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BOOKPAGELIST" METHOD="POST">'
	EventContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="BOOKPAGE">'
	EventContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="BOOKLIST">'
	EventContent	+= '</FORM>'
	EventContent	+= '</body></html>'

	EventWindow.document.write(EventContent);
	EventWindow.document.close();
	}

function OpenBookPageWindow()
	{
	var	EventWindow;
	var	EventContent;
	//
	//	Open The Window
	//
	EventWindow	= window.open("","BookPageWindow","height=360,width=650,resizable=yes,scrollbars=yes");
	EventWindow.focus();
	//
	EventContent	=  '<html><title>Book Page Subscription Form</title>'
	EventContent	+= '<head>'
	EventContent	+= '</head>'
	EventContent	+= '<body bgcolor="lightskyblue" onLoad="BOOKPAGESIGNUP.submit();">'
	EventContent	+= '<center>&nbsp;</center>'
	EventContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BOOKPAGESIGNUP" METHOD="POST">'
	EventContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="BOOKPAGE">'
	EventContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="BOOKPAGESIGNUP">'
	EventContent	+= '</FORM>'
	EventContent	+= '</body></html>'

	EventWindow.document.write(EventContent);
	EventWindow.document.close();
	}


function OpenArtistSearch(TheAuthorName)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("",DetermineWindowType());
	//
	ReviewContent	=  '<html><title>Author Title Search</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="KARTISTSCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="KARTISTSCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"     VALUE="KARTISTSEARCH">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREKEYWORD" VALUE="' + TheAuthorName + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREFORMAT"  VALUE="FF">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTORESOURCE"  VALUE="SA">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenMovieLibrary(TheMovieCode,TheMovieDate,TheMovieTime)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("",DetermineWindowType());
	//
	ReviewContent	=  '<html><title>View Movie Category</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTORESCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTORESCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="PUBLIC-THEATER-LIST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="MOVIECODE" VALUE="' + TheMovieCode + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="MOVIEDATE" VALUE="' + TheMovieDate + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="MOVIETIME" VALUE="' + TheMovieTime + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function SendReview(TheIsbnNumber,TheItemTitle  )
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","SendToFriendWindow","height=275,width=550,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Send Review To Friend</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTORESCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTORESCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"     VALUE="SENDREVIEW">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREKEYWORD" VALUE="' + TheIsbnNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREASTITLE" VALUE="' + TheItemTitle  + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function SendToFriend(TheIsbnNumber,TheItemTitle  )
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","SendToFriendWindow","height=275,width=550,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Send Link To Friend</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTORESCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTORESCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"     VALUE="SENDTOFRIEND">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREKEYWORD" VALUE="' + TheIsbnNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREASTITLE" VALUE="' + TheItemTitle  + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function ShowMovieLibrary(TheMovieCode)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	ReviewContent	=  '<html><title>Show Movie Library</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTORESCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTORESCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="PUBLIC-THEATER-SHOW">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="MOVIECODE" VALUE="' + TheMovieCode + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow	=  window.open("","ViewMovieLibrary","height=550,width=650,resizable=yes,scrollbars=yes");
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenMovieRequest(TheMovieDate,TheMovieTime)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("","NewWindow","width=900,height=500,scrollbars=yes,resizable=yes");
	//
	ReviewContent	=  '<html><title>Movie Request</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTORESCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTORESCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="PUBLIC-THEATER-REQUEST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="MOVIEDATE" VALUE="' + TheMovieDate + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="MOVIETIME" VALUE="' + TheMovieTime + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenNewWindow(mylink)
{
var hreference;
hreference=mylink;
window.open(hreference, 'MovieDetails', 'width=800,height=600,scrollbars=yes,resizable=yes');
return false;
}

function BakerBiographyDisplay()
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewContent	=  '<html><title>Baker Street Biography</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BAKERDETAIL.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BAKERDETAIL" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="BAKER-STREET">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="SHOW-BIOGRAPHY">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow	=  window.open("","BakerStreetWindow","height=550,width=800,resizable=yes,scrollbars=yes");
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function BakerBiographyManager(TheBiographyRecord)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewContent	=  '<html><title>Baker Street Biography</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BAKERDETAIL.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BAKERDETAIL" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="BAKER-STREET">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="EDIT-BIOGRAPHY">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="REQUESTID" VALUE="' + TheBiographyRecord + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow	=  window.open("","BakerStreetWindow","height=550,width=800,resizable=yes,scrollbars=yes");
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function BakerKillQuestions(TheQuestionNumber,TheRequestingUser)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	ReviewWindow	= window.open("",DetermineWindowType());
	//
	//	Open The Window
	//
	ReviewContent	=  '<html><title>Baker Street Question</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BAKERDETAIL.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BAKERDETAIL" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="BAKER-STREET">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="KILL-QUESTIONS">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="REQUESTID" VALUE="' + TheQuestionNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THEUSERID" VALUE="' + TheRequestingUser + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function BakerUserQuestions(TheQuestionNumber,TheRequestingUser)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewContent	=  '<html><title>Baker Street Question</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BAKERDETAIL.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BAKERDETAIL" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID" VALUE="BAKER-STREET">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="ACTIONSID" VALUE="USER-QUESTIONS">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="REQUESTID" VALUE="' + TheQuestionNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="THEUSERID" VALUE="' + TheRequestingUser + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow	=  window.open("","BakerStreetWindow","height=350,width=550,resizable=yes,scrollbars=yes");
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenBecksWindow(TheItemNumber)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewContent	=  '<html><title>Select This Item</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTOREORDER.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTOREORDER" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"    VALUE="KBECKSELECT">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BECKISBNKEY"  VALUE="' + TheItemNumber + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow	=  window.open("","ItemOrderWindow","height=600,width=650,resizable=yes,scrollbars=yes");
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function xxxOpenImageWindow(TheIsbnNumber)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","ImageWindow","height=700,width=450,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Item Image</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTOREIMAGE.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTOREIMAGE" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"    VALUE="SHOWIMAGE">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREIMAGE"  VALUE="' + TheIsbnNumber+ '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenImageWindow(TheIsbnNumber)
	{
	var	ImageWindow;
	var	ImageContent;
	//
	//	Open The Window
	//
	ImageWindow		= window.open("","BookReviewPhotos","height=600,width=400,location=no,resizable=no,scrollbars=yes");
	ImageContent	=  '<html><title>Item Image</title>';
	ImageContent	+= '<head>';
	ImageContent	+= '</head>';
	ImageContent	+= '<body>';
	ImageContent	+= '<img src="';
	ImageContent	+= 'http://contentcafe2.btol.com/contentcafe/Jacket.aspx?UserID=ts3app&Password=ts276356&Return=T&Value=' + TheIsbnNumber + "&Type=L";
	ImageContent	+= '">';
	ImageContent	+= '</img>';
	ImageContent	+= '</body>';
	ImageContent	+= '</html>';
	ImageWindow.document.write(ImageContent);
	ImageWindow.focus();
	}

function OpenKenBeckSearch()
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("",DetermineWindowType());
	//
	ReviewContent	=  '<html><title>Author Title Search</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="KARTISTSCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="KARTISTSCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"     VALUE="KARTISTSEARCH">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREKEYWORD" VALUE="Ken Beck">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREFORMAT"  VALUE="FE">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTORESOURCE"  VALUE="SA">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenMagazineWindow(TheItemNumber,TheCoverPrice,ThePhotoImage)
	{
	var	ImageWindow;
	var	ImageViewer;
	//
	ImageViewer	=  '<html><title>View Magazine Cover</title>'
	ImageViewer	+= '<head>'
	ImageViewer	+= '<SCRIPT language="JavaScript" type="text/javascript" SRC="SherlocksBooks.js"></SCRIPT>'
	ImageViewer	+= '<SCRIPT language="JavaScript" type="text/javascript" SRC="SherlocksStore.js"></SCRIPT>'
	ImageViewer	+= '</head>'
	ImageViewer	+= '<body bgcolor="lightskyblue">'
	ImageViewer	+= '<TABLE BORDER="0" bgcolor="lightskyblue" CELLSPACING="2" CELLPADDING="2" NOWRAP ALIGN="CENTER">'
	ImageViewer	+= '<tr>'
	ImageViewer	+= '<td align="CENTER">'
	ImageViewer	+= '<img src="' + ThePhotoImage + '" height="600" align="left">'
	ImageViewer	+= '<font size="+3" color="red">'
	ImageViewer	+= '<b>'
	ImageViewer	+= 'PLEASE NOTE <br><br> Cover Picture Is A Previous Issue And Is For Reference Only. It Is NOT The Actual Copy You Will Receive.'
	ImageViewer	+= '<br><br>'
	ImageViewer	+= 'You Will Receive The Latest Issue Available.'
	ImageViewer	+= '</b>'
	ImageViewer	+= '<br><br>'
	ImageViewer	+= 'Cover Price $' + TheCoverPrice
	ImageViewer	+= '</font>'
	ImageViewer	+= '<br><br>'
	ImageViewer	+= '<INPUT TYPE="button" NAME="MAGAZINE-CART" VALUE="Add To Cart" tabindex="-1" STYLE="background-color: salmon; color: darkblue; font-size: medium; font-weight: bold;" onClick="javascript: OpenOrderWindow(' + "'" + TheItemNumber + "'" + ',' + "'" + TheCoverPrice + "'" + ',' + "'P'" + ');">'
	ImageViewer	+= '</td>'
	ImageViewer	+= '</tr>'
	ImageViewer	+= '</TABLE>'
	ImageViewer	+= '</body></html>'
	//
	ImageWindow	= window.open("","ViewStorePhotos","height=650,width=800,resizable=no,scrollbars=no");
	ImageWindow.document.write(ImageViewer);
	ImageWindow.document.close();
	ImageWindow.focus();
	}


function OpenMovieList(TheMovieListCode)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("",DetermineWindowType());
	//
	ReviewContent	=  '<html><title>Top 10 Movie List</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="KTOP10SCREEN.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="KTOP10SCREEN" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"     VALUE="KTOP10SEARCH">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="KTOP10KEYCODE" VALUE="' + TheMovieListCode+ '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenNewReleaseWindow()
	{
	document.AUTHORDETAIL.PURPOSEID.value =  "AUTHOR-MANAGER";
	document.AUTHORDETAIL.ACTIONSID.value =  "AUTHOR-DISPLAY";
	document.AUTHORDETAIL.submit();
	}

function OpenOrderMerlyns(TheItemNumber,TheItemPrice,ProductDetail)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","MerlynOrderWindow","height=300,width=420,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Order This Item</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="MERLYNSORDER.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="../SHERLOCKS-PUBLIC.EXE" NAME="MERLYNSORDER" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"    VALUE="MERLYNORDER">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREORDER"  VALUE="' + TheItemNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREPRICE"  VALUE="' + TheItemPrice  + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTORECLASS"  VALUE="' + ProductDetail + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASINDEX"  VALUE="' + GetCookie("SherlocksCartIndex") + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASCOUNT"  VALUE="' + GetCookie("SherlocksCartCount") + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenOrderMobile(TheItemNumber,TheItemPrice)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","MobileOrderWindow","height=300,width=420,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Order This Item</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTOREORDER.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTOREORDER" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"    VALUE="BSTOREMOBILE">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREORDER"  VALUE="' + TheItemNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREPRICE"  VALUE="' + TheItemPrice  + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASINDEX"  VALUE="' + GetCookie("SherlocksCartIndex") + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASCOUNT"  VALUE="' + GetCookie("SherlocksCartCount") + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenOrderOwner(TheItemNumber)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","OwnerOrderWindow","height=300,width=420,resizable=yes,scrollbars=no");
	//
	ReviewContent	=  '<html><title>Owner Stock Order</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTOREORDER.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTOREORDER" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"    VALUE="BSTOREOWNERS">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREORDER"  VALUE="' + TheItemNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASINDEX"  VALUE="' + GetCookie("SherlocksCartIndex") + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASCOUNT"  VALUE="' + GetCookie("SherlocksCartCount") + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenOrderStock(TheItemNumber,TheItemPrice)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","StockOrderWindow","height=300,width=420,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Order This Item</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTOREORDER.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTOREORDER" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"    VALUE="BSTORESTOCK">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREORDER"  VALUE="' + TheItemNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREPRICE"  VALUE="' + TheItemPrice  + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASINDEX"  VALUE="' + GetCookie("SherlocksCartIndex") + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASCOUNT"  VALUE="' + GetCookie("SherlocksCartCount") + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}


function OpenOrderWindow(TheItemNumber,CustomerPrice,ProductDetail)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	=  window.open("","ItemOrderWindow","height=350,width=420,resizable=yes,scrollbars=yes");
	ReviewWindow.focus();
	//
	ReviewContent	=  '<html><title>Checking Status</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body>'
	ReviewContent	+= '<center>'
	ReviewContent	+= '<br><br><br><br>Please Standby<br><br>Checking Warehouse Stock For Availability...<br><br>'
	ReviewContent	+= '</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTOREORDERCONFIRM" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"    VALUE="BSTOREORDER">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREORDER"  VALUE="' + TheItemNumber + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTOREPRICE"  VALUE="' + CustomerPrice + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTORECLASS"  VALUE="' + ProductDetail + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASINDEX"  VALUE="' + GetCookie("SherlocksCartIndex") + '">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="CARTASCOUNT"  VALUE="' + GetCookie("SherlocksCartCount") + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '<script type="text/javascript">'
	ReviewContent	+= 'document.BSTOREORDERCONFIRM.submit();'
	ReviewContent	+= '</script>'
	ReviewContent	+= '<center>'
	ReviewContent	+= '<img src="./SherlocksImages/BusyCat.gif" height="75">'
	ReviewContent	+= '</center>'
	ReviewContent	+= '</body>'
	ReviewContent	+= '</html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	//
	}


function OpenReminderWindow(TheReminderDate,TheReminderType)
	{
	var	RemindWindow;
	var	RemindContent;
	//
	//	Open The Window
	//
	RemindWindow	= window.open("","BookReminderWindow","height=200,width=550,resizable=yes,scrollbars=yes");
	RemindWindow.focus();
	//
	RemindContent	=  '<html><title>Automatic Event Reminder</title>'
	RemindContent	+= '<head>'
	RemindContent	+= '</head>'
	RemindContent	+= '<body bgcolor="lightskyblue" onLoad="SIGNREMINDER.submit();">'
	RemindContent	+= '<center>&nbsp;</center>'
	RemindContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="SIGNREMINDER" METHOD="POST">'
	RemindContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"   VALUE="SHOWREMINDER">'
	RemindContent	+= '<INPUT TYPE="hidden" NAME="SIGNINGDATE" VALUE="' + TheReminderDate + '">'
	RemindContent	+= '<INPUT TYPE="hidden" NAME="SIGNINGTYPE" VALUE="' + TheReminderType + '">'
	RemindContent	+= '</FORM>'
	RemindContent	+= '</body></html>'

	RemindWindow.document.write(RemindContent);
	RemindWindow.document.close();
	}

function OpenReviewWindow(TheIsbnNumber)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window	-	SINGLE REVIEW
	//
	ReviewWindow	= window.open("","PublicReviewWindow","height=600,width=600,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Book Review</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BOOKREVIEW.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BOOKREVIEW" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="REVIEW-PUBLIC" VALUE="' + TheIsbnNumber + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'

	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenReviewsWindow(TheReviewType)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window	-	MULTIPLE REVIEWS
	//
	ReviewWindow	= window.open("",DetermineWindowType());
	ReviewWindow.focus();
	//
	ReviewContent	=  '<html><title>Book Reviews</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body bgcolor="lightskyblue" onLoad="BOOKREVIEW.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BOOKREVIEW" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BOOK-REVIEW">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="TYPE-REVIEW" VALUE="' + TheReviewType + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'

	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	}

function OpenSalesTaxWindow()
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewContent	=  '<html><title>Sales Tax</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body bgcolor="khaki">'
	ReviewContent	+= '<center><font color="darkred" size="+3">Tennessee Sales Tax</font></center>'

	ReviewContent	+= '<center><BR></center>'
	ReviewContent	+= "<br><center><b>If You Are Shipping Your Items Somewhere Other Than Tennessee, Then There Is No Sales Tax...</b></center>"
	ReviewContent	+= '<br>'

	ReviewContent	+= '</body></html>'
	//
	ReviewWindow	=  window.open("","SearchHintsWindow","height=200,width=350,resizable=yes,scrollbars=yes");
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenShippingWindow()
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewContent	=  '<html><title>Shipping Charges</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body bgcolor="khaki">'
	ReviewContent	+= '<center><font color="darkred" size="+3">Shipping Charges</font></center>'

	ReviewContent	+= '<center><BR></center>'
	ReviewContent	+= '<center><font color="darkblue" size="+2">Books/Music/Videos</font></center>'
	ReviewContent	+= "<br><center><b>$3.00 For The First Item</b></center>"
	ReviewContent	+= "<br><center><b>$1.25 For Each Additional Item</b></center>"
	ReviewContent	+= '<br><center><b><font color="darkblue" size="+2">Shipping Is Free For<br>Purchases Over $50.00</font></b></center>'
	ReviewContent	+= '<br>'

	ReviewContent	+= '</body></html>'
	//
	ReviewWindow	=  window.open("","SearchHintsWindow","height=350,width=350,resizable=yes,scrollbars=yes");
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function OpenStockWindow(TheIsbnNumber)
	{
	var	ReviewWindow;
	var	ReviewContent;
	//
	//	Open The Window
	//
	ReviewWindow	= window.open("","StockPlotWindow","height=300,width=800,resizable=yes,scrollbars=yes");
	//
	ReviewContent	=  '<html><title>Plot</title>'
	ReviewContent	+= '<head>'
	ReviewContent	+= '</head>'
	ReviewContent	+= '<body onLoad="BSTORESTOCK.submit();">'
	ReviewContent	+= '<center>&nbsp;</center>'
	ReviewContent	+= '<FORM ACTION="SHERLOCKS-PUBLIC.EXE" NAME="BSTORESTOCK" METHOD="POST">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="PURPOSEID"   VALUE="BSTORESEARCH">'
	ReviewContent	+= '<INPUT TYPE="hidden" NAME="BSTORESTOCK" VALUE="' + TheIsbnNumber + '">'
	ReviewContent	+= '</FORM>'
	ReviewContent	+= '</body></html>'
	//
	ReviewWindow.document.write(ReviewContent);
	ReviewWindow.document.close();
	ReviewWindow.focus();
	//
	}

function TheaterRequestWindow(TheMovieName,TheMovieFile)
	{
	//
	document.INPUTFORM.MOVIENAME.value	=	TheMovieName;
	document.INPUTFORM.MOVIEFILE.value	=	TheMovieFile;
	document.all.MOVIETITLE.innerHTML	=	"Selected Movie: " + TheMovieName;
	//
	document.getElementById("MOVIEUSER").style.display = "inline";
	window.scrollTo(0,0);
	//
	document.INPUTFORM.USER_EMAILADDRESS.focus();
	//
	return;
	//
	}






