// search box index 
function srchbckswap() // on focus
{document.srch.srchtxt.style.backgroundImage="url(http://www.beyondseparation.com/bg/yahoo_ip_blank.gif)";}

function srchbckswap2() // on blur
{
if (document.srch.srchtxt.value.length<=0)
{document.srch.srchtxt.style.backgroundImage="url(http://www.beyondseparation.com/bg/bslogo_search.gif)";}
}


// onload do username & password images
// put f on gif (4 bg_ files)
function bckswap() // on focus
{
document.flogin.iuser.style.backgroundImage="url(http://www.beyondseparation.com/bg/bg_user.gi)";
document.flogin.ipass.style.backgroundImage="url(http://www.beyondseparation.com/bg/bg_pass.gi)";
}
// username image swap on intro
function ubckswap() // on focus
{document.flogin.iuser.style.backgroundImage="url(http://www.beyondseparation.com/bg/yahoo_ip_blank.gif)";}

function ubckswap2() // on  blur
{
if (document.flogin.iuser.value.length<=0)
{document.flogin.iuser.style.backgroundImage="url(http://www.beyondseparation.com/bg/bg_user.gi)";}
}
// password image swap on intro
function pbckswap() // on focus
{document.flogin.ipass.style.backgroundImage="url(http://www.beyondseparation.com/bg/yahoo_ip_blank.gif)";}

function pbckswap2() // on  blur
{
if (document.flogin.ipass.value.length<=0)
{document.flogin.ipass.style.backgroundImage="url(http://www.beyondseparation.com/bg/bg_pass.gi)";}
}




// <form name="test1">
//      <p><input type="button" value="A Button" name="test2" disabled> <a
//      href="javascript:disable_enable()">Click here</a></p>
//    </form>
function disable_enable(){
if (document.all || document.getElementById){
if (document.test1.test2.disabled==true)
document.test1.test2.disabled=false
else
document.test1.test2.disabled=true
}
}
//or rewritten version of above
function disable_enable2(){
if (document.all || document.getElementByid){
document.test1.test2.disabled=!document.test1.test2.disabled
}
}


//<form name="aform" action="--WEBBOT-SELF--" method="POST">
//  <input type="text" name="contentarea" size="20"> 
//  <input type="submit" value="Submit" name="button"> <input type="reset" value="Reset" name="B2">
//</form>
function checkifempty(){
if (document.aform.contentarea.value=='')
document.aform.button.disabled=true
else
document.aform.button.disabled=false
}
//checks field every 100ms
if (document.all || document.getElementById)
setInterval("checkifempty()",100)





// clear input box   onFocus="doClear();"
function doClear(theText) {
     if (theText.value == theText.defaultValue)
		{
         theText.value = ""
     	}
}


function dispdate(){
var mon,day,now,hour,min,ampm,time,str,tz,end,beg;
mon=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
day=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
now=new Date();

var yeardate = new Date()
var year = yeardate.getFullYear()
document.write(day[now.getDay()]+" "+now.getDate()+" "+mon[now.getMonth()]+" "+year);
}
