
function match_2_columns(id1, id2)
{
	var height_id1 = getElementHeight(id1);
	var height_id2 = getElementHeight(id2);
	var maxheight = height_id1;
	//alert("height_id1: "+height_id1);
	//alert("height_id2: "+height_id2);
	if(height_id2 > maxheight) maxheight = height_id2; 
	
	document.getElementById(id1).style.height = maxheight + "px";
	document.getElementById(id2).style.height = maxheight + "px";
}

function match_3_columns(id1, id2, id3)
{
	var height_id1 = getElementHeight(id1);
	var height_id2 = getElementHeight(id2);
	var height_id3 = getElementHeight(id3);
	var maxheight = height_id1;
	//alert("height_id1: "+height_id1);
	//alert("height_id2: "+height_id2);
	if(height_id2 > maxheight) maxheight = height_id2; 
	if(height_id3 > maxheight) maxheight = height_id3; 
	
	document.getElementById(id1).style.height = maxheight + "px";
	document.getElementById(id2).style.height = maxheight + "px";
	document.getElementById(id3).style.height = maxheight + "px";
}


function urlencode(str) {
    var v;
    try { v = encodeURIComponent(str); } catch (e) { v = escape(str); }
    return v.replace(/%20/g,"+");
}

function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}

function showid(id){
	document.getElementById(id).style.display = 'block';
}
function hideid(id){
	document.getElementById(id).style.display = 'none';
}

//CHECK FOR IE6
function is_ie6(){
     return ((window.XMLHttpRequest == undefined) && (ActiveXObject != undefined));
}

