/* Show/Hide long content */ 
function showHide(shID) {
	if (document.getElementById(shID)) {
		if (document.getElementById(shID+'-show').style.display != 'none') {
			document.getElementById(shID+'-show').style.display = 'none';
			document.getElementById(shID).style.display = 'block';
		}
		else {
			document.getElementById(shID+'-show').style.display = 'inline';
			document.getElementById(shID).style.display = 'none';
		}
	}
}


/* Find and replace text in the login */ 
window.onload = fixedWordReplace;
function fixedWordReplace(tag, findText, replacementText) {
            var list = document.getElementsByTagName(tag);
            for (var i=0; i < list.length; i++) {
                        if (list[i].innerHTML.indexOf(findText) > -1) {
                                    list[i].innerHTML = list[i].innerHTML.replace(findText, replacementText);
                                    break;
                        }
            }
}

fixedWordReplace('b', 'To signup for the affiliate program, please login with your e-mail address and password, or create a new account below.', '<h5 class="orange">If you are  New Customer, or to signup for the Affiliate Program, click on the<br /> red "Continue" button on the right below, to continue the sign-up process.</h5><br /><br /><h6>If you are a returning Affiliate or Customer, login on the left, below.</h6>');

fixedWordReplace('font', 'Returning Customers', 'Returning Customers & Affiliates');
fixedWordReplace('font', 'New Customers', 'New Customers & Affiliates');

fixedWordReplace('font', 'New to www.celebratelifenutrition.com?', '<h5 class="orange">Are you ready to Celebrate as an Affiliate? It&rsquo;s as easy as 1, 2, 3.</h5>');
fixedWordReplace('font', 'Get started below...', '<br /><br />Get started below.<br /><br /><h3 class="red">Step 1:</h3>');

fixedWordReplace('font', 'Enter a new shipping address...', '<h5><h3 class="red">Step 2:</h3><br /><br />If we will be shipping products to you (or sending you an Affiliate check),<br />enter your Address below:</h5>');

fixedWordReplace('td', 'Confirm your information below to complete the sign-up process.', '<h3 class="red">Step 3:</h3><br /><br /><h5><b>Confirm your information below to complete the sign-up process.<br /><br /> If you are signing up to be an Online Affiliate, you must enter your website address below. Your website address is helpful, but not required of Retail and Retail Online Affiliates.</b></h5>');



/* Random text selector */ 
var r_text = new Array ();
r_text[0] = "You are plunging into<br /> the unknown of the extraordinarily pleasurable.<br /> <i>Savor slowly.</i>";
r_text[1] = "May cause you to<br /> close your eyes and<br /> breathe heavily.<br /> <i>Savor intensely.</i>";
r_text[2] = "Celebrate Chocolate melts in your hand and elsewhere.<br /> <i>Savor licking.</i>";
r_text[3] = "May cause you to<br /> remember how to strut.<br /> <i>Savor flauntingly.</i>";
r_text[4] = "You may want to enjoy these with just a partner.<br /> <i>Savor passionately.</i>";
r_text[5] = "Hiding Celebrate Chocolates<br /> in your bed<br /> may become common.<br /> <i>Savor privately.</i>";
r_text[6] = "Celebrate Chocolate may transport you to your honeymoon suite.<br /> <i>Savor exploration.</i>";
r_text[7] = "Side effects mayÊinclude sudden passion and ravenous thoughts.<br /> <i>Savor sensuously.</i>";
var i = Math.floor(7*Math.random())

/* document.write(r_text[i]); */


function couponCodeTest() {
	if (document.getElementById('codeEnter').value == 5423) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else if (document.getElementById('codeEnter').value == 9757) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else if (document.getElementById('codeEnter').value == 9298) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else if (document.getElementById('codeEnter').value == 2765) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else if (document.getElementById('codeEnter').value == 1186) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else if (document.getElementById('codeEnter').value == 6429) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else if (document.getElementById('codeEnter').value == 7658) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else if (document.getElementById('codeEnter').value == 3523) {
		document.getElementById('winningCode').style.display = 'inline';
	}
	else {
		document.getElementById('losingCode').style.display = 'inline';
	}
}












Ê

Ê