/*highlight_link()
Author: Kenneth Fly
Created: 2003
Last Modified: 10/10/2003 
Modifications:
10/9/2003- Added ability to change the text coloration as optional value and made 
other style changes optional as well.
10/10/2003- Finished script and made all style changes optional. Can either not pass value or 
pass value '' to not have  script change style.
Language: Javascript 1.3
Purpose: Provide a function to change a link's style when mouse rollovers occur. 
Parameters:
linkptr- Pointer to link object that needs style to be changed. Usual value will 'This' pointer
highlightcolor- (Optional)String with RBG color that will become the background color value of link. Can also be the value 'transparent'
highlightdecoration- (Optional)String that states style of text. Accepts any value of CSS text-decoration style.
highlighttextcolor- (Optional)String of RBG color that will become the text color value of the link
Browser Compatibility: IE 4+, N6+
Dependencies: None
Expected Output: Link style change
Errors and Error Handling: none
*/
function highlight_link(linkptr,highlightcolor,highlightdecoration,highlighttextcolor){
 //if value passed for highlight background color set it as BGcolor
 if(highlightcolor!=null&&highlightcolor!=''){
  linkptr.style.backgroundColor=highlightcolor;
 }
 //if value passed for text decoration style set the link style
 if(highlightdecoration!=null&&highlightdecoration!=''){
  linkptr.style.textDecoration=highlightdecoration;
 }
 //if value passed for text color set the links coloring to it.
 if(highlighttextcolor!=null&&highlighttextcolor!=''){
  linkptr.style.color=highlighttextcolor;
 }
}
