function varr() {
	document.writeln('<input type=hidden name="varr[]" value="'+navigator.appName+'">');
	document.writeln('<input type=hidden name="varr[]" value="'+navigator.appVersion+'">');
	document.writeln('<input type=hidden name="varr[]" value="'+navigator.platform+'">');
	document.writeln('<input type=hidden name="varr[]" value="'+screen.width+'">');
	document.writeln('<input type=hidden name="varr[]" value="'+screen.height+'">');
	document.writeln('<input type=hidden name="varr[]" value="'+screen.colorDepth+'">');
	document.writeln('<input type=hidden name="varr[]" value="'+screen.pixelDepth+'">');
	document.writeln('<input type=hidden name="varr[]" value="'+navigator.javaEnabled()+'">');
}

function pop(endereco, X, Y, rolagem) {
	var windowX = Math.ceil((window.screen.width  - X) / 2);
	var windowY = Math.ceil((window.screen.height - Y) / 2);
	parametros='fullscreen=0,location=0,directories=0,menubar=0,scrollbars='+rolagem+',status=1,toolbar=0,resizable=0,width=' + X.toString()+ ',height=' +Y.toString()
	+ ',left=' + Math.ceil(windowX).toString() + ',top=' + Math.ceil(windowY).toString()
	nova = window.open (endereco, '', parametros)
	if (navigator.platform == 'MacPPC') nova.resizeTo (X, Y);
}


function display(id, on_off) { 
	var el = document.all ? document.all[id] : document.getElementById(id);  if(el) el.style.display = on_off ? '' : 'none'; 
}

function getd() {
	var x = location.href;
	var xx = x.split('.');
	return xx[0];
}


function get0(id) {
	if(document.getElementById(id).value)
	location.href = "xxx.php?id="+document.getElementById(id).value
	//proj = document.getElementById(id).value;
	//if (proj) {
		location.href = "xxx.php?id="+proj;
	//}
}
