function newWindow(url) {
    nameW='feature'
    height = 425;
    width = 400;	
 if (navigator.appVersion.indexOf('4') != -1) {
 
// Vars for centering the new window on Version 4 Browsers
// Rob test

 xTop = screen.width/2 - (width/2);
 yTop = screen.height/2 - (height/2);
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
 } else {
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=0,top=0');
 }
}

function newWindowSized(url, height, width) {
    nameW='feature'
 if (navigator.appVersion.indexOf('4') != -1) {
 
// Vars for centering the new window on Version 4 Browsers
 xTop = screen.width/2 - (width/2);
 yTop = screen.height/2 - (height/2);
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
 } else {
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=0,top=0');
 }
}

function newWindowSizedWithScroll(url, height, width) {
    nameW='feature'
 if (navigator.appVersion.indexOf('4') != -1) {
 
// Vars for centering the new window on Version 4 Browsers
 xTop = screen.width/2 - (width/2);
 yTop = screen.height/2 - (height/2);
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
 } else {
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=0,top=0');
 }
}

function bCol(o,i) {
	o.style.backgroundColor = bCol2(i);
	return true;
}

function bCol2(i) {
	if (i==1) {
		return "#d29914";
	} else {
		return "#806a3e";
	}
}

function InsertTag(f,b,t1,t2)
{
	var box = eval("document." + f + "." + b);
	if (document.selection) {
		box.focus();
		var r = document.selection.createRange();
		if (r.text == "") {
			t2 = " " + t2;
		}
		r.text = t1 + r.text + t2;
	} else {
		var s = "";
		if (t2 != "") {
			t2 = " " + t2;
		}
		box.value += t1 + t2;
	}
}

function openLiveHelp(s)
{
	window.open(s,'_blank','directories=no,fullscreen=no,height=450,location=no,menubar=no,resizable=yes,scrollbars=no,statusbar=no,titlebar=no,toolbar=no,width=300,left=3,top=3');
}

