
function openw()
{
window.open("http://mu.hardyshopp.cjb.net/topsites/in.php?id=22807","mywindow","menubar=1,resizable=1,width=150,height=150");
}
function clear_string(field){
document.getElementById(field).value=document.getElementById(field).value.split("'").join("")
document.getElementById(field).value=document.getElementById(field).value.split("-").join("")
document.getElementById(field).value=document.getElementById(field).value.split("+").join("")
document.getElementById(field).value=document.getElementById(field).value.split("*").join("")
document.getElementById(field).value=document.getElementById(field).value.split("\\").join("")}
function redirect(pagina,time){
window.setTimeout("window.location='"+pagina+"';",time)}
function extraiScript(texto){
var ini=0
while(ini!=-1){
ini=texto.indexOf('<script',ini)
if(ini>=0){
ini=texto.indexOf('>',ini)+1
var fim=texto.indexOf('</script>',ini)
codigo=texto.substring(ini,fim)
eval(codigo)}}}
function Load(url,div,tipo){
var ajax=null
if(window.ActiveXObject)
ajax=new ActiveXObject('Microsoft.XMLHTTP')
else if(window.XMLHttpRequest)
ajax=new XMLHttpRequest()
if(ajax !=null){
var cache=new Date().getTime()
ajax.open(tipo,url+"&cache="+cache,true)
ajax.onreadystatechange=function status(){
if(ajax.readyState==4){
if(ajax.status==200){
document.getElementById(div).innerHTML=ajax.responseText
var texto=unescape(ajax.responseText.replace(/\+/g," "))
extraiScript(texto)}}
else
document.getElementById(div).innerHTML='<img src="imagens/load.gif" alt="" />'}
ajax.send(null)}}

function Load2(url,div,tipo){
var ajax=null
if(window.ActiveXObject)
ajax=new ActiveXObject('Microsoft.XMLHTTP')
else if(window.XMLHttpRequest)
ajax=new XMLHttpRequest()
if(ajax !=null){
var cache=new Date().getTime()
ajax.open(tipo,url+"&cache="+cache,true)
ajax.onreadystatechange=function status(){
if(ajax.readyState==4){
if(ajax.status==200){
document.getElementById(div).innerHTML=ajax.responseText
var texto=unescape(ajax.responseText.replace(/\+/g," "))
extraiScript(texto)}}

}
ajax.send(null)}}

function Open(pagina){
Load(pagina,"main","GET")}
function makeLinks(){
if(!document.getElementsByTagName)return
var anchors=document.getElementsByTagName("a")
for(var i=0;i<anchors.length;i++){
var anchor=anchors[i]
if(anchor.getAttribute("href")&&
anchor.getAttribute("rel")=="external"){
anchor.target="_blank"}}}


window.onload = makeLinks;
