	//	Use this function to confirm deletions. It has 3 parameters:
	//		iname:   name of the item to delete (show to the user)
	//		delURL:  URL the client should be redirected to to delete the item
	//		referer: if the delete script supports it, this is the URL the client
	//		         will be redirected to after the item is deleted
	
function confirmDelete(iname, delURL, referer) {
	if (confirm("Are you sure you wish to delete '" + iname + "'?")) {
		location.href = (delURL + "&referer_page=" + referer);
	}
}

function confirmResetCart(delURL) {
	if (confirm("Are you sure you wish to reset your shopping cart?")) {
		location.href = (delURL);
	}
}
function confirmLogin(url, text, redirect) 
{
	if (confirm(text))
	{
		location.href = (url + "?page=" + redirect);
	}
	else location.href = (redirect);
	
}

/*	This function is called whenever a user wants to cancel his/her order while using shopping cart.
	This will make them use another shopping cart as their cookie will be cleared if user presses YES. and 
	is redirected to the page pointed by path which has been set such that it points 
	
var	resetURL = "/scripts/common/clear_cookie.php3";
var resetPATH = "/scripts/site/";
var name = "readPlayUser";

function confirmResetCart(resetURL, resetPATH, name)
{	if (confirm("Are you sure you want to cancel your shopping cart?"))
	{	location.href = (resetURL + "?name=" + name "&path=" + resetPATH);
	}
}
*/

var submitcount=0 
function AddCount()
{ 
	submitcount++; 
} 
function SurveyPopUp()
{ 
	if (submitcount == 0) 
	{ 
		var app = navigator.appName; 
		if (app == "Microsoft Internet Explorer") 
		{ 
			var mywin=window.open("http://www.followup.net/profile/survey/survey.cfm?sname=268X982","mynew","width=700,height=500,scrollbars=yes,resizable=yes,left=0,top=0") 
		}
		else
		{ 
			var mywin=window.open("http://www.followup.net/profile/survey/survey.cfm?sname=268X982","mynew","width=700,height=500,screenX=0,screenY=0,scrollbars=yes,resizable=yes") 
		} 
	} 
} 
/*
// START: FOLLOWUP.NET's POP-UP SURVEY INTEGRATION
// Adebola Ajiboye; BWI Inc. ; Monday January 17, 2000

var submitcount=0 

function AddCount()
{	submitcount++; 
} 

function SurveyPopUp()
{	if (submitcount == 0) 
	{ 
		var app = navigator.appName; 
		if (app == "Microsoft Internet Explorer") 
		{ 
			var mywin=window.open("http://www.followup.net/profile/survey/survey.cfm?sname=268X982","mynew","width=800,height=750,scrollbars=yes,resizable=yes,left=0,top=0") 
		} 
		else
		{ 
			var mywin=window.open("http://www.followup.net/profile/survey/survey.cfm?sname=268X982","mynew","width=800,height=750,screenX=0,screenY=0,scrollbars=yes,resizable=yes") 
		} 
	} 
} 
*/
// END: FOLLOWUP.NET's POP-UP SURVEY INTEGRATION
