function submitsearch()
{
  document.sr.submit();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function validateSTF(myForm) {
	if(myForm.name.value=='') {
		alert("Please include your name");
		myForm.name.focus();
		return false;
	}
	
	if(myForm.formemail.value!='') {
		var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
		if (!myForm.formemail.value.match(re)) {
			alert("Please include a valid email address");
			myForm.formemail.focus();
			return false;
		}
	} else {
		alert("Please include a valid email address");
		myForm.frmemail.focus();
		return false;
	}
	
	if(myForm.fr_name.value=='') {
		alert("Please include your friends name");
		myForm.fr_name.focus();
		return false;
	}
	
	if(myForm.fr_email.value=='') {
		alert("Your friends email address isn't valid");
		myForm.fr_email.focus();
		return false;
	}

	myForm.Submit.disabled=true;
	myForm.Submit.value="please wait";

	 return true;
}

function validateBand(myForm) {
	if(myForm.formname.value=='') {
		alert("Please include your name");
		myForm.formname.focus();
		return false;
	}
	
	if(myForm.formemail.value!='') {
		var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
		if (!myForm.formemail.value.match(re)) {
			alert("Please include a valid email address");
			myForm.formemail.focus();
			return false;
		}
	} else {
		alert("Please include a valid email address");
		myForm.frmemail.focus();
		return false;
	}
	
	if(myForm.formcomments.value=='') {
		alert("Your comments are needed");
		myForm.formcomments.focus();
		return false;
	}

	myForm.Submit.disabled=true;
	myForm.Submit.value="please wait";

	 return true;
}

function validateVenue(myForm) {
	if(myForm.formname.value=='') {
		alert("Please include your name");
		myForm.formname.focus();
		return false;
	}
	
	if(myForm.formvenue.value=='') {
		alert("Please include your venue");
		myForm.formvenue.focus();
		return false;
	}
	
	if(myForm.formlocation.value=='') {
		alert("Please include your venue location");
		myForm.formlocation.focus();
		return false;
	}
	
	if(myForm.formemail.value!='') {
		var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
		if (!myForm.formemail.value.match(re)) {
			alert("Please include a valid email address");
			myForm.formemail.focus();
			return false;
		}
	} else {
		alert("Please include a valid email address");
		myForm.frmemail.focus();
		return false;
	}
	
	if(myForm.formtel.value=='') {
		alert("Your telephone number is needed");
		myForm.formtel.focus();
		return false;
	}
	
	if(myForm.formcomments.value=='') {
		alert("Your comments are needed");
		myForm.formcomments.focus();
		return false;
	}
	
	if(myForm.security_code.value=='') {
		alert("Please enter the security code");
		myForm.security_code.focus();
		return false;
	}

	myForm.Submit.disabled=true;
	myForm.Submit.value="please wait";

	 return true;
}


function validateFeed(myForm) {
	if(myForm.formname.value=='') {
		alert("Please include your name");
		myForm.formname.focus();
		return false;
	}
	
	if(myForm.formemail.value!='') {
		var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
		if (!myForm.formemail.value.match(re)) {
			alert("Please include a valid email address");
			myForm.formemail.focus();
			return false;
		}
	} else {
		alert("Please include a valid email address");
		myForm.frmemail.focus();
		return false;
	}
	
	if(myForm.formlocation.value=='') {
		alert("Please include your venue location");
		myForm.formlocation.focus();
		return false;
	}
	
	if(myForm.formcomments.value=='') {
		alert("Your comments are needed");
		myForm.formcomments.focus();
		return false;
	}

	myForm.Submit.disabled=true;
	myForm.Submit.value="please wait";

	 return true;
}

/* 
*  Copyright 2006-2007 Dynamic Site Solutions.
*  Free use of this script is permitted for non-commercial applications,
*  subject to the requirement that this comment block be kept and not be
*  altered.  The data and executable parts of the script may be changed
*  as needed.  Dynamic Site Solutions makes no warranty regarding fitness
*  of use or correct function of the script.  Terms for use of this script
*  in commercial applications may be negotiated; for this, or for other
*  questions, contact "license-info@dynamicsitesolutions.com".
*
*  Script by: Dynamic Site Solutions -- http://www.dynamicsitesolutions.com/
*  Last Updated: 2007-06-17
*/

//IE5+/Win, Firefox, Netscape 6+, Opera 7+, Safari, Konqueror 3, IE5/Mac, iCab 3

var addBookmarkObj = {
  linkText:'Favourites',
  addTextLink:function(parId){
    var a=addBookmarkObj.makeLink(parId);
    if(!a) return;
    a.appendChild(document.createTextNode(addBookmarkObj.linkText));
  },
  addImageLink:function(parId,imgPath){
    if(!imgPath || isEmpty(imgPath)) return;
    var a=addBookmarkObj.makeLink(parId);
    if(!a) return;
    var img = document.createElement('img');
    img.title = img.alt = addBookmarkObj.linkText;
    img.src = imgPath;
    a.appendChild(img);
  },
  makeLink:function(parId) {
    if(!document.getElementById || !document.createTextNode) return null;
    parId=((typeof(parId)=='string')&&!isEmpty(parId))
      ?parId:'addBookmarkContainer';
    var cont=document.getElementById(parId);
    if(!cont) return null;
    var a=document.createElement('a');
    a.href=location.href;
    if(window.opera) {
      a.rel='sidebar'; // this makes it work in Opera 7+
    } else {
      // this doesn't work in Opera 7+ if the link has an onclick handler,
      // so we only add it if the browser isn't Opera.
      a.onclick=function() {
        addBookmarkObj.exec(this.href,this.title);
        return false;
      }
    }
    a.title=document.title;
    return cont.appendChild(a);
  },
  exec:function(url, title) {
    // user agent sniffing is bad in general, but this is one of the times 
    // when it's really necessary
    var ua=navigator.userAgent.toLowerCase();
    var isKonq=(ua.indexOf('konqueror')!=-1);
    var isSafari=(ua.indexOf('webkit')!=-1);
    var isMac=(ua.indexOf('mac')!=-1);
    var buttonStr=isMac?'Command/Cmd':'CTRL';

    if(window.external && (!document.createTextNode ||
      (typeof(window.external.AddFavorite)=='unknown'))) {
        // IE4/Win generates an error when you
        // execute "typeof(window.external.AddFavorite)"
        // In IE7 the page must be from a web server, not directly from a local 
        // file system, otherwise, you will get a permission denied error.
        window.external.AddFavorite(url, title); // IE/Win
    } else if(isKonq) {
      alert('You need to press CTRL + B to bookmark our site.');
    } else if(window.opera) {
      void(0); // do nothing here (Opera 7+)
    } else if(window.home || isSafari) { // Firefox, Netscape, Safari, iCab
      alert('You need to press '+buttonStr+' + D to bookmark our site.');
    } else if(!window.print || isMac) { // IE5/Mac and Safari 1.0
      alert('You need to press Command/Cmd + D to bookmark our site.');    
    } else {
      alert('In order to bookmark this site you need to do so manually '+
        'through your browser.');
    }
  }
}

function isEmpty(s){return ((s=='')||/^\s*$/.test(s));}

function dss_addEvent(el,etype,fn) {
  if(el.addEventListener && (!window.opera || opera.version) &&
  (etype!='load')) {
    el.addEventListener(etype,fn,false);
  } else if(el.attachEvent) {
    el.attachEvent('on'+etype,fn);
  } else {
    if(typeof(fn) != "function") return;
    if(typeof(window.earlyNS4)=='undefined') {
      // to prevent this function from crashing Netscape versions before 4.02
      window.earlyNS4=((navigator.appName.toLowerCase()=='netscape')&&
      (parseFloat(navigator.appVersion)<4.02)&&document.layers);
    }
    if((typeof(el['on'+etype])=="function")&&!window.earlyNS4) {
      var tempFunc = el['on'+etype];
      el['on'+etype]=function(e){
        var a=tempFunc(e),b=fn(e);
        a=(typeof(a)=='undefined')?true:a;
        b=(typeof(b)=='undefined')?true:b;
        return (a&&b);
      }
    } else {
      el['on'+etype]=fn;
    }
  }
}

dss_addEvent(window,'load',addBookmarkObj.addTextLink);

function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
