
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 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 clearLogin(form) {
	if (form.q.value == "email ...")
		form.q.value= "";
}

function clearSearch(form) {
	if (form.q.value == "search ...")
		form.q.value= "";
}

function openPopupNL() {
	window.open('nl/popup_registration.asp','wind_login','width=400,height=400,scrollbars=yes,toolbar=false,location=false');
}

function openPopupFR() {
	window.open('fr/popup_registration.asp','wind_login','width=400,height=400,scrollbars=yes,toolbar=false,location=false');
}


function changeSearch(type,lang) {
	if (type=="google") {
		document.getElementById("linkbol_search").onclick
	}
	else {
		if (lang=="NL")
			document.getElementById("linkbol_search").onclick=openPopupNL; //openPopup(lang);
		else
			document.getElementById("linkbol_search").onclick=openPopupFR;
	}
}

function gotoSnelToegang(form, absPath, lang) {
	var pPath;
	if (form.q.value==1)
		pPath='agenda.asp'
	else if (form.q.value==2)	
		pPath='debat.asp'
	else if (form.q.value==3)	
		pPath='directory.asp'
	else if (form.q.value==4)	
		pPath='dossiers.asp'
	else if (form.q.value==5)
		pPath='ebib.asp'	
	else if (form.q.value==6)	
		pPath='profreadings.asp'
	else if (form.q.value==7)	
		pPath='iRamblas'
	else if (form.q.value==8)
		pPath='news'
	else if (form.q.value==9)
		pPath='passport_edit.asp'
	else if (form.q.value==10)
		pPath='press_releases.asp'
	else if (form.q.value==11)
		pPath='registration'
	else if (form.q.value==12)	
		pPath='rss'
	else if (form.q.value==13)	
		pPath='shop.asp'
	else if (form.q.value==14)	
		pPath='iRamblas-offline'	
	else if (form.q.value==15)	
		pPath='debat_30_5_07.asp'
	else if (form.q.value==17)	
		pPath='blogs'
	else if (form.q.value==18)	
		pPath='zoom'
	
	if (form.q.value==16) {	
		window.open("http://www.hrmblogs.com/?lng=" + lang);
	}
	else	
		window.location = absPath + pPath;
}

function gotoNewsRubriek(form, absPath) {
	window.location = absPath + 'index.asp?RubID=' + form.q.value;
}

function gotoLogin(form, absPath) {
	if (form.remember.checked == true)
		window.location = absPath + 'login.asp?ml=' + form.q.value + '&sv=on';
	else
		window.location = absPath + 'login.asp?ml=' + form.q.value;
}

function gotoSearch(form, lng, absPath) {
	if (form.searchtype[0].checked) {
		window.location = absPath + 'search.asp?q=' + form.q.value
	}
	else {
		var pPath
		if (lng=="FR")
			pPath='http://www.google.be/search?hl=fr&q=' + form.q.value;
		else
			pPath='http://www.google.be/search?hl=nl&q=' + form.q.value;
		pPath=pPath+'+site:www.saleshouse.be+OR+site:www.express.be';
		pPath=pPath+'+OR+site:www.salesonline.nl+OR+site:www.salesexpert.nl+OR+site:www.verkopersonline.nl';
		pPath=pPath+'+OR+site:www.focusco.fr+OR+site:www.marketvente.fr+OR+site:www.sellingpower.com';
		pPath=pPath+'+OR+site:www.salesandmarketing.com+OR+site:www.de-sma.nl+OR+site:www.hsmai.nl';
		pPath=pPath+'+OR+site:www.dcf-france.fr';
		window.open(pPath);
	}
}


function gotoSearch2(form, rubid, isRub, absPath) {

	if (rubid == '') {
		window.location = absPath + 'searchrub.asp?q=' + form.q.value + '&RubID=0'
	}
	else {
		if (rubid=="500" && isRub==0) 
		{
			window.location = absPath + 'searchrub.asp?q=' + form.q.value + '&TypeID=500' 
		}
		else {
			if (isRub==1)
				window.location = absPath + 'searchrub.asp?q=' + form.q.value + '&RubID=' + rubid
			else if (isRub==0)
				window.location = absPath + 'searchrub.asp?q=' + form.q.value + '&TypeID=' + rubid
		}
	}
}

function gotoSearch3(form, absPath) {
	if (form.eb.value == '')
		window.location = absPath + 'search.asp?q=' + form.q.value 
	else
		window.location = absPath + 'search.asp?q=' + form.q.value + "&eb=" + form.eb.value
}

function gotoFeed(form, absPath) {
	window.location = absPath + 'index.asp?TypeID=' + form.q.value
}