/* Script created in 2004/3/25 */

/// To display new color when mouse out
function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TH"||source.tagName=="TABLE")
  return
while(source.tagName!="TR")
  source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
  source.style.backgroundColor=highlightcolor
}

/// To display orginal color when mouse out
function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
  return
if (event.toElement!=source)
  source.style.backgroundColor=originalcolor
}

/// To display module preview image function
function Show(divid,imgID,imageFile) {
	divid.filters.revealTrans.apply();
	divid.style.visibility = "visible";
	divid.filters.revealTrans.play();
	imgID.src=imageFile;
}
function Hide(divid) {
	divid.filters.revealTrans.apply();
	divid.style.visibility = "hidden";
	divid.filters.revealTrans.play();
}

function RadioDisplay(ShowElement,HideElement){
  var s,h,r1,r2
   // To get control
  s=eval(ShowElement)
  h=eval(HideElement)
  s.style.display='BLOCK';
  h.style.display='NONE';
  
}

/// To display datetime in window status
function runClock() {
  theTime = window.setTimeout("runClock()", 100);
  var today = new Date();
  var display= today.toLocaleDateString();
  status=display;
}

/// To display message for the altnation
function Message(msg){
  alert(msg);
  return false;
}

