// JavaScript Document
// JavaScript Document
var aTmpTitle = ""; 
function  Point(x,y) 
{ 
    this.x  =  x;  this.y  =  y; 
} 
  
//Get  the  mouse  position 
	function  getMouseLoc(e)  
	{ 
		var  IE  =  document.all?true:false;  //Test  to  see  if  IE 
		if  (!IE)  document.captureEvents(Event.MOUSEMOVE);  //If  not  IE 
	  
		if  (IE)  {  
		mouseLocation.x  =  event.clientX  +  document.body.scrollLeft; 
		mouseLocation.y  =  event.clientY  +  document.body.scrollTop; 
		}  else  {    //  grab  the  x-y  pos.s  if  browser  is  NS 
		mouseLocation.x  =  e.pageX; 
		mouseLocation.y  =  e.pageY; 
		}    
		//  catch  possible  negative  values  
		if  (mouseLocation.x  <  0){mouseLocation.x  =  0} 
		if  (mouseLocation.y  <  0){mouseLocation.y  =  0}    
		positionDiv(); 
		return  true; 
	} 
  
	function  positionDiv() 
	{    
		//Set  the  position  of  the  hidden  div 
		document.getElementById('overdiv').style.top  =  (mouseLocation.y  +  10)  +  "px"; 
		document.getElementById('overdiv').style.left  =  (mouseLocation.x  +  10)  +"px"; 
		document.getElementById('overdiv').style.position  =  "absolute";    
	} 
	  
	function showhiddendiv(mylink) 
	{ 
		mouseLocation  =  new  Point(0,0); 
		document.onmousemove  =  getMouseLoc; 
		document.getElementById('overdiv').style.display = 'block'; 
		var linkdiv = document.getElementById('hiddendiv'); 
		var linktitle = document.getElementById(mylink); 
		linkdiv.innerHTML=linktitle.title; 
		aTmpTitle = linktitle.title; 
		linktitle.title = ''; 
	} 
  
	function hiddendiv(mylink) 
	{ 
		var linktitle = document.getElementById(mylink); 
		linktitle.title = aTmpTitle; 
		document.getElementById('overdiv').style.display = 'none'; 
	} 
	function LevelCalculate(){
	 var htmlcharclass = document.getElementById("hs_charclass");
	 var htmlslevel = document.getElementById("hs_slevel");
	 var htmlelevel = document.getElementById("hs_elevel");
	 var charclass;
	 var slevel=htmlslevel.options[htmlslevel.selectedIndex].value,elevel=htmlelevel.options[htmlelevel.selectedIndex].value;
	 if(slevel==""||elevel=="") return;
	 //if(slevel>elevel)return;
	 if(htmlcharclass==null) charclass="";
	 else charclass=htmlcharclass.options[htmlcharclass.selectedIndex].value;
	 location.href="wow-powerleveling.php?slevel="+slevel+"&elevel="+elevel;
	}

	function popup(mylink, windowname)
	{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, windowname, 'width=800,height=400,scrollbars=yes');
	return false;
	}

	function checkrequired(which) {
	var acceptcheckbox=document.form2.acceptcheckbox;
	var agreement=document.form2.agreement;
	
	var pass=true;
	
	
	if (!acceptcheckbox.checked) {
		pass=false;
	}
	
	if (!pass) {
	alert("Before continuing, please indicate that you agree to the terms and conditions by clicking the checkbox below.");
	return false;
	}
	else {
	
	
		document.forms.form2.action = "wow_selectserver.php";
		document.forms.form2.submit();
		return true;
	
	}
	
	}
<!--
	function pviiClassNew(obj, new_style) { //v2.7 by PVII
	  obj.className=new_style;
	}

<!--
	function targetOpener(mylink, closeme, closeonly)
	{
	if (! (window.focus && window.opener))return true;
	window.opener.focus();
	if (! closeonly)window.opener.location.href=mylink.href;
	if (closeme)window.close();
	return false;
	}
	function goTo(url)
	{
		window.location.href = url;
	}