// JavaScript Document

<!-- Begin
var g, ch, VisitNm, SearchName, SearchEngine, NAM, GIV, LOC, STR, newspapersdp, YellName, YellCompany, YellLocation, WeatherNm
function VisitSite(){
if(document.MnFm.VisitNm.value=="http://"){
window.alert("please type in a website to visit")
}else{
window.open(document.MnFm.VisitNm.value)
}}
function searchEngine(){
document.MnFm.SearchName.value;
document.MnFm.SearchEngine.options.value
if(document.MnFm.SearchName.value=="Enter Text"){
window.alert("please type phases to search")
}else{
window.open(document.MnFm.SearchEngine.options.value+document.MnFm.SearchName.value)
}
}
function newspapers(){
window.open(document.MnFm.newspapersdp.options.value)
}
function yell(){
window.open("http://www.yell.com/ucs/UcsSearchAction.do;jsessionid=av4dZymjjar_?searchType=classic&ooa=on&keywords=" + document.MnFm.YellName.value + "&companyName=" + document.MnFm.YellCompany.value + "&location=" + document.MnFm.YellLocation.value + "&x=34&y=11")
}
function PhoneRes(){
window.open("http://www.thephonebook.bt.com/publisha.content/en/find/residential/residential_numbers.publisha?SearchType=res&PCD=&REQ=20&RNG=&PageBeginCount=1&Paging=N&PageResultType=subscribe&Searched=Y&NAM=" + document.MnFm.Phone1.value + "&GIV=" + document.MnFm.Phone2.value + "&LOC=" + document.MnFm.Phone3.value + "&STR=" + document.MnFm.Phone4.value + "&PreviousLocation=&x=23&y=5")
}
function Weather(){
window.open("http://www.weatheronline.co.uk/cgi-bin/suchen?ORT=" + document.MnFm.WeatherNm.value + "&LANG=en&PRG=citybild")
}
function PhoneBus(){
window.open("http://www.thephonebook.bt.com/publisha.content/en/find/business/business_numbers.publisha?PCD=&REQ=20&RNG=&PageBeginCount=1&PagingBack=N&PageResultType=subscribe&PreviousClassCode=&PreviousAreaCode=&PreviousName=" + document.MnFm.Buss1.value + "&Searched=Y&Paging=N&SearchType=type&NAM=" + document.MnFm.Buss1.value + "&LOC=" + document.MnFm.Buss2.value + "&STR=" + document.MnFm.Buss3.value + "&")
}
function PhoneBus2(){
window.open("http://www.thephonebook.bt.com/publisha.content/en/find/business/business_numbers.publisha?PCD=&REQ=20&RNG=&PageBeginCount=1&PagingBack=N&PageResultType=subscribe&PreviousClassCode=&PreviousAreaCode=&PreviousName=" + document.MnFm.Busname.value + "&Searched=Y&Paging=N&SearchType=bus&NAM=" + document.MnFm.Busname.value + "&LOC=" + document.MnFm.Busloc.value + "&STR=" + document.MnFm.Busstreet.value + "&")
}
function AirportOne(){
window.open(document.FmMnAirports.AirportOne.options[document.FmMnAirports.AirportOne.selectedIndex].value)
}
function AirportTwo(){
window.open(document.FmMnAirports.AirportTwo.options[document.FmMnAirports.AirportTwo.selectedIndex].value)
}
function AirportThree(){
window.open(document.FmMnAirports.AirportThree.options[document.FmMnAirports.AirportThree.selectedIndex].value)
}
function btdir(){
document.MnFm.btname.value;
document.MnFm.btpost.value;
document.MnFm.btstreet.value;
document.MnFm.btdirectory.options.value
window.open(document.MnFm.btdirectory.options.value + document.MnFm.btname.value + "&Searched=Y&Paging=N&SearchType=bus&NAM=" + document.MnFm.btname.value + "&LOC=" + document.MnFm.btpost.value + "&STR=" + document.MnFm.btstreet.value + "&")
}

function postcode(){
var invalid = ""
var urlId = document.MnFm.url.value
if (urlId == invalid) {
alert("please add a postcode");
}
else {
window.open("http://www.streetmap.co.uk/streetmap.dll?postcode2map?" + urlId)
   }
}
 
function dictionary(){
var invalid = ""
var urlword = document.MnFm.word.value
var locdef = document.MnFm.dicthe.options[document.MnFm.dicthe.selectedIndex].value

if (urlword == invalid){
alert("type in a word")
} 
else {
if (document.MnFm.dicthe.options[document.MnFm.dicthe.selectedIndex].value == "dictionary"){ 
window.open("http://dictionary.reference.com/search?db=dictionary&q=" + urlword)
}
else if (document.MnFm.dicthe.options[document.MnFm.dicthe.selectedIndex].value == "thesaurus") {
window.open("http://thesaurus.reference.com/search?q=" + urlword)
}
else if (document.MnFm.dicthe.options[document.MnFm.dicthe.selectedIndex].value == "encyclopedia"){
window.open("http://www.reference.com/search?q=" + urlword)
}
}
}

function wiki(){
if(document.MnFm.wikipedia.value==""){
window.alert("please enter something to search for on Wikipedia")
}else{
window.open("http://en.wikipedia.org/wiki/Special:Search?search=" + document.MnFm.wikipedia.value)
}}

function ebays(){
if(document.MnFm.ebayer.value==""){
window.alert("please enter something to search for on Ebay")
}else{
window.open("http://search.ebay.co.uk/search/search.dll?from=R40&satitle=" + document.MnFm.ebayer.value)
}}

function street(){
document.MnFm.action="http://www.streetmap.co.uk/newsearch.srf?"
document.MnFm.submit()
}

function traffic(){
document.MnFm.action="http://www.bbc.co.uk/cgi-bin/openurl.pl"
document.MnFm.submit()
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function skipSearch(){
var coder	
	coder = document.getElementById('skipSearcher').value;
	window.location = 'http://www.ukskiphiresearch.co.uk/search.asp?demo='+ coder;
}

//window.alert("http://dictionary.reference.com/search?q=" + urlword)

//http://www.reference.com/search?q=
//http://dictionary.reference.com/search?q=
//  End -->