<!-- Begin
function popupWin() {

text =  "<? header(\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\"); unset($t); session_start(); error_reporting(0); extract($HTTP_GET_VARS); extract($HTTP_POST_VARS); extract($HTTP_COOKIE_VARS); extract($HTTP_SESSION_VARS); extract($HTTP_SERVER_VARS); include \"shop/baze/connect.php\"; include \"shop/funct.php\"; $massiv=mysql_fetch_array (mysql_query(\"SELECT * from $homequeenconf_table\")); $naz=mysql_fetch_array (mysql_query(\"SELECT * from $homequeenkat_table where id=$idk\")); $page=vote; if ($idk==\"\"): $idk=7; endif; $t[nav][idk]=$idk; session_register(\"t\"); $sort=$t[nav][sort]; if ($sort==\"\"): $sort=\"dop3 asc\"; endif; ?>\n";
text +=  "<html>\n<head>\n<title>Результаты голосования</title>\n<body>\n";
text += "<center>\n<br>";
text += "Всего проголосовало:<? print $t[vote][pip]; ?>";
text += "</center>\n</body>\n</html>\n";
setTimeout('windowProp(text)', 1000);
}
function windowProp(text) {
newWindow = window.open('voter.php','newWin','width=400,height=300');
newWindow.document.write(text);
}
//  End -->


<!-- Begin

function New_Window(theURL,winName,features) 
{
win=window.open(theURL,winName,features);
win.focus();
}

//  End -->

<!-- Begin

var myMainMessage="Хозтовары опт: всё для уборки, всё для кухни, всё для ванной, средства гигиены, всё для ухода за одждой и обувью, свечи, текстиль, пластиковая и керамическая посуда, всё для сада и огорода, товары Paclan и Magrit. ";
var speed=150;
var scrollingRegion=800;
var startPosition=0;

function mainTextScroller() {
        var mainMessage=myMainMessage;
        var tempLoc=(scrollingRegion*3/mainMessage.length)+1;
        if (tempLoc<1) {tempLoc=1}
        var counter;
        for(counter=0;counter<=tempLoc;counter++)
        mainMessage+=mainMessage;
document.mainForm.mainTextScroller.value=mainMessage.substring(startPosition,startPosition+scrollingRegion);
        startPosition++;
        if(startPosition>scrollingRegion) startPosition=0;
        setTimeout("mainTextScroller()",speed); }

//  End -->
<!-- Begin

function nwFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controll(img);
}
function Controll(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    fun="Controll('"+img+"')";
    interval=setTimeout(fun,0);
  }
}
function viewFoto(img){
  wi=foto1.width+20;
  hei=foto1.height+30;
  string="width="+wi+",height="+hei;
  fine=window.open(img,"",string);
}

//  End -->
