//////////////////////////////////////////////////////////////////////////////////////
// Name			: ShowMenu															//
// Description	: Sets the style visibility to visible to show a hidden layer.		//
// Parameters	:-																	//
//	  layerName : Name of the layer to be shown.									//
// Author		: Brett Schumann (brett@3mindsmedia.co.uk)							//
// Date			: 19 / 02 / 2004													//
// Copyright	: © Naked Vision													//
//////////////////////////////////////////////////////////////////////////////////////
function ShowMenu(layerName){
	document.getElementById(layerName).style.visibility="visible";
}

//////////////////////////////////////////////////////////////////////////////////////
// Name			: HideMenu															//
// Description	: Sets the style visibility to hidden to show a hidden layer.		//
// Parameters	:-																	//
//	  layerName : Name of the layer to be hidden.									//
// Author		: Brett Schumann (brett@3mindsmedia.co.uk)							//
// Date			: 19 / 02 / 2004													//
// Copyright	: © Naked Vision													//
//////////////////////////////////////////////////////////////////////////////////////
function HideMenu(layerName){
	document.getElementById(layerName).style.visibility="hidden";
}

//////////////////////////////////////////////////////////////////////////////////////
// Name			: Hyperlink															//
// Description	: Sends the user to the specified URL/Address.						//
// Parameters	:-																	//
//	        URL : Address of where to navigate to.									//
// Author		: Brett Schumann (brett@3mindsmedia.co.uk)							//
// Date			: 19 / 02 / 2004													//
// Copyright	: © Naked Vision													//
//////////////////////////////////////////////////////////////////////////////////////
function Hyperlink(URL){
	window.location.href=URL;
	window.navigate(URL);
}
//////////////////////////////////////////////////////////////////////////////////////
// Name			: ConfirmDelete														//
// Description	: Confirm message and nagivate to specified URL.					//
// Parameters	:-																	//
//		Message : Message to display to user for comfirmation.						//
//	        URL : Address of where to navigate to.									//
// Author		: Brett Schumann (brett@3mindsmedia.co.uk)							//
// Date			: 23 / 02 / 2004													//
// Copyright	: © Naked Vision													//
//////////////////////////////////////////////////////////////////////////////////////
function ConfirmDelete(Message,URL){
	if(confirm(Message)){
		window.location.href=URL;
		window.navigate(URL);
	}
}
//////////////////////////////////////////////////////////////////////////////////////
// Name			: OpenWindow														//
// Description	: Create a popup window without all the fancy trimmings.			//
// Parameters	:-																	//
//	        URL : URL of page to display in popup.									//
// Author		: Brett Schumann (brett@3mindsmedia.co.uk)							//
// Date			: 20 / 02 / 2004													//
// Copyright	: © Naked Vision													//
//////////////////////////////////////////////////////////////////////////////////////
function OpenWindow(URL,WIDTH,HEIGHT){
	windowA = window.open(URL,"windowA","toolbar=no,width="+WIDTH+",height="+HEIGHT+",toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no");
}

//////////////////////////////////////////////////////////////////////////////////////
// Name			: CheckEmail														//
// Description	: Validates the pasted value to see if it is am email address		//
// Parameters	:-																	//
//	      email : string to check to see if valid email address.					//
// Author		: Brett Schumann (brett@3mindsmedia.co.uk)							//
// Date			: 20 / 02 / 2004													//
// Copyright	: © Naked Vision													//
//////////////////////////////////////////////////////////////////////////////////////
function CheckEmail(email)
{
	if( ((email.lastIndexOf('@') == -1) ||
		(email.lastIndexOf('.') == -1)) ||
		email.length < 7	)
	{			
		return false;
	}
	else return true;
}



