function ClanRoster_PreviewName() {
	var cname 		= document.getElementById("cname").value;
	var rank 		= document.getElementById("namepreview_rank").value;
	var namelimit	= document.getElementById("namepreview_namelimit").value;
	frames['namepreview'].location.href = "modules.php?name=Clan_Roster&op=NamePreview&cname=" + cname + "&rank=" + rank;
	
	var charl = document.getElementById("name_charsleft");
	charl.innerHTML = namelimit - cname.length;
}

function ClanRoster_PreviewNameCode() {
	var cname 		= document.getElementById("cname").value;
	var rank 		= document.getElementById("namepreview_rank").value;
	frames['namepreviewcode'].location.href = "modules.php?name=Clan_Roster&op=NamePreviewCode&cname=" + cname + "&rank=" + rank;
}


function ClanRoster_Validate() {
		
}



function TrialRegister_PreviewName() {
	var cname 		= document.getElementById("cname").value;
	var rank 		= document.getElementById("namepreview_rank").value;
	var namelimit	= document.getElementById("namepreview_namelimit").value;
	frames['namepreview'].location.href = "modules.php?name=Trial_Register&op=NamePreview&cname=" + cname + "&rank=" + rank;
	
	var charl = document.getElementById("name_charsleft");
	charl.innerHTML = namelimit - cname.length;
}

function TrialRegister_PreviewNameCode() {
	var cname 		= document.getElementById("cname").value;
	var rank 		= document.getElementById("namepreview_rank").value;
	frames['namepreviewcode'].location.href = "modules.php?name=Trial_Register&op=NamePreviewCode&cname=" + cname + "&rank=" + rank;
}


function TrialRegister_Validate() {
		
}



//Script created by Jim Young (www.requestcode.com)
//Submitted to JavaScript Kit (http://javascriptkit.com)
//Visit http://javascriptkit.com for this script

// ::NOTE::need to set tip array from the module
           
     function showtip(current,e,num)
        {
         if (document.layers) // Netscape 4.0+
            {
             theString="<DIV CLASS='ttip'>"+tip[num]+"</DIV>"
             document.tooltip.document.write(theString)
             document.tooltip.document.close()
             document.tooltip.left=tempX+15
             document.tooltip.top=tempY+15
             document.tooltip.visibility="show"
            }
         else
           {
            if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
              {
               elm=document.getElementById("tooltip")
               elml=current
               elm.innerHTML=tip[num]
               elm.style.height=elml.style.height
               elm.style.left=parseInt(tempX+15)
			   elm.style.top=parseInt(tempY+15)
               elm.style.visibility = "visible"
              }
           }
        }
function hidetip(){
if (document.layers) // Netscape 4.0+
   {
    document.tooltip.visibility="hidden"
   }
else
  {
   if(document.getElementById) // Netscape 6.0+ and Internet Explorer 5.0+
     {
      elm.style.visibility="hidden"
     }
  } 
}

var IE_coor = document.all?true:false;
if (!IE_coor) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
	if (IE_coor) { // grab the x-y pos.s if browser is IE
		tempX = event.clientX + document.body.scrollLeft;
		tempY = event.clientY + document.body.scrollTop;
	}
	else {  // grab the x-y pos.s if browser is NS
		tempX = e.pageX;
		tempY = e.pageY;
	}  
	if (tempX < 0){tempX = 0;}
	if (tempY < 0){tempY = 0;} 
	return true;
}