// Base javascript function
function ChBg(TdName,color){
	try{
		objTd=document.getElementById(TdName);
		objTd.setAttribute("bgColor",color,1);
	}catch(e){}
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function ChImg(idimg,url){
	try{
		objimg=document.getElementById(idimg);
		objimg.src=url;
	}catch(e){}
}

//For coding mail address
//Default domain as ntt.com.ru
function mcont(box,dm){
	if(dm=="") dm="romex-ib.com";
	try{
		document.write("<nobr><a href=\"\" onMouseOver=\"this.href='m'+'a'+'il'+'to'+':"+box+"@"+dm+"'\"><u>"+box+String.fromCharCode(64)+dm+"</u></a></nobr>");
	}catch(e){
	}
}

function chloading(layshow){
	try{
		obj=document.getElementById("loading");
        /*obj2=document.getElementById(layshow);*/
		obj.style.display="none";
        /*obj2.style.display="";*/
	}catch(obj){}
    try{
		obj=document.getElementById("loading");
        /*obj2=document.getElementById(layshow);*/
		obj.style.cssText="display:none";
        /*obj2.style.cssText="display:;";*/
	}catch(obj){}
}

function opElement(url){
    if(url.length){
        w1=window.open(url,'w','width=450,height=400,status=no,resizable=yes,scrollbars=yes,toolbar=no, menubar=yes');
        w1.focus();
    }
}
