<!--
function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Display full size image with Pop-up window under directory "/redwolf/upload/"
function showImg(url){
	fsWin = window.open("/redwolf/popImage.jsp?fsUrl="+url,"fsWin","width=680,height=370,resizable,scrollbars=1");
	fsWin.focus();
}

// Display Pop-up Message
function showMsg(msgID){
	msgWin = window.open("/redwolf/popMsg.jsp?msgID="+msgID,"msgWin","width=680,height=370,resizable,scrollbars=1");
	msgWin.focus();
}

// Currency Converter
function currencyc(){
	window.open("http://www.xe.net/ucc/","_blank","");
}

// Display Announcement
function popAnnouncement(){
	wwidth = 150;
	wheight = 50;
	wleft = (screen.availWidth - wwidth) /2;
	wtop = (screen.availHeight - wheight) /2;

	annWin = window.open("/redwolf/announcement.jsp","annWin","top="+wtop+",left="+wleft+",width="+wwidth+",height="+wheight+",resizable,scrollbars=0");
	annWin.focus();
}

function resizer(location,xres,yres) {
xresnow=150;
yresnow=50;	

adjx = 10;
adjy = 30;
ratio = .1;
lamescape=4.75;


  if (navigator.appVersion.indexOf("Mac")!=-1 || (document.layers && parseFloat(navigator.appVersion)<lamescape)) {
	alert("test");
	lleft=(screen.availWidth/2)-(xres/2);
    ttop=(screen.availHeight/2)-(yres/2);
	window.close();
	annWin2=window.open(location,'annWin2','left='+lleft+',top='+ttop+',width='+(xres)+',height='+(yres+17)+',scrollbars=yes');
	annWin2.focus();
	return;
  } else if (document.layers) yres+=7;
  
	xres = xres+adjx;
	yres = yres+adjy;
	xnew = xresnow+((xres-xresnow)*ratio);
	ynew = yresnow+((yres-yresnow)*ratio);
	setTimeout("resizeIt('"+location+"','"+xres+"','"+yres+"','"+xnew+"','"+ynew+"')",1000);
}
	
function resizeIt(location,xres,yres,xnew,ynew){
	x = xresnow;
	y = yresnow;
  ow=0;
  oh=0;
  if (document.layers) {ow=-window.outerWidth+window.innerWidth+2;oh=-window.outerHeight+window.innerHeight;}

	resizeTo(x+ow,y+oh);
	moveTo(((screen.availWidth/2)-(xresnow/2)),((screen.availHeight/2)-(yresnow/2)));
	xresnow = xresnow+((xres-xresnow)*ratio)
	yresnow = yresnow+((yres-yresnow)*ratio)
	if (((xresnow-xres) <= .5)&&((xresnow-xres) >= -.5)) {  xnew=Math.floor(xres); ynew=Math.floor(yres); resizeTo(xnew+ow,ynew+oh);}		
	if (xnew != xres) setTimeout("resizeIt('"+location+"','"+xres+"','"+yres+"','"+xnew+"','"+ynew+"')",10);
	else window.location = (location);
}

function rTrimStr(sValue){
    var i;
    for (i=sValue.length; i > 0; i--){
    	if (sValue.substr(i-1,1) != " "){
    	    return sValue.substr(0,i);
       	}
    }
    return( "" );
}

function lTrimStr(sValue){
    var i;
    for (i=0; i < sValue.length; i++){
    	if (sValue.substr(i,1) != " "){
    	    return sValue.substr(i);
    	}
    }
    return( "" );
}

function trimStr(sValue){
    return rTrimStr(lTrimStr(sValue));
}
//-->

