function addTag(obj_name, tag, closeTag){
	eval('document.frm.'+obj_name).value += tag + closeTag;				
}

function addUrl(obj_name){
	url = prompt("Please enter the url eg. \"http://www.yahoo.com\"", "");
	
	if(url){
		label = prompt("Plase enter the link label eg. \"Click Here\"", "");
		url = "<a href=\""+url+"\">"+label+"</a>";
		eval('document.frm.'+obj_name).value += url;
		
	}
	eval('document.frm.'+obj_name).focus();
}


function conLen(obj,len){
	if(obj.value.length>len)
		obj.value=obj.value.substring(0, len);
}

function wordDisplay(disObj, obj){
	disObj.value = obj.value.length;
}

function openWindow(url){
	newWindow = window.open(url,"Bunalun",
			"status,menubar,height=550,width=550,scrollbars");
	newWindow.focus( );
}
function openPdfWindow(url){
	newWindow = window.open(url,"Bunalun",
			"status,menubar,height=600,width=700,scrollbars");
	newWindow.focus( );
}
function openNewWindow(url, width, height){
	newWindow = window.open(url,"Bunalun",
			"status,menubar,height="+height+",width="+width+',scrollbars');
	newWindow.focus( );
}
