var d = document;

function gebi(id)
{
	var x;
	try
	{
		if(d.getElementById && !d.all){x = d.getElementById(id);}else if(d.all){x = d.all[id];}	
		if (x == null) throw "err";	
		return x;
	}
	catch(er){ 
		//if(er == "err") {alert("ERROR: No Found Element['"+id+"']");}
		return;
	}
}

function showTags(divid) {
	// Open or Close Tags
	obj = document.getElementById(divid).style;
	obj.display = (obj.display == 'none')? 'block':'none';
	// Cross brwrs
	if (ie) {
		obj.filter = 'alpha(opacity=0)';
	}
	if (opera&&!ff) {
		obj.opacity = 0;
	}
	if (ff) {
		//obj.MozOpacity = 0;
	}
	fadeIn(divid);
}

function switch_display(cid)
{
	if(document.getElementById(cid).style.display=='')
	{
	document.getElementById(cid).style.display='none';
	}
	else
	{
	document.getElementById(cid).style.display='';
	}
	
}

function insertAtCursor(myField, myValue) { 
myField = document.getElementById(myField);
//IE support 
if (document.selection) { 
myField.focus(); 

sel = document.selection.createRange(); 
sel.text = myValue; 
} 

//Mozilla/Firefox/Netscape 7+ support 
else if (myField.selectionStart || myField.selectionStart == '0') { 

var startPos = myField.selectionStart; 
var endPos = myField.selectionEnd; 
myField.value = myField.value.substring(0, startPos)+ myValue+ myField.value.substring(endPos, myField.value.length); 
} else { 
myField.value += myValue; 
} 
} 

/*
function getFlashversion(){
var ie=0 
var f=0 
var n=navigator 
if ((n.platform=='Win32')&&(n.userAgent.indexOf('Opera')==(-1))){
	ie=1 
	for (var i=3;i<7;i++){if (eval('new ActiveXObject("ShockwaveFlash.ShockwaveFlash.'+i+'")')){f=i}
	}
	if ((ie==0)&&(n.plugins)) 
	{ 
	for (var i=0;i<n.plugins.length;i++){
		if (n.plugins[i].name.indexOf('Flash')>(-1)) 
		{
			f=parseInt(n.plugins[i].description.charAt(16))
		}
		}
	}
	}
	return f;
}
*/


/*
function showToolTip(e){
	if(document.all)e = event;
	
	var obj = document.getElementById('bubble_tooltip');
	obj.style.display = 'block';
	var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
	if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0; 
	var leftPos = e.clientX - 100;
	if(leftPos<0)leftPos = 0;
	obj.style.left = leftPos + 'px';
	obj.style.top = e.clientY - obj.offsetHeight -1 + st + 'px';
}	


function hideToolTip()
{
	document.getElementById('bubble_tooltip').style.display = 'none';
	
}
*/