var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD"&&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if
(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

function openWindow(url) {
//var Win = window.open(url,"openScript"',toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=540,left = 500,top = 250');
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width=640,height=540,left = 25,top = 25');");
}

function scheduleWindow(url) {
//var Win = window.open(url,"openScript"',toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=540,left = 500,top = 250');
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=792,height=125,left = 150,top = 75');");
}


function showDate() {

bname=navigator.appName
var monthName = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var y = new Date();

if (bname.indexOf("Netscape")!=-1) {
	return
}

if (bname.indexOf("Microsoft")!=-1)
	{ 
	document.write( monthName[y.getMonth()]+" " + y.getDate()+ ", " +y.getYear())
	return
	}
}

function redirect(pulldown) {
	newlocation = pulldown[pulldown.selectedIndex].value;
	if (newlocation != "")
		self.location = newlocation;
}

function resetIfBlank(pulldown){
	possiblenewlocation = pulldown[pulldown.selectedIndex].value;
	if (possiblenewlocation == "")
		pulldown.selectedIndex = 0; /* reset to start*/
}

function pviiW3Cbg(obj, pviiColor) { //v1.1 by Project VII
	obj.style.backgroundColor=pviiColor
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function P7_autoLayers() { //v1.1 PVII
 var g,b,k,f,args=P7_autoLayers.arguments;
 if(!document.p7setc) {p7c=new Array();document.p7setc=true;}
 for(k=0; k<p7c.length; k++) {
  if((g=MM_findObj(p7c[k]))!=null) {
   b=(document.layers)?g:g.style;b.visibility="hidden";}}
 for(k=0; k<args.length; k++) {
  if((g=MM_findObj(args[k])) != null) {
   b=(document.layers)?g:g.style;b.visibility="visible";f=false;
   for(j=0;j<p7c.length;j++) {
    if(args[k]==p7c[j]) {f=true;}}
  if(!f) {p7c[p7c.length++]=args[k];}}}
}

 function childLayer(theChild,onOff) {
 
 if (onOff == 1) {
        if (document.layers)
           	document.layers[theChild].visibility='show';
        else
           document.all[theChild].style.visibility='visible';
} else {
        if (document.layers)
           	document.layers[theChild].visibility='hidden';
        else
           document.all[theChild].style.visibility='hidden';
}
 
}

