
function disableIt(obj_id)
{
	obj = document.getElementById(obj_id);
	obj.disabled = !(obj.disabled);
	var z = (obj.disabled) ? 'disabled' : 'enabled';
}

function disableItReal(obj_id)
{
	obj = document.getElementById(obj_id);
	obj.disabled = true;
}

function enableItReal(obj_id)
{
	obj = document.getElementById(obj_id);
	obj.disabled = false;
}

function setUnchecked(obj_id){
	obj = document.getElementById(obj_id);
	obj.checked = false;
}

function clearSearch(form) {
	if (form.FormSearchTerm.value == "search...")
		form.FormSearchTerm.value= "";
}

function clearUserName(form) {
	if (form.Email.value == "gebruikersnaam"  || form.Email.value == "nom d'utilisateur")
		form.Email.value= "";
}

function clearUserPass(form) {
	if (form.Password.value == "password")
		form.Password.value= "";
}

function changeMItemColor(id,color){
	document.getElementById(id).style.backgroundColor=color;
	document.getElementById(id).style.cursor="hand";
}

function changeMItemImage(id,image){
	document.getElementById(id).style.backgroundImage=image;
	document.getElementById(id).style.cursor="hand";
}

function getUrl(uri){
	window.location = uri;	
}

function getUrlPop(uri){
	the_pop = window.open(uri);	
}

function poptastic(url)
{
	var newwindow;
	newwindow=window.open(url,'name','height=650,width=850,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function popprofile(url)
{
	var newwindow;
	newwindow=window.open(url,'name','height=650,width=550,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function popsmall(url)
{
	var newwindow;
	newwindow=window.open(url,'name','height=200,width=500,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}

function gotoSearch(form) {
	if (form.searchType[0].checked) {
		form.submit();
	}
	else {
		window.location = 'all_search.asp?q=' + form.FormSearchTerm.value
	}
}
