function nav(url) {
	document.location.href = url;
}

function openWin(fUrl) {
	window.open(fUrl, 'CENCIO_WIN', 'width=950,height=580,statusbar=0,scrollbars=1');
}
function CEdit_Initialize() {
	var els = document.getElementsByTagName("INPUT");
	for(var i=0;i!=els.length;i++) {
		var element = els[i];
		if (element.className == 'CEdit') continue;
		if (element.type=='text') {
			element.className = 'CEdit';
			element.onblur = new Function("if (this.value == '' && !this.readOnly) {"
			                             +"  this.style.color = '#999999';"
			                             +"  this.value = this.title;"
			                             +"}");
			if (typeof(element.onfocus) != 'function')
			{
				element.onfocus = new Function("if (this.value == this.title && !this.readOnly) {"
			                             +"  this.style.color = '#000000';"
			                             +"  this.value = '';"
			                             +"}");
			}
			if (element.value=='' || element.value==element.title) { element.value = element.title; element.style.color = '#999999'; }
		} else if (element.type=='password') {
			element.className = 'CEdit';
		}
	}
	var els = document.getElementsByTagName("TEXTAREA");
	for(var i=0;i!=els.length;i++) {
		var element = els[i];
		if (element.className == 'CTextarea') continue;
		element.className = 'CTextarea';
		element.onblur = new Function("if (this.value == '' && !this.readOnly) {"
		                             +"  this.style.color = '#999999';"
		                             +"  this.value = this.title;"
		                             +"}");
		element.onfocus = new Function("if (this.value == this.title && !this.readOnly) {"
		                             +"  this.style.color = '#000000';"
		                             +"  this.value = '';"
		                             +"}");
		if (element.value=='' || element.value==element.title) { element.value = element.title; element.style.color = '#999999'; }
	}
	/*
	var els = document.getElementsByTagName("SELECT");
	for(var i=0;i!=els.length;i++) {
		var element = els[i];
		if (element.className == 'CSelect') continue;
		element.onblur = new Function("if (this.value == '' && !this.readOnly) {"
		                             +"  this.style.color = '#999999';"
		                             +"}");
		element.onfocus = new Function("if (this.value == this.title && !this.readOnly) {"
		                             +"  this.style.color = '#000000';"
		                             +"}");
		if (element.value=='') { element.style.color = '#999999'; }
	}*/
}

function adjustSite() {
	document.location.href = '#site';
}

addLoadEvent(adjustSite);