function navColor(id) {
var divname='link' + id;
document.getElementById(divname).style.backgroundColor='#1B140E';

}

function navUnColor(id) {
var divname='link' + id;
document.getElementById(divname).style.backgroundColor='#000000';

}

var win= null;
function openCentered(mypage,myname,w,h,scroll){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
var settings ='height='+h+',';
settings +='width='+w+',';
settings +='top='+wint+',';
settings +='left='+winl+',';
settings +='scrollbars='+scroll+',';
settings +='resizable=yes,status=0';

win=window.open(mypage,myname,settings);
if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
} 
function MM_openBrWindow(theURL,winName,features) { 
window.open(theURL,winName,features);
}


function clearIf(fld,txt) {
var crntvlu=document.getElementById(fld).value;

if (crntvlu==txt) {
document.getElementById(fld).value='';
}

}

function logOut() {
window.location='index.cfm?logout=1';
}

function checkIf(fld,txt) {
var crntvlu=document.getElementById(fld).value;

if (crntvlu=='') {
document.getElementById(fld).value=txt;
document.getElementById(fld).className = " txtbox_fd"; 

}
else {
document.getElementById(fld).className = " txtbox"; 
}

}

function editPage(tid,cn) {
openCentered('cms/page_edit.cfm?cn=' + cn + '&tid=' + tid,'editwin',screen.width,screen.height,1);
}
