function cbg(src,color)
{
src.style.backgroundColor=color;
src.style.cursor='hand';
}
function wre(url,txt) { 
if (!txt) txt=unescape(url);
document.write('<a href="mailto:'+unescape(url)+'">'+txt+'<\/a>')
}
function tr(obj){
s=obj.value;
re=/^\s+/;s=s.replace(re, '');
re=/\s+$/;s=s.replace(re, '');
obj.value=s;return s;
}
function ve(e){
ind=e.indexOf('\@');return (ind>0 && ind<s.length-1?true:false);
}
function validate(f){
p='Ââåäèòå ';
if (tr(f.email)==''||!ve(f.email.value)) {alert(p+'ïðàâèëüíûé email!'); return false;}
return true;
}

function setdiv(div, HTML) {
	if(document.all) {document.all(div).innerHTML = HTML}

	else if(document.layers) {
		with(document.layers[div].document) {
			open ("text/html")
			write (HTML)
			close ()
		}
	}
	else if(document.getElementById) {document.getElementById(div).innerHTML = HTML;}

}
