
// (C) Copyright Triangle Research, Inc., 1999
//  http://www.triangleresearch.com
//  All rights reserved

// SIDE DOOR SCRIPT - QUIETLY START SOFTCART AND DISPLAY CURRENT PAGE

// STEP 1: TELL SCRIPT WHERE SOFTCART IS LOCATED.
// Replace "SCPath"'s value with your path to SoftCart.exe.
// Examples:
	var SCPath = "/cgi-local/SoftCart.exe";
//	var SCPath = "/cgi-local/SoftCart.15.exe";
//	var SCPath = "/cgi-local/SoftCart.100.exe";
//	var SCPath = "/cgi-bin/SoftCart.exe";
//	var SCPath = "/cgi-bin/SoftCart.100.exe";

//	var SCPath = "/cgi-local/SoftCart.exe";

// STEP 2: SET THE VALUE OF THE CONFIG VARIABLE
// If your store uses scstore.cfg as its SoftCart configuration,
//	then do NOT change the value of the config variable.
// If your store uses a configuration file named "goheels.cfg",
//	for example, then change the following line to:
//	var config = "goheels";
// Note: SoftCart's Store Manager login screen calls
//	this the "Store Name". The default value for SoftCart
//	4.0 and later is "scstore".

	var config = "scstore";

// DO NOT TOUCH THE FOLLOWING
if (( window.location.pathname.substring(0,SCPath.length) != SCPath) && (window.location.href.substring(0,4) != "file") ) {
	window.location.replace(SCPath + location.pathname + "?E+" + config);
}


