<!-- BEGIN
//----------------------------------------------------------------------------//
function print_registration() {
	document.write('<span class="l">');
  	if (readCookie(userCookie) == false) {
		document.write('WELCOME GUEST');
  	} else { 
		document.write('WELCOME BACK, ');
		value = readCookie(userCookie);
		document.write(readCookie(userCookie).split(':')[1]);  // grab the name from the cookie string
  	}
	document.write('&nbsp;&nbsp;&nbsp;');
	if (readCookie(sessionCookie) != false) {
		t = readCookie(sessionCookie);
		document.write('<a href="http://newsok.com/index.php?action=settings">MY SETTINGS</a>');
		document.write('&nbsp;&nbsp;&nbsp;');
		document.write('<a href="http://newsok.com/index.php?action=logout">LOG-OUT</a>&nbsp;&nbsp;&nbsp;');
	} else {
		document.write('<a href="index.php?action=login">LOG-IN</a>');
	}
	document.write('</span class="l">');
  
}
//----------------------------------------------------------------------------//
function print_other_registration() {
	document.write('<span class="l">');
  	if (readCookie(userCookie) == false) {
		document.write('WELCOME GUEST');
  	} else { 
		document.write('WELCOME BACK, ');
		value = readCookie(userCookie);
		document.write(readCookie(userCookie).split(':')[1]);  // grab the name from the cookie string
  	}
	document.write('&nbsp;&nbsp;&nbsp;');
	if (readCookie(sessionCookie) != false) {
		t = readCookie(sessionCookie);
		document.write('<a href="http://newsok.com/index.php?action=settings">MY SETTINGS</a>');
		document.write('&nbsp;&nbsp;&nbsp;');
		document.write('<a href="http://newsok.com/index.php?action=logout">LOG-OUT</a>&nbsp;&nbsp;&nbsp;');
	} else {
		document.write('<a href="http://newsok.com/index.php?action=login">LOG-IN</a>');
	}
	document.write('</span class="l">');
  
}
//----------------------------------------------------------------------------//
// END -->
