//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;
}
var newWin = null; 
function popUp(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixedscroll") 
   strOptions="status,scrollbars,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}