// JavaScript Document
// http://www.thescripts.com/forum/thread164368.html
function switchdiv()
{
ShowHide('short');
ShowHide('long');
}

function ShowHide(elId)
{
var el = document.getElementById(elId);
el.style.display = ('none' == el.style.display)? '':'none';
}

///////
// Call it this way:
//<div id="short">This is the short version<br>
//<br>
//<a onClick="switchdiv();" style="cursor:pointer">Read the full story</a>
//</div>
//<div id="long" style="display: none;">And this is the full complete story<br>
//<br>
//<a onClick="switchdiv();" style="cursor:pointer">Back to the short version</a>
//</div>
//////////////////////
//or with a button:
//<input type="button" value="Switch divs" onclick="switchdiv();">
