function Redir(GoTo, theLocation)
	{
		if (theLocation == "_self") {location.href = GoTo;}
		if (theLocation == "_parent") {parent.document.location.href = GoTo;}
		if (theLocation == "_top") {top.document.location.href = GoTo;}
		if (theLocation == "_blank")
		{
			GoToN3 = GoTo;
			onerror = NetscThree
			if (screen.width)
			{
				if (screen.width > 640) {theWidth = screen.width *.75; theHeight = screen.height *.65;}
				else {theWidth = 480; theHeight = 300;}
			}
			else {theWidth = 480; theHeight = 300;}

			params = "";
			params += "toolbar=1,";
			params += "location=0,";
			params += "directories=0,";
			params += "status=1,";
			params += "menubar=0,";
			params += "scrollbars=1,";
			params += "resizable=1,";
			params += "width=";
			params += theWidth;
			params += ",height=";
			params += theHeight;
			extWindow = window.open("http://www.skin-diver.com/bonaire/Redirection.asp?page=" + GoTo,"extWin", params);
			extWindow.focus();
		}
	}

function NetscThree(errMsg, location, lineNum)
{
	params = "";
	params += "toolbar=1,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=1,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=1,";
	params += "width=";
	params += 480;
	params += ",height=";
	params += 300;

	theLocation = "";
	theLocation += "http://www.skin-diver.com/bonaire/";
	theLocation += "Redirection.asp?page=";
	theLocation += GoToN3;
	theLocation += "";
	extWindow = window.open(theLocation,"extWin",params);
	extWindow.focus();
	return true;
}

function RedirRate(GoTo, theLocation, ID)
	{
		var nextpos = 0;
		nextpos=GoTo.indexOf("&", 0);
		if (nextpos != -1)
		{
		GoTo = GoTo.substring(0,nextpos) + "|" + GoTo.substring(nextpos+1);
		}
		if (theLocation == "_self") {location.href = GoTo;}
		if (theLocation == "_parent") {parent.document.location.href = GoTo;}
		if (theLocation == "_top") {top.document.location.href = GoTo;}
		if (theLocation == "_blank")
		{
			GoToN3 = GoTo;
			IDN3 = ID;
			onerror = NetscThreeRate
			if (screen.width)
			{
				if (screen.width > 640) {theWidth = screen.width * .75; theHeight = screen.height * .65;}
				else {theWidth = 480; theHeight = 300;}
			}
			else {theWidth = 480; theHeight = 300;}
			extWindow = window.open("http://" + document.location.host + "RedirectionRate.asp?page=" + GoTo + "&pageID=" + ID,"extWin","toolbar=yes,location=0,scrollbars=yes,status=yes,resizable=yes,width=" + theWidth + ",height=" + theHeight);
			extWindow.focus();
		}
	}


function NetscThreeRate(errMsg, location, lineNum)
{
	params = "";
	params += "toolbar=1,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=1,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=1,";
	params += "width=";
	params += 480;
	params += ",height=";
	params += 300;

	theLocation = "";
	theLocation += "http://";
	theLocation += document.location.host;
	theLocation += "/include/RedirectionRate.asp?page=";
	theLocation += GoToN3;
	theLocation += "&pageID=";
	theLocation += IDN3;
	theLocation += "";
	extWindow = window.open(theLocation,"extWin",params);
	extWindow.focus();
	return true;
}

function RedirOrg(GoTo, theLocation, ID)
	{
		if (theLocation == "_self") {location.href = GoTo;}
		if (theLocation == "_parent") {parent.document.location.href = GoTo;}
		if (theLocation == "_top") {top.document.location.href = GoTo;}
		if (theLocation == "_blank")
		{
			GoToN3 = GoTo;
			IDN3 = ID;
			onerror = NetscThreeOrg
			if (screen.width)
			{
				if (screen.width > 640) {theWidth = screen.width *.75; theHeight = screen.height * .65;}
				else {theWidth = 480; theHeight = 360;}
			}
			else {theWidth = 480; theHeight = 360;}
			extWindow = window.open("http://" + document.location.host + "RedirectionOrg.asp?page=" + GoTo + "&orgID=" + ID,"extWin","toolbar=no,location=0,scrollbars=yes,resizable=yes,width=" + theWidth + ",height=" + theHeight);
			extWindow.focus();
		}
	}

function NetscThreeOrg(errMsg, location, lineNum)
{
	params = "";
	params += "toolbar=1,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=1,";
	params += "menubar=0,";
	params += "scrollbars=1,";
	params += "resizable=1,";
	params += "width=";
	params += 480;
	params += ",height=";
	params += 300;

	theLocation = "";
	theLocation += "http://";
	theLocation += document.location.host;
	theLocation += "RedirectionOrg.asp?page=";
	theLocation += GoToN3;
	theLocation += "&orgID="
	theLocation += IDN3;
	theLocation += "";
	extWindow = window.open(theLocation,"extWin",params);
	extWindow.focus();
	return true;
}



