function switchImage(imgName, newImageName)
{
	document.getElementById(imgName).src = newImageName;
}


function setStyle(elementName, styleName, value)
{
	document.getElementById(elementName).style[styleName] = value;
	//document.getElementById(elementName).style.backgroundColor = '#FF0000';
}

function extrudeTableCell(elementName)
{
	cellStyle = document.getElementById(elementName).style;
	cellStyle.borderStyle = 'solid'
	cellStyle.borderWidth = 1;
	cellStyle.borderBottomColor = '#000000';
	cellStyle.borderRightColor = '#000000';
	cellStyle.borderTopColor = '#888888';
	cellStyle.borderLeftColor = '#888888';
	cellStyle.fontSize = '13';
	cellStyle.backgroundColor = '#EBF0FD'
}

function flattenTableCell(elementName)
{
	cellStyle = document.getElementById(elementName).style;
	cellStyle.borderStyle = 'solid'
	cellStyle.borderWidth = 0;
	cellStyle.borderBottomColor = '#888888';
	cellStyle.borderRightColor = '#888888';
	cellStyle.borderTopColor = '#888888';
	cellStyle.borderLeftColor = '#888888';
	cellStyle.fontSize = '12';
	cellStyle.backgroundColor = '#F5F7FD';
}


var sampWin
function showSampleReseller()
{
	if (sampWin == null || sampWin.closed)
	{
		sampWin = window.open("JumpPage.aspx?page=sample", "_samplePage", 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=550,height=450,toolbar=no,location=no,directories=no');
	}
	sampWin.focus();
}

var MoneyBack
function showMoneyBackPopup()
{
	if (MoneyBack == null || MoneyBack.closed)
	{
		MoneyBack = window.open("JumpPage.aspx?page=moneyback", "_moneyBack", 'menubar=no,status=no,scrollbars=no,resizable=yes,width=450,height=450,toolbar=no,location=no,directories=no');
	}
	MoneyBack.focus();
}

var ResellerAgreement
function showResellerAgreementPopup()
{
	if (ResellerAgreement == null || ResellerAgreement.closed)
	{
		ResellerAgreement = window.open("JumpPage.aspx?page=reselleragreement", "_resellerAgreement", 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=700,height=500,toolbar=no,location=no,directories=no');
	}
	ResellerAgreement.focus();
}

var PrivacyPolicy
function showPrivacyPolicyPopup()
{
	if (PrivacyPolicy == null || PrivacyPolicy.closed)
	{
		PrivacyPolicy = window.open("JumpPage.aspx?page=privacypolicy", "_privacyPolicy", 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=700,height=500,toolbar=no,location=no,directories=no');
	}
	PrivacyPolicy.focus();
}

var starfieldPage
function showStarfieldPopup()
{
	if (starfieldPage == null || starfieldPage.closed)
	{
		starfieldPage = window.open("JumpPage.aspx?page=starfieldssl", "_starfieldPage", 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=700,height=550,toolbar=no,location=no,directories=no');
	}
	starfieldPage.focus();
}

var agreementPage
function showAgreementPopup(name)
{
	if(agreementPage == null || agreementPage.closed)
	{
		agreementPage = window.open("JumpPage.aspx?page=agreement&name=" + name, "_agreementPage", 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=700,height=550,toolbar=no,location=no,directories=no');
	}
	agreementPage.focus();
}

var paymentPage
function showPaymentPopup()
{
	if(paymentPage == null || paymentPage.closed)
	{
		paymentPage = window.open("JumpPage.aspx?page=payment", "_paymentPage", 'menubar=no,status=no,scrollbars=yes,resizable=yes,width=700,height=550,toolbar=no,location=no,directories=no');
	}
	paymentPage.focus();
}