function toggle2(showHideDiv, switchTextDiv) {
	var ele = document.getElementById(showHideDiv);
	var text = document.getElementById(switchTextDiv);
	if(ele.style.display == "block") {
    		ele.style.display = "none";
		text.innerHTML = "Show";
  	}
	else {
		ele.style.display = "block";
		text.innerHTML = "Hide";
	}
}


function help (page) {
	W1=window.open(page,'help','resizable=no,width=320,height=200');
	W1.focus();
	}
	
function help2 (page) {
	W1=window.open(page,'help','resizable,width=320,height=240');
	W1.focus();
	}

function fanclub (page) {
	W1=window.open(page,'fanclub','resizable=no,toolbar=no,scrollbars=yes,width=718,height=550');
	W1.focus();
	}
	
function ShowMe(picURL){
newWindow=window.open('picURL','newWin','toolbar=no,width=350,height=270')
//newWindow.document.write('<html><head><\/head><body topmargin="0" leftmargin="0"><img src="'+picURL+'"><\/body><\/html>')
newWindow.focus()
}

var doPopUpX = (screen.width/2)-150;
var doPopUpY = (screen.height/2)-200;
var pos = "left=150,top=100";

function doPopUp(url,att){
doPopUpWindow = window.open(url,"pics",att+pos);
}
function UpdateChat() { 
window.frames["DivMessages"].document.location.reload(); 
window.setTimeOut("UpdateChat()", 3000); 
}
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_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 TeclaalfaUnder(e)
 {  
  if (document.all) // Internet Explorer
   var teclaalfa = event.keyCode;
  else if(document.layers) // Nestcape
   var teclaalfa = e.which;
   if ((teclaalfa > 47 && teclaalfa < 58) || (teclaalfa > 64 && teclaalfa < 91) || (teclaalfa > 96 && teclaalfa < 123) || (teclaalfa == 95)) // numeros de 0 a 9, letras de Aa a Zz
    return true;
   else
    {
     //if (teclaalfa != 8) // backspace
     // event.keyCode = 0;
    // else
      return true;
    }
 }


function Tecla(e)
 {  
  if (document.all) // Internet Explorer
   var tecla = event.keyCode;
  else if(document.layers) // Nestcape
   var tecla = e.which;
   if (tecla > 47 && tecla < 58) // numeros de 0 a 9
    return true;
   else
    {
     if (tecla != 8) // backspace
      event.keyCode = 0;
     else
      return true;
    }
 }

function Teclaalfa(e)
 {  
  if (document.all) // Internet Explorer
   var teclaalfa = event.keyCode;
  else if(document.layers) // Nestcape
   var teclaalfa = e.which;
   if ((teclaalfa > 47 && teclaalfa < 58) || (teclaalfa > 64 && teclaalfa < 91) || (teclaalfa > 96 && teclaalfa < 123)) // numeros de 0 a 9, letras de Aa a Zz
    return true;
   else
    {
     //if (teclaalfa != 8) // backspace
      //event.keyCode = 0;
    // else
      return true;
    }
 }

function TeclaAspas(e) {
			if (navigator.userAgent.indexOf("MSIE")!=-1)
				var tecla = event.keyCode;
			else if(navigator.userAgent.indexOf("Netscape") || navigator.userAgent.indexOf("Firefox")!=-1)
				var tecla = e.which;
		
			if ((tecla != 34 && tecla != 39) || (tecla == 0)) // se não for " ou '
		    	return true;
		    else {
		    	if (tecla != 8) // backspace
					if (navigator.userAgent.indexOf("MSIE")!=-1)
						event.keyCode = 0;
					else if(navigator.userAgent.indexOf("Netscape") || navigator.userAgent.indexOf("Firefox")!=-1)
						return false;
			    else
			    	return true;
	    }
}


