// Home tabs switch out
function show(obj)
{
   // gets our element by the id defined in the function
   // gets that tag, and adds the class of 'show'
   document.getElementById(obj).className = "show_tab";
}

// defines our 'hide' function with var. 'obj'
function hide(obj)
{
   // gets our element by the id defined in the function
   // gets that tag, and adds the class of 'hide'
   document.getElementById(obj).className = "hide_tab";
}



function sendtext(e, text)
{
e.value += text
}
function changeText()
{
var handle = document.form1.text1;
if (handle.value == "*") handle.value = "";
else handle.value = "*";
}


function addurl ( id )
{
string = prompt ( "Insert here the url","" ) ;
if ( string!=null && string!="" )
{
string2 = prompt ( "Insert the name of the link. Leave it blank to use the url as name", "" ) ;
if ( string2!=null && string2!="" )
{
var area = document.getElementById ( id ) ;
area.value += "[url="+string+"]"+string2+"[/url]";
area.focus ( ) ;
}
else
{
var area = document.getElementById ( id ) ;
area.value += "[url="+string+"]"+string+"[/url]"
area.focus ( ) ;
}
}
else
{
document.getElementById ( id ) .focus ( ) ;
}
} 
