function start() {
		document.getElementById("theTips1").style.visibility = "hidden";
		document.getElementById("ticker").style.visibility = "hidden";
}  // end of function		 

function show_tips(targetID) { 
    document.getElementById(targetID).style.visibility = "visible"; 
}  // end of function

function hide_tips(targetID) { 
    document.getElementById(targetID).style.visibility = "hidden"; 
}  // end of function

//if broswser supports addEventListener use it to set doShow to the onload event, else use attachEvent

function removeLink() {
document.getElementById("mydiv").style.visibility = "hidden";
}

function restoreLink() {
  document.getElementById("mydiv").style.visibility = "visible";
} // end function

function showName(which){
    var fullName = document.main_fm.elements["upLoad"+which].value;
    var fileName = fullName.match(/[^\/\\]+$/);
    document.main_fm.elements["fName"+which].value = 'Picture file name: '+fileName;
} // end function

function show_ticker() { 
    document.getElementById("ticker").style.visibility = "visible"; 
}  // end of function


function chg_col() { 
    document.getElementById("button1").style.backgroundColor= "#6666cc";
}  // end of function
  
function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} // end of function

function checkRadio(){
	var radioArr = document.getElementsByName("rad_val");
	var el=document.getElementById("mydiv");
	el.style.display=radioArr[0].checked?'':'none';
} // end function

function wrapText(el, openTag, closeTag) {
  if (el.setSelectionRange) {
    // W3C/Mozilla
    el.value = el.value.substring(0,el.selectionStart) + openTag + el.value.substring(el.selectionStart,el.selectionEnd) + closeTag + el.value.substring(el.selectionEnd,el.value.length);
    }
  else if (document.selection && document.selection.createRange) {
     // IE code goes here
     el.focus(); //or else text is added to the activating control
     var range = document.selection.createRange();
     range.text = openTag + range.text + closeTag;
    } // end if
} // end function

ScrollSpeed = 200
ScrollChars = 1
function ScrollMarquee() {
window.setTimeout('ScrollMarquee()',ScrollSpeed);

var msg = document.marquee1.text.value; 
document.marquee1.text.value =
msg.substring(ScrollChars) +
msg.substring(0,ScrollChars); 
} // end function

function chk_length(){
  document.main_fm.counter.value=(document.main_fm.x_counted.value.length)+' characters used';
	document.main_fm.counter1.value=(document.main_fm.x_counted1.value.length)+' characters uses';
	document.main_fm.counter2.value=(document.main_fm.x_counted2.value.length)+' characters used';
}  // end of function

document.onkeyup=chk_length

