function setHTMLEditorContent(sEditorID, sContent) {
		var oEditor = $(sEditorID);
		//alert(oEditor);
		if(oEditor) {
			tinyMCE.execInstanceCommand(sEditorID, 'mceSetContent', false, sContent);
		}
		alert(cContent);
		return;
}

function trim(str){
   return str.replace(/^\s*|\s*$/g,"");
}

/*
function isArray(a){
  return isObject(a) && a.constructor == Array;
}

function isObject(a){
     return (typeof a == 'object' && !!a) || isFunction(a);
}
*/

function swapImg(id, url){
	$(id).src=url;
}

function preloadImg(a){
	var preimg=new Image; 
	preimg.src=a;
}