/*----------------------START login en wachtwoord teksten in de vakken --------------*/
	function mySetStyleDisplay (myDiv, myStyle){
	if (document.all){
	obj = document.all(myDiv);
	obj.style.display = myStyle;
	} else if (document.getElementById) {
	obj = document.getElementById(myDiv);
	obj.style.display = myStyle;
	} else {alert (Err_Browser);}
	}

	function myShow(myDiv){
	mySetStyleDisplay (myDiv,'block');
	}

	function myHide(myDiv){
	mySetStyleDisplay (myDiv,'none');
	}
	
	function myPasswordHide(){
		if(! document.forms[0].elements['Password'].value.length)
		{					
			myShow('alternatePasswordBox');
			myHide('PasswordBox');
		}
		return true;
	}
	function myPasswordShow(){
		myHide('alternatePasswordBox');
		myShow('PasswordBox');
		document.forms[0].elements['Password'].focus();
		return true;
	}
/*------------------------END login en wachtwoord teksten in de vakken --------------*/


function ShowHidePublicationsDiv(elementid, image, plusimage, minusimage)
{
	if (document.getElementById(elementid).style.display=="none")
	{
		document.getElementById(elementid).style.display="block";
		document.getElementById(image).innerHTML = "<img src='"+ minusimage + "' border='0'>";
	}
	else
	{
		document.getElementById(elementid).style.display="none";
		document.getElementById(image).innerHTML = "<img src='"+ plusimage + "' border='0'>"; 
	}
}


function ShowHideMembersDiv(elementid1, elementid2)
{
	if (document.getElementById(elementid1).style.display=="none")
	{
		document.getElementById(elementid1).style.display="block";
		document.getElementById(elementid2).style.display="none";
	}
	else if (document.getElementById(elementid1).style.display=="block")
	{
		document.getElementById(elementid1).style.display='none';
		document.getElementById(elementid2).style.display='block';
		
		
	}
}


function popup(url, name, height, width, scrollbars)
{
	var popwin;
	var opts = "toolbar=no,status=no,location=no,menubar=no,resizable=no";
	opts += ",height=" + height + ",width=" + width + ",scrollbars=" + scrollbars;

	popwin = window.open("", name, opts);
	popwin.focus();
	popwin.location = url;

	
}

function popupCenter(url, name, height, width, scrollbars) 
{
	var left = (screen.width/2)-(width/2);
	var top = (screen.height/2)-(height/2);
	
	var opts = "toolbar=no,status=no,location=no,menubar=no,resizable=no";
	opts += ",height=" + height + ",width=" + width + ",top=" + top + ",left=" + left + ",scrollbars=" + scrollbars;
		
	popwin = window.open("", name, opts);
	popwin.focus();
	popwin.location = url;
}

function changeBorder(obj, colorBorder)
{           
    obj.style.border = 'solid 1px '+colorBorder;
}

function HideContent(d)
{
	if(d.length < 1)
		return;
	
	document.getElementById(d).style.display = "none";
}

var cX = 0; var cY = 0;
function UpdateCursorPosition(e)
{ 
    cX = e.pageX; cY = e.pageY;    
}

function UpdateCursorPositionDocAll(e)
{   
    cX = event.clientX; cY = event.clientY + document.documentElement.scrollTop;
}

function AssignPosition(d) 
{
    document.getElementById(d).style.left = (cX+20) + "px";
    document.getElementById(d).style.top = (cY+10) + "px";
}

if(document.all) { 
    document.onmousemove = UpdateCursorPositionDocAll; 
}
else { 
    document.onmousemove = UpdateCursorPosition; 
}
			
function ShowContent(d)
{		
    if(document.all)
        document.onmousemove = UpdateCursorPositionDocAll;
    else
        document.onmousemove = UpdateCursorPosition;
			
	AssignPosition(d);
	
	if (d.length < 1)
	    return;
	
	document.getElementById(d).style.display = "block";
}
