/**

function search(keywords){
	if(keywords != "") {
		keywords = keywords.replace(" ", "+");
		location = "/zoek/"+keywords+"/1";
	}
	
}
*/


/**
 * 	SEARCH
 */
function submitSearchForm()
{
    searchString = document.forms['frmSearch'].search.value;
    searchString = searchString.replace(/ /gi, "+");
    
    if(searchString == '') 
        return false; 
    else
    {
    	window.location = "/zoek/"+searchString+"/1";    	
        return false; 
    }
} 

function empty(value) {
	if(value == "zoeken...") {
		elementID = "search_text";
		if (document.all)
			document.all[elementID].value = "";
		else if (document.getElementById)
    		document.getElementById(elementID).value = "";
	}
}


function resizeTable() {
	var obj1 = document.getElementById('news_1_td');
	
	if(obj1)
	{
    	var obj1Height = document.getElementById('news_1_td').offsetHeight;
    	var obj2Height = document.getElementById('news_2_td').offsetHeight;
    	var obj3Height = document.getElementById('news_3_td').offsetHeight;

   		var nw_height = 0;
    
		if(obj1Height >= obj2Height && obj1Height >= obj3Height) { nw_heigth = obj1Height; }
		if(obj2Height >= obj1Height && obj2Height >= obj3Height) { nw_heigth = obj2Height; }
   		if(obj3Height >= obj1Height && obj3Height >= obj2Height) { nw_heigth = obj3Height; }

   		document.getElementById('news_1_td').style.height = nw_heigth+'px';
   		document.getElementById('news_2_td').style.height = nw_heigth+'px';
   		document.getElementById('news_3_td').style.height = nw_heigth+'px';
	}
}