//Copyright (c) 2002 Dovetail Internet Technologies, LLC 

//Made for the exclusive use of Dovetail Internet Technologies, LLC 

//All Rights Reserved.





//url - The location of the outside link (fully qualified)

var url= window.location.search.substring(1); //get the querystring val, minus the '?'





///////////////////////

//function: linkout

//Purpose: Send user to confirmation page, and send the parameters correctly

//Context: Called by linkout to open the confirmation window.

//-------------

//

function linkout(surl)

{

	window.location = '/linkout.asp?' + surl

}



///////////////////////

//function: open_window

//Purpose: Opens a window with the specified characteristics

//Context: Not Implemented

//-------------

function open_window(url,wname,dir,status,menu,scroll,resize,width,height,top) {		



		var mywin = window.open(url,wname,'directories='+dir+',status='+status+',menubar='+menu+',scrollbars='+scroll+',resizable='+resize+',width='+width+',height='+ height+',top='+top);

		if (mywin.parent.opener ==null)

			mywin.parent.opener = this.document;

		mywin.focus();		

}











///////////////////////

//Function: Confirm

// Purpose: Sends page to first page in browser's history.

//-------------

function Confirm()

{

	if(!(document.layers&&!document.getElementByID)){					

	window.history.go(-1);

	}

}





///////////////////////

//Function: Cancel

// Purpose: Sends page to first page in browser's history.

// Context: Called from popup  to cancel or confirm linkout.

//-------------



function Cancel () 

{



	window.history.go(-1);	

}





///////////////////////

//Function: ReplaceParent

// Purpose: Updates the caller's window.location with a specified URL. 

//			If no parent exisits, a new window is open.

//Context: Not Implemented

//-------------

function replaceParent(){	

	

	if (window.opener && !window.opener.closed)//does the parent exist?

	{	window.opener.location=url;

		window.opener.focus();

	}

	else//parent ! found - may have been closed - open a new window

	{

		var newwin = window.open(url);

		newwin.focus();

	}

	

		window.close();



}