/**
* @Module	 	Header
* @Author	 	Pradeep  
* @Created	 	18-Aug-2008
* @Description	header.js works in header.php regarding various javascript functions

*/

var strLsxSeaListU="Join the Bioinnovit.com’s life sciences community to search the LSX for Listings. To register, click on the REGISTER link at the bottom of page.";
var strLsxManageListU="Join the Bioinnovit.com’s life sciences community to post and manage listings on the LSX. To register, click on the REGISTER link at the bottom of page.";
var strLsxTradingU="Join the Bioinnovit.com’s life sciences community to trade listings on the LSX. To register, click on the REGISTER link at the bottom of page.";
var strLsxMartU="Join the Bioinnovit.com’s life sciences community to view listings on the LSX Mart. To register, click on the REGISTER link at the bottom of page.";

var strLsxSeaListB="Registered BASIC users should be able to use the search engine but will be charged if they request contact information.";
//var strLsxManageListB="Join the Bioinnovit.com’s life sciences community to post and manage listings on the LSX. To register, click on the REGISTER link at the bottom of page.";
var strLsxTradingB="LSX trading allows you to bid on listed items in the LSX Mart. LSX Trading is a paid-for service; you will be charged, upon trade completion, €250 per trade.";
//var strLsxMartB="Join the Bioinnovit.com’s life sciences community to view listings on the LSX Mart. To register, click on the REGISTER link at the bottom of page.";

var strNoLsx="You have no listing to manage";

var strTargetPage="index.php?action=manageStaticPages&flag=M";

function fnNoLsx()
{
	alert(strNoLsx);	
	return false;
}
	
function fnOnLsxReg(strChoice)
{
	switch(strChoice)
	{
		case "SL":
						alert(strLsxSeaListB);
						location.href="index.php?action=manageLsx&flag=SL";
						break;
		case "ML":
						location.href="index.php?action=manageLsx";						
						break;
		case "LT":
//						alert(strLsxTradingB);
						location.href="index.php?action=manageLsx&flag=SN";
						break;
		case "LM":
						location.href="index.php?action=manageLsx&flag=LM";
						break;					
	}
}

function fnOnLsxRegOther(strChoice)
{
	switch(strChoice)
	{
		case "SL":						
						location.href="index.php?action=manageLsx&flag=SL";
						break;
		case "ML":
						location.href="index.php?action=manageLsx";						
						break;
		case "LT":						
						location.href="index.php?action=manageLsx&flag=SN";
						break;
		case "LM":
						location.href="index.php?action=manageLsx&flag=LM";
						break;					
	}
}


function fnOnLsxUnreg(strChoice)
{
	switch(strChoice)
	{
		case "SL":
						alert(strLsxSeaListU);
						break;
		case "ML":
						alert(strLsxManageListU);
						break;
		case "LT":
						alert(strLsxTradingU);
						break;
		case "LM":
						alert(strLsxMartU);						 
						break;					
	}
	location.href=strTargetPage;
	return true;
}