﻿function fSwapColour(inTable)//,inRow2,inRow3,inRow4)
{
	//Mozilla(Gecko)
	document.getElementById(inTable).style.opacity=.75;
	//IE
	document.getElementById(inTable).style.filter= "alpha(opacity=75)";
	document.getElementById(inTable).style.cursor="pointer";

	return false;

}
function fSwapColorMsg(inTable, inStatusMsg)//,inRow2,inRow3,inRow4)
{
	//Mozilla(Gecko)
	document.getElementById(inTable).style.opacity=.75;
	//IE
	document.getElementById(inTable).style.filter= "alpha(opacity=75)";
	document.getElementById(inTable).style.cursor="pointer";
    window.status=inStatusMsg;
	return false;

}

function fUnSwapColour(inTable) //,inRow2,inRow3,inRow4)
{
	document.getElementById(inTable).style.opacity=1;
	document.getElementById(inTable).style.filter="alpha(opacity=100)"
	window.status="";
	return false;

}

// The following methods redirect to the referenced URL
function fToServices()
{
	window.location="Services.aspx";
}
function fToPharmacy()
{
	window.location="http://www.rx-vantage.com";
}
function fToShipping()
{
	window.location="Shipping.aspx";
}
function fToVantage()
{
	window.location="Vantage.aspx";
}
function fToAppDev()
{
	window.location="Development.aspx";
}
function fToIndustries()
{
	window.location="sbs.aspx";
}

//function fToPartners()
//{
//	window.location="Partners.aspx";
//}

function fExternalLinkWindow(webAddress) {
	//KB: Reusable for any external link or document
	extWindow = window.open(webAddress, 'externalLink');
	//extWindow.resizeTo((screen.availWidth - 150),(screen.availHeight - 150));
	//extWindow.pixelHeight(screen.availHeight - 150);
	//extWindow.pixelWidth(screen.availWidth - 150);
	//extWindow.moveTo(20,20);
	extWindow.focus();
}

