// JavaScript Document
var left_div="left";
var right_div="right";
var main_div="main";
function change(id1,id2,id3){
	var con1=document.getElementById(id1);	
	var con2=document.getElementById(id2);	
	var con3=document.getElementById(id3);	
	
//	var max=0;
//for(i=0;j=arr.length;i<j;i++){
//    if(arr[i]>max)max=arr[i]
//}
	
	if(con1.offsetHeight>con2.offsetHeight){
		
		con3.style.height=con1.offsetHeight+"px";
		con2.style.height=con1.offsetHeight+"px";
	
		
	}
	if
	(con2.offsetHeight>con1.offsetHeight) 
	{	    
		con3.style.height=con2.offsetHeight+"px";
		con1.style.height=con2.offsetHeight+"px";			
	}
	
	
}
window.onload=function (){
	try{
	
		change(left_div,right_div,main_div);
		//alert(document.getElementById("left").offsetHeight+","+document.getElementById("right").offsetHeight+","+document.getElementById("main").offsetHeight+","+document.getElementById("rights").offsetHeight);
	//return false;		
		
		
	}
	catch(e){
	}
}

function addTag(idname,text)
{
	if(document.getElementById(idname).value=="")
	document.getElementById(idname).value+=text;
	else document.getElementById(idname).value+=""+text;
}
