//spam buster mailto goodness
function nospam(ahost,auser) {
	window.document.location.href = "mailto:"+auser+"@"+ahost;
}

// you aint got what I need
if(navigator.appVersion.indexOf("MSIE") != -1 && navigator.appVersion.indexOf("Windows") != -1){
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('hasRequired = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & required))) \n');  
	document.write('<'+'/scr' + 'ipt\> \n');
}

// check search field
function checkkeywords (strng) {
var error = "";
	if (strng == "Enter Keywords") {
	   error = "Please enter keywords into the search field.\n";
	}
return error;
}

function checksearchbox(search) {
    var why = "";
    why += checkkeywords(searchbox.search.value);
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}

function checknewsreleasessearchbox(search) {
    var why = "";
    why += checkkeywords(newsreleasessearchbox.search.value);
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}

//--- frame destroya ---------------------------------------------

function noframes() {
	if (top.location != self.location) {
		top.location.href = self.location.href;
	}
}

//--- email function --------------------------------------------
function Email(){
window.location = "mailto:"+"?subject=Daily Mail and General Trust" + "&body=" + "I thought this link might interest you: " + document.title + ", which is available at the following address, " + document.location;
}