function tobas(url,id,price){
	newwin=window.open(url, 'popup', 'toolbar=no, width=200, height=100');	
}

function tobas2(url){
	newwin=window.open(url, 'popup', 'toolbar=no, width=300, height=150');	
}


function win(url){
	newwin=window.open(url, 'popup', 'toolbar=no, width=200, height=100');	
	return true;
}


function si(id) {
	LeftAndTop = GetCenterCoords(800,600);
	Params = ",left="+LeftAndTop[0]+",top="+LeftAndTop[1];
        window.open(id,'','resizable=yes, width=800, height=600'+Params);
}

function logo(id) {
	LeftAndTop = GetCenterCoords(600,480);
	Params = ",left="+LeftAndTop[0]+",top="+LeftAndTop[1];
      window.open(id,'popup','resizable=yes, width=600, height=480'+Params);
}


function setHomePage(resurl,resname){
	window.external.AddFavorite(resurl,resname);
	return true;
}

function GetCenterCoords (width, height){

sWidth = parseInt(screen.width);
sHeight = parseInt(screen.height);

wleft = Math.round(sWidth/2 - width/2);
wtop = Math.round(sHeight/2 - height/2-80);

return new Array(wleft, wtop);
}

function hidelink(){
	window.status='';
	return true;
}


<!--Rating@HotPortal.ru COUNTER-->
function getCookie2(name) {

var prefix = name + "="
var cookieStartIndex = document.cookie.indexOf(prefix)

	if (cookieStartIndex == -1)
		return null

var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
	
	if (cookieEndIndex == -1)
		cookieEndIndex = document.cookie.length
	
	return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}

function setCookie2(name, value, expires, path, domain, secure) {
var expires = new Date ();
	expires.setTime(expires.getTime() + (24 * 3600 * 1000*30));
var path="/";
var curCookie = name + "=" + escape(value) +
	((expires) ? "; expires=" + expires.toGMTString() : "") +
	((path) ? "; path=" + path : "") +
	((domain) ? "; domain=" + domain : "") +
	((secure) ? "; secure" : "")
	document.cookie = curCookie
}

function hotcd_counter(){

var old=getCookie2('id_count_dken');

if (old!=1)
{
	setCookie2('id_count_dken','1');
	var old=0;
}

var RndNoCash = Math.round(Math.random() * 1000000000);
	
	document.write('<a href="http://www.hotcd.ru/cgi-bin/index.pl?3==0==0==wedlhost"><img src="http://www.hotcd.ru/cgi-bin/ncounter.cgi?wedlhost==0=='+old+'=='+RndNoCash+'" width=88 height=31 border=0 alt="Партнерская программа. 10% с продаж, 20% от заработка новых привлеченных партнеров!"></a>');
}

function stat_su_counter(){

}


function CreateBookmarkLink(url,title) {

    if (window.sidebar) { // Mozilla Firefox Bookmark
        window.sidebar.addPanel(title, url,"");
    } else if( window.external ) { // IE Favorite
        window.external.AddFavorite( url, title); 
    } else if(window.opera && window.print) { // Opera Hotlist
        return true; 
    }
}


function wait_visibility(id, flag){
if (document.getElementById(id)) { 
document.getElementById(id).style.visibility = (flag) ? "visible" : "hidden"; 
}
}