function header() {
 var text = ''
 var tmp = ''
 if (navigator.appName == "Netscape") {
	tmp = '<input type="text" name="words" size="9" class="font">'
 } else {
	tmp = '<input type="text" name="words" size="13" class="font">' 
 }
	text += '<form method="post" action="../utilities/searchresult.cfm" autocomplete="off"><input type="hidden" name="method" value="or"><input type="hidden" name="config" value="htdig"><input type="hidden" name="MaxRows" value="25"><input type="hidden" name="StartRow" value="1">\n'
	text += '<a name="top">\n'
	text += '<table border="0" cellpadding="0" cellspacing="0" width="792">\n'
	text += '	<tr>\n'
	text += '		<td valign="top" background="../images/lower_header_w_utilities.gif" width="792" height="107">\n'
	text += '			<table border="0" cellpadding="0" cellspacing="0" width="792" background="">\n'
	text += '				<tr>\n'
	text += '					<td width="215"><a href="../index.html"><img src="../images/spacer.gif" width="215" height="107" alt="Home" border="0"></a></td>\n'
	text += '					<td width="400"><img src="../images/spacer.gif" width="400" height="1" alt="" border="0"></td>\n'
	text += '					<td width="177" valign="top">\n'
	text += '						<table border="0" cellpadding="0" cellspacing="0" background="">\n'
	text += '							<tr>\n'
	text += '								<td>&nbsp;</td>\n'
	text += '								<td><a href="../glossary.html"><img src="../images/spacer.gif" width="55" height="18" alt="Glossary" border="0"></a></td>\n'
	text += '								<td>&nbsp;&nbsp;&nbsp;</td>\n'
	text += '								<td><a href="../feedback.cfm"><img src="../images/spacer.gif" width="57" height="18" alt="Feedback" border="0"></a></td>\n'
	text += '								<td>&nbsp;&nbsp;</td>\n'
	text += '								<td><a href="../index/index.html"><img src="../images/spacer.gif" width="37" height="18" alt="Index" border="0"></a></td>\n'
	text += '							</tr>\n'
	text += '							<tr>\n'
	text += '								<td colspan="6"><img src="../images/spacer.gif" border="0" alt="" width="1" height="14"></td>\n'
	text += '							</tr>\n'
	text += '							<tr>\n'
	text += '								<td colspan="6"><img src="../images/ut_search.gif">' + tmp + '&nbsp;<input type="image" src="../images/ut_search_go.gif" align="absmiddle" border="0"></td>\n'
	text += '							</tr>\n'
	text += '						</table>\n'
	text += '					</td>\n'
	text += '				</tr>\n'
	text += '			</table>\n'
	text += '		</td>\n'
	text += '	</tr>\n'
	text += '	<tr>\n'
	text += '		<td height="14" width="100%"><img src="../images/spacer.gif" height="14" width="1" border="0" alt=""></td>\n'
	text += '	</tr>\n'
	text += '</form>\n'
	text += '</table>\n'
 return text
}

function footer() {
 var text = ''
	text += '<br>\n'
	text += '<!-- Begin Footer -->\n'
	text += '<table border="0" cellpadding="0" cellspacing="0" width="790">\n'
	text += '	<tr>\n'
	text += '		<td width="790" height="38" background="../images/lower_botheader_wo_utilitie.gif" valign="top">\n'
	text += '			<table border="0" cellpadding="0" cellspacing="0" background="">\n'
	text += '				<tr>\n'
	text += '					<td colspan="2"><img src="../images/spacer.gif" width="1" height="7" border="0" alt=""></td>\n'
	text += '				</tr>\n'
	text += '				<tr>\n'
	text += '					<td><img src="../images/spacer.gif" width="275" height="1" border="0" alt=""></td>\n'
	text += '					<td class="fontBlue">\n'
	text += '						updated January 2010&nbsp;&nbsp;|&nbsp;&nbsp;<a href="../privacy.html">Privacy Statement</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="../terms.html">Terms &amp; Conditions</a>\n'
	text += '					</td>\n'
	text += '				</tr>\n'
	text += '			</table>\n'
	text += '		</td>\n'
	text += '	</tr>\n'
	text += '</table>\n'
	text += '<!-- End Footer -->\n'
 return text
}

function log_in() {
 var text = ''
	text += '                <center><B>Medical Professionals -<br>Log in Here!</b><P></center>'
	text += '                If you are a doctor or other medical professional, please enter your email address below and click <b>Log In.</b>'
	text += '                You can then access a detailed view of the Clinical Trial Locator and the Staging Tool.'
	text += '<form action="../cgi-bin/trial.cgi" method="get" name="clinical" id="clinical" autocomplete="off"><input type="text" name="user" value="enter email address" onFocus="if (value == \'enter email address\') {value =\'\'}" onBlur="if (value == \'\') {value = \'enter email address\'}" class="font"><input type="submit" name="authendoc" value="Log In" class="font"></form>'
 return text
}

function log_out() {
 var text = ''
	text += '                <center><B>Thank you for logging into MelanomaCenter.org.</B></Center>'
	text += '                As a medical professional, you can now view detailed versions of the tools provided on this site.<P>'
	text += '				<center><A href="../cgi-bin/trial.cgi?logout=1"><B>Log out</B></center>'
 return text
}

/*function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}*/

