/// <copyright>
/// The Wellbeing Source Code used on www.wellbeing-uk.com and all contents thereof 
/// relating in part or full to the Wellbeing website and the Wellbeing web-pages 
/// therein are copyrighted to Mister Phillip Atkinson(‘the Owner’) and are licensed 
/// to Wellbeing. All rights of the Owner are reserved. All logos and trademarks are 
/// protected. Unauthorised copying of the Source Code, website and web-pages and all 
/// matters pertaining thereto is prohibited.
/// </copyright>

/*
function blockSource()
{
	if (event.button == 2)
		alert('Function is not allowed in this section of the Wellbeing web site!');
}

document.onmousedown = blockSource;
*/

function dateClock() {
currentTime = window.setTimeout("dateClock()", 1000);
var esDia = new Date();
var display = esDia.toLocaleString();
window.status = display;
}
//dateClock();

function informationWindow(cItemCode)
{
	var lcURL = 'ItemInformation.aspx?ItemCode=' + cItemCode;
	var lnLeft = (screen.width / 2) - (990/2);
	var lnTop = (screen.height / 2) - (868/2);
	window.open(lcURL, 'ItemInformation','left=' + lnLeft + ',top=' + lnTop + ',width=990,height=658,status=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,hotkeys=yes');
}

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")

