<HEAD>

<STYLE TYPE="text/css">

</STYLE>

<SCRIPT LANGUAGE= "JavaScript">

<!--

//by Leif King e-mail:leif.d.king@vanderbilt.edu
//Feel free to use this or modify it, such as making the text scroll!


//Next, Previous, Click Through Functions below

var number = 0;
function chngNext()
{
document.headline.shownext.value = "Y"
headMach();
}

function chngPrev()
{
document.headline.showprev.value = "Y"
headMach();
}

function goTo(newURL)
{
self.location.href=newURL;
}


Function To Change Headline Below

function headMach()
{
var totalHeads = 4; //total number of headlines you want
if ((document.headline.shownext.value == "Y") && (document.headline.showprev.value == "N"))
{
var headShow = (parseInt(document.headline.nowShowing.value) +1);
if (headShow > totalHeads)
{
var headShow = 1;}
}
if ((document.headline.showprev.value == "Y") && (document.headline.shownext.value == "N"))
{
var headShow = (parseInt(document.headline.nowShowing.value) - 1);
if (headShow < 1)
{
var headShow = totalHeads;}
}


//Links Represented by Headlines Below

if (headShow == 1)
{
var _head = "first headline";
var inlocat = "firstlocation.html";
}

if (headShow == 2)
{
var _head = "second";
var inlocat = "secondlocation.html";
}

if (headShow == 3)
{
var _head = "third";
var inlocat = "thirdlocation.html";
}

if (headShow == 4)
{
var _head = "and so 4orth";
var inlocat = "fourthlocation.html";
}

document.headline.headHere.value = _head;
document.headline.nowShowing.value = headShow;
document.headline.shownext.value = "N";
document.headline.showprev.value = "N";
document.headline.inlocation = inlocat;
}
//-->

</SCRIPT>


//Visible HTML Below

</head>
<body onLoad="chngNext()">
<center>
<h2><i>Headline Linker</i></h2>
<FORM NAME="headline" METHOD="post">
<input type="hidden" name="nowShowing" value="0">
<INPUT TYPE="text" NAME="headHere" VALUE="Choose and Click" SIZE="50" onClick="goTo(inlocation);"><br>
<INPUT TYPE="button" VALUE="NEXT" onClick="chngNext();">
<INPUT TYPE="button" VALUE="PREV" onClick="chngPrev();"><br>
<input type="hidden" name="shownext" value="N">
<input type="hidden" name="showprev" value="N">
</form>
</center>
</body>
</html>