function InsertTag(oElement, ThisTagName){ if ( typeof(oElement) == 'object' ) { oElement.focus(); if ( typeof(document.selection.createRange()) == 'object' ) { var seltext = document.selection.createRange(); seltext.text = '{' +ThisTagName +'{' +seltext.text +'}' +ThisTagName +'}' ; document.selection.clear; } } } function checkMe(tf,pars) { pole=pars.split(','); for(i=0;i