<!--
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_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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function centerPopup(theURL, winName, wdt, hgt) {
	wdt = parseInt(wdt);
	hgt = parseInt(hgt);		
	var centerWidth=(screen.width/2)-(wdt/2);
	var centerHeight=(screen.height/2)-(hgt/2);
	var sWindow = 'height=' + (hgt+30) + ',width=' + (wdt+35) + 'px,scrollbars,status=no,menubar=no,resizable=yes,top=' + centerHeight + ',left=' + centerWidth
	window.open(theURL,winName,sWindow);
	
}
// Over class name functions
function Over(That){
	That.className=That.className + 'Over';
}
function Out(That){
	if (That.className.substr(That.className.length-4,4)=='Over'){
		That.className=That.className.substr(0,That.className.length-4);
	}
}
function getURL(surl) {
	if(surl == '#') {
		alert('Coming soon.');
	}
	else {
		document.location.href=surl;	
	}
}

function deleteNews(id, title, path) {
	if(confirm('Are you sure you want to delete \''+title+'\'?')) {
		document.location.href=path+'system/news_delete.asp?news_id='+id;
		return true;
	}
	else {
		return false;
	}
}


function deleteAnnouncement(id, title, path) {
	if(confirm('Are you sure you want to delete \''+title+'\'?')) {
		document.location.href=path+'system/announcement_delete.asp?announcement_id='+id;
		return true;
	}
	else {
		return false;
	}
}

function deleteCategory(id, title, cat, path) {
	if(confirm('Are you sure you want to delete \''+title+'\'?')) {
		document.location.href=path+'system/category_delete.asp?category_id='+id+'&cat='+cat;
		return true;
	}
	else {
		return false;
	}
}

function deleteFixture(id, title, path) {
	if(confirm('Are you sure you want to delete \''+title+'\'?')) {
		document.location.href=path+'system/fixture_delete.asp?fixture_id='+id;
		return true;
	}
	else {
		return false;
	}
}

function break_it_up() {
      // splits form data into multiple textareas, if it exceeds the maximum size limit (102,399 bytes)
      // see http://support.microsoft.com/default.aspx?scid=kb;EN;q273482 for more info
      
      //Set the limit for field size.
      var form_limit = 102399
    
      //Get the value of the large input object.
      var temp_var = new String
      temp_var = document.frmAdd.content_text.value
    
      //If the length of the object is greater than the limit, break it
      //into multiple objects.
      if (temp_var.length > form_limit)
      {
        document.frmAdd.content_text.value = temp_var.substr(0, form_limit)
        temp_var = temp_var.substr(form_limit)
    
        while (temp_var.length > 0)
        {
          var objTextArea = document.createElement("<TEXTAREA style='visibility: hidden'>")
          objTextArea.name = "content_text"
          objTextArea.value = temp_var.substr(0, form_limit)
          document.frmAdd.appendChild(objTextArea)
          
          temp_var = temp_var.substr(form_limit)
        }
      }
}

function Calendar(That, That2) {
	var dlgRslt = window.showModalDialog('../_common/calendar.asp?date='+That.value, '', 'status:no; help:no; dialogHeight:175px; dialogWidth:200px');
	if (dlgRslt != -1 && dlgRslt != null) {
		That.value = dlgRslt;
	}
	if(That2!=null) {
		That2.value = dlgRslt;
	}
}


//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com

var message="Right-click disabled!";

function clickIE4(){
    if (event.button==2){
        alert(message);
        return false;
    }
}

function clickNS4(e){
    if (document.layers||document.getElementById&&!document.all){
        if (e.which==2||e.which==3){
            alert(message);
            return false;
        }
    }
}

if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
}



function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}


function compatModalDialog(url, width, height) {
	if(getInternetExplorerVersion() != -1) {
		window.showModalDialog(url,window,
			"dialogWidth:"+width+"px;dialogHeight:"+height+"px;edge:Raised;center:1;help:0;resizable:1;maximize:1");
	}
	else {
		var left = screen.availWidth/2 - width/2;
		var top = screen.availHeight/2 - height/2;
		document.activeModalWin = window.open(url, "", "width="+width+"px,height="+height+",left="+left+",top="+top);
		window.onfocus = function(){if (document.activeModalWin.closed == false){document.activeModalWin.focus();};};
	}

}

//document.oncontextmenu=new Function("alert(message);return false")

//-->