var url = '';

function main(){
//if(location.href.search('hghltd.yandex.com') !=  -1){
//var href = document.getElementsByTagName("a")
//var target = href[1].innerHTML
//top.location = target
//return
//}

var some = document.getElementsByTagName("DIV")
var somebody = document.getElementsByTagName("body")
cover = '<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /><link href="/template_css0.css" rel="stylesheet" type="text/css" /><link rel="shortcut icon" href="/ico.ico"/></head><BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0 marginheight="0" marginwidth="0"><table border="0" width="100%" cellspacing="0" cellpadding="0" height="62"><tr><td width="180" height="43" bgcolor="#FCF4DA"><p align="center"><a href="/"><img border="0" src="/refby.jpg"></a></p></td><td background="/main_bg0.gif" height="43"><img border="0" src="/refby.jpg" width="1" height="1"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="48"></td><td>  <br /><iframe marginwidth=0 marginheight=0 scrolling=no frameborder=0 src="http://ref.by/geo_open/?place=0" width=468 height=60 valign=top></iframe><br /><br /></td></tr><tr><td width="40"><img border="0" src="/refby.jpg" width="1" height="1"></td><td><img border="0" src="/refby.jpg" width="1" height="1"></td></tr></table></td><td width="70" background="/main_bg0.gif" height="43">&nbsp;</td></tr><tr><td width="180" height="1" bgcolor="#800000"><img border="0" src="/refby.jpg" width="1" height="1"></td><td height="1" bgcolor="#800000"><img border="0" src="/refby.jpg" width="1" height="1"></td><td width="70" height="1" bgcolor="#800000"><img border="0" src="/refby.jpg" width="1" height="1"></td></tr><tr><td width="180" height="21" bgcolor="#FCF4DA"></td><td background="/main_bg0.gif" height="21">&nbsp;</td><td width="70" background="/main_bg0.gif" height="21">&nbsp;</td></tr></table>'
cover += '<table border="0" width="100%" cellspacing="0" cellpadding="0" height="216"><tr><td width="180" height="201" valign="top" bgcolor="#FCF4DA" rowspan="2"><iframe marginwidth=0 marginheight=0 scrolling=no frameborder=0 src="/0/m.php" width=180 height=910 valign=top></iframe></td><td height="185" valign="top" width="560" background="/main_bg0.gif"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="48">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><form name="search" action="http://search.ref.by/" target="_top"><input type="text" name="text" value="" size="40" style="width: 400px;" />&nbsp;<input type="submit" id="doSearch" value="Найти" /></form><noindex><div style="width:468px"><center><iframe marginwidth=0 marginheight=0 scrolling=no frameborder=0 src="http://ref.by/geo_open/?place=2" width=468 height=183 valign=top></iframe></center></div></noindex></td><td width="48"></td></tr></table><table border="0" width="550" cellspacing="10" cellpadding="0"><tr><td width="100%" valign="top" bgcolor="#F9F9F9"><div style="border: 1px solid #C5C8D0; margin:4px; padding:10px;">'+ some[0].innerHTML +'</div></td></tr></table><br /><center><!--iframe marginwidth=0 marginheight=0 scrolling=no frameborder=0 src="http://ref.by/geo_open/?place=5" width=468 height=60 valign=top></iframe--></center></td><td height="201" valign="top" background="/main_bg0.gif" rowspan="2"><div style="padding-top:140px" align=center><iframe marginwidth=0 marginheight=0 scrolling=no frameborder=0 src="http://ref.by/_ads/ref.by_right.php" width=240 height=900 valign=top></iframe></div></td></tr><tr><td height="16" valign="top" width="560" background="/main_bg0.gif"></td></tr><tr><td width="180" height="13" valign="top" bgcolor="#FCF4DA">&nbsp;</td><td height="13" valign="top" width="560" background="/main_bg0.gif">&nbsp;</td><td height="13" valign="top" background="/main_bg0.gif">&nbsp;</td></tr><tr><td width="180" height="1" valign="top" bgcolor="#800000"><img border="0" src="/refby.jpg" width="1" height="1"></td><td height="1" valign="top" bgcolor="#800000" width="560"><img border="0" src="/refby.jpg" width="1" height="1"></td><td height="1" valign="top" bgcolor="#800000"><img border="0" src="/refby.jpg" width="1" height="1"></td></tr><tr><td width="180" height="8" valign="top" bgcolor="#FCF4DA"><iframe marginwidth=0 marginheight=0 scrolling=no frameborder=0 src="/refs/s4.html" width=100 height=60 valign=top></iframe>&nbsp;</td><td height="8" valign="top" width="560" background="/main_bg0.gif"><font color="#808080">&nbsp;</font><br>&nbsp;&nbsp;<font color="#800000">REF.BY 2006</font><br><font size="1">&nbsp;&nbsp;</font><a href="mailto:contextus@mail.ru"><font size="1">contextus@mail.ru</font></a><br>&nbsp;</td><td height="8" valign="top" background="/main_bg0.gif">&nbsp;</td></tr></table>'
somebody[0].innerHTML = cover

//openerReload_();
}

k = "1"
 function WertSetzen(Bezeichner, Wert, Verfall)
{
 var jetzt = new Date();
 var Auszeit = new Date(jetzt.getTime() + Verfall);
 document.cookie = Bezeichner+"="+Wert+"; path=/; expires="+Auszeit.toGMTString()+";";
}

//function doOp()
//{
// try
// {
//  window.opener.location= 'mamboid/' + i + '.html';
//  WertSetzen('w' + i, i, 1000*60*60*12);
// }
// catch(e){
//}
//}

//function openerReload_()
//{
//for(i=0; i <= k; i++){
//if(document.cookie.search(i) ==  -1){
//setTimeout(doOp, 3000);
//break;
//}
//}
//}

