
function winopen()
{
  var w=290;h=270;p='center';
  ws=window.screen?1:0,m=Math,C='center',R='random',M='custom',sw=screen.availWidth,sh=screen.availHeight,T=(p==C&&ws)?(sh-h)/2:(p==R&&ws)?(m.floor(m.random()*(sh-h))):(p==M)?2:100,L=(p==C&&ws)?(sw-w)/2:(p==R&&ws)?(m.floor(m.random()*(sw-w))):(p==M)?2:100,s='width='+w+'px,height='+h+'pt,top='+T+',left='+L+',resizable=yes';
  win=window.open('','virtualeye',s);win.focus();
}

function progress_bar() {
  win = window.open("progress.php","progress","width=180,height=40,left=0,top=0");
  return true;
}

function Go(x)
{
	var w=290;h=270;p='center';
	ws=window.screen?1:0,m=Math,C='center',R='random',M='custom',sw=screen.availWidth,sh=screen.availHeight,T=(p==C&&ws)?(sh-h)/2:(p==R&&ws)?(m.floor(m.random()*(sh-h))):(p==M)?2:100,L=(p==C&&ws)?(sw-w)/2:(p==R&&ws)?(m.floor(m.random()*(sw-w))):(p==M)?2:100,s='width='+w+'px,height='+h+'pt,top='+T+',left='+L+',resizable=yes';

	if ('' != x) {
		document.forms[1].tour_url.value=x;
	  win=window.open("/id.php?"+x,'virtualeye',s);win.focus();
		document.forms[0].elements[0].blur();
		win.focus();
	}
}

