

// these are for /members/terminal/add/insert.asp
function getRef(obj){    return(typeof obj == "string") ? document.getElementById(obj) : obj;}function toggleStyle(obj, style, value1, value2){            kuk = getRef('Tips');        kuk.style['display']= 'none';        kuk = getRef('Klage');        kuk.style['display']= 'none';            obj= getRef(obj);                    // obj.isValue1 will be false the first time.                    if(!obj.isValue1){        obj.style[style]= value1;        obj.isValue1= true;    }    else{        obj.style[style]= value2;        obj.isValue1= false;    }}function ShowComment(entry)
{	toggleStyle(entry, 'display', 'inline', 'none');	}
function HideLink(entry)
{
	toggleStyle(entry, 'display', 'none', 'inline');}
function ConditionalShowComment(sender, target, link)
{	var limit = 3;
	var rating = getSelectedIndexValue(sender);	var txtArea = getRef(target);
	var olink = getRef(link);	
	if (rating < limit && rating > 0)	{
		txtArea.style['display'] = 'inline';
		olink.style['display'] = 'none';	}
	}

function ShowComments(url){   	var newWindow = window.open(url, 'comments', "HEIGHT=400,WIDTH=400, SCROLLBARS, RESIZABLE, MENUBAR");	newWindow.focus(); 
}
