function bookmarksite(title, url){
	if (document.all)
	window.external.AddFavorite(url, title);
	else if (window.sidebar);
	window.sidebar.addPanel(title, url, "");
}
function reload_again()
{
	setTimeout(hello, 100000);
}
function hello()
{
	document.location.href=document.location.href;
}

function getanalysis()
{  
	var url=document.getElementById('urltext').value;
	var changeurl=url.replace('www.','');
	changeurl=changeurl.replace('http://','');
	changeurl=changeurl.replace('https://','');
	//var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/;
	var tomatch= /[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/;
	
    if(tomatch.test(url)){
        document.location.href=path+"siteinfo/"+changeurl;
    }else{
        alert('The url seems to invalid.');
    }  	
}
function displayunicode(e){
	var txt=document.getElementById('urltext').value;
	var unicode=e.keyCode? e.keyCode : e.charCode
	if(unicode==13)
		getanalysis();
	
}

