function search_on_google(){
	var sString=document.forms['searchForm'].t.value;
	sString=sString+' site:smbc.ru';
	window.open('http://www.google.com/search?num=20&hl=ru&q='+sString);
	return false;
}

function make(t){
	var sString=document.forms['searchForm'].t.value;
	if (sString){
		if (t == "yandex"){var str="http://www.yandex.ru/yandsearch?text="+sString;}
		if (t == "rambler"){var str="http://search.rambler.ru/cgi-bin/rambler_search?words="+sString;}
		if (t == "aport"){var str="http://sm.aport.ru/scripts/template.dll?Ln=R&Tn=8&r="+sString;}
		if (t == "google.com"){var str="http://www.google.com.ru/search?q="+sString+"&ie=KOI-8&oe=UTF-8&hl=ru&lr=";}
		window.open(str);
	}else{window.open('http://www.'+t+'.ru');}
}

function HP(obj){
	if (document.all){
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage('http://www.smbc.ru');
		return false;
	}else if(!document.layers){
		netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite");
		navigator.preference("browser.startup.homepage", "http://www.smbc.ru");
		return false;
	}
	return true;
}

function timeUpdate(curtime){
    cTime.setTime(cTime.getTime()+1000);
   	if (cTime.getSeconds()>9) secs=cTime.getSeconds(); else secs="0"+cTime.getSeconds();
    if (cTime.getMinutes()>9) mins=cTime.getMinutes(); else mins="0"+cTime.getMinutes();
	if (cTime.getHours()>8) hous=cTime.getHours(); else hous="0"+cTime.getHours();
	document.getElementById('nTime').innerHTML=curtime + " " +(hous+1)+":"+mins+":"+secs;
}

function redirect(obj){if (obj.value){document.location='http://smbc.ru/redirect.php?url='+obj.value;return true;}return false;}