var detect = navigator.userAgent.toLowerCase();
var browser,thestring;

var myurl = window.location.href;
var mytitle = document.title;

function bookmarkfile(url, title){
if(checkIt('msie'))
{
window.external.AddFavorite(myurl, mytitle);
}
else if(checkIt('firefox'))
{
window.sidebar.addPanel(mytitle, myurl, "")
}
else if(checkIt('netscape'))
{
alert('Please press CTRL + D to bookmark this site');
}
else if(checkIt('opera'))
{
alert('Please press CTRL + T to bookmark this site');
}
else 
{
alert('Please bookmark this site using your browser');
}
}

function checkIt(string)
{
place = detect.indexOf(string) + 1;
thestring = string;
return place;
} 


function validateform(theForm){
	e = document.getElementById('search_err');
    e.innerHTML="";
	if (theForm.string.value.replace(/ /g, "")=="")
	{
       	  e.innerHTML += 'Enter a search string';
          return false;
	}
    return true;
}


function validate_elist_1191887937()
{
    e = document.getElementById('elist_err1191887937');
    e.innerHTML="";
    if (!document.getElementById('elistaddress1191887937').value.match(/^[-!#$%&'*+./0-9=?A-Z^_`a-z{|}]+@[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~.]+?.+[a-zA-Z]{2,4}$/i)) 
    {
        e.innerHTML += 'Invalid email address';
    }
    if (e.innerHTML != "") return false;
    return true;
}
