function openFlash(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();
if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 710, yMax=434;

    var xOffset = (xMax)/2, yOffset = (yMax)/2;
eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width=400,height=400,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');");
}

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();
if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - 400)/2, yOffset = (yMax - 400)/2;
eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=0,width=400,height=400,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');");
}


function loadPopup(url,pwidth, pheight){ 
	ansWin = window.open(url,'ans','width='+pwidth+',height='+pheight+',status=no,scrollbars=yes,resizable=yes,menubar=no,directories=no,toolbar=yes, location=no');
	} 


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';
}
 
}