























































function sendFriend() {open('mailFriendForm.cfm','sendFriend','scrollbars=no,width=325,height=300,resize=no','');}

function roundNumber(num, dec) {
	var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
	return result;
}

var state = 0;
function disableButton(btn,theForm)
{
   if(state ==0)
   {
   	var name = btn.name;
   	var value = btn.value;
	btn.disabled = true;
	eval('document.'+theForm+'.submit();');
	state=1;
	return false;
    }
    else
    {
    	return false;
    }

}


function popUpWin(theLink,s,w,h,r) {
open(theLink,'','scrollbars='+s+',width='+w+',height='+h+',resize='+r,'');
}


function switchDiv(div_id,visibility)
{
  var style_sheet = getStyleObject(div_id);
  if (style_sheet)
  {
    changeObjectVisibility(div_id, visibility);
    return false;
  }
  else 
  {
    alert('This feature only works if your browser supports DHTML');
  }
  
} 


function getStyleObject(objectId) {

  if(document.getElementById && document.getElementById(objectId)) {
        return document.getElementById(objectId).style;
   }
   else if (document.all && document.all(objectId)) {  
        return document.all(objectId).style;
   } 
   else if (document.layers && document.layers[objectId]) { 
        return document.layers[objectId];
   } else {
        return false;
   }
} 

//get object id
function getObjectId(objectId) {

  if(document.getElementById && document.getElementById(objectId)) {
        return document.getElementById(objectId);
   }
   else if (document.all && document.all(objectId)) {  
        return document.all(objectId);
   } 
   else if (document.layers && document.layers[objectId]) { 
        return document.layers[objectId];
   } else {
        return false;
   }
} 


function changeObjectVisibility(objectId, newVisibility) {

    var styleObject = getStyleObject(objectId);

    if (styleObject) {
        styleObject.visibility = newVisibility;
        return true;
    } else {
        return false;
    }
} 

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function random_imglink(){

  var myimages=new Array()
  var myLinks=new Array()



 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 myimages[1]="75.jpg"
myLinks[1]="http://www.poweranime.com/index2.cfm?pageAction=itemDetails&itemID=34749"
 
 
 

var ry=0;

while (ry==0) {
  var ry=Math.floor(Math.random()*myimages.length)
}
     document.write('<a href="'+myLinks[ry]+'"><img src="images/banners/'+myimages[ry]+'" border=0 width="650" height="250"></a>')
}


function random_imgTablelink(){

  var myimages=new Array()
  var mynames=new Array()
  var myLinks=new Array()



 
 
 
 
 
 myimages[1]="40.jpg"
myLinks[1]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=1410&catId=0"
mynames[1]="Kirby"
 myimages[2]="28.jpg"
myLinks[2]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=1439"
mynames[2]="Haruhi Suzumiya"
 myimages[3]="27.jpg"
myLinks[3]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=1"
mynames[3]="Dragonball Z/GT/Kai"
 myimages[4]="26.jpg"
myLinks[4]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=1844"
mynames[4]="Reborn!"
 myimages[5]="25.jpg"
myLinks[5]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=3191"
mynames[5]="K-On"
 myimages[6]="24.jpg"
myLinks[6]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=5"
mynames[6]="Street Fighter"
 myimages[7]="23.jpg"
myLinks[7]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=596"
mynames[7]="Bleach"
 myimages[8]="22.jpg"
myLinks[8]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=2173"
mynames[8]="Gurren Lagann"
 myimages[9]="21.jpg"
myLinks[9]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=2284"
mynames[9]="Soul Eater"
 myimages[10]="20.jpg"
myLinks[10]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=2225"
mynames[10]="Lucky Star"
 myimages[11]="19.jpg"
myLinks[11]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=1582"
mynames[11]="D. Gray Man"
 myimages[12]="18.jpg"
myLinks[12]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=408"
mynames[12]="One Piece"
 myimages[13]="17.jpg"
myLinks[13]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=365"
mynames[13]="Final Fantasy"
 myimages[14]="16.jpg"
myLinks[14]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=1313"
mynames[14]="Mario Bros."
 myimages[15]="15.jpg"
myLinks[15]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=355"
mynames[15]="Pokemon"
 
 
 
 

var ryCtr=1;
var strHolder = new Array()

 while (ryCtr<9){

 var ry=0;

 while (ry==0) {
   var ry=Math.floor(Math.random()*myimages.length)

   for ( var i=1, len=strHolder.length; i<len; ++i ){
     if (myimages[ry]==strHolder[i]){
      ry=0;
     }
    }
   
 }

 if (ryCtr==5){ document.write('</tr><tr>'); }
 document.write('<td align="center"><a href="'+myLinks[ry]+'"><img src="http://www.poweranime.com/images/banners/'+myimages[ry]+'" border=0 width="150" height="162"><br>'+ mynames[ry]+'</a></td>')

 strHolder[ryCtr] = myimages[ry];
 ryCtr = ryCtr+1;
}
}


function random_imgTitlelink(){

  var myimages=new Array()
  var mynames=new Array()
  var myLinks=new Array()



 myimages[1]="79.jpg"
myLinks[1]="http://www.poweranime.com/index2.cfm?pageAction=itemDetails&itemID=34747"
mynames[1]="Xtreme Ikkitousen"
 myimages[2]="78.jpg"
myLinks[2]="http://www.poweranime.com/index2.cfm?pageAction=itemDetails&itemID=34740"
mynames[2]="black rock shooter"
 myimages[3]="77.jpg"
myLinks[3]="http://www.poweranime.com/index2.cfm?pageAction=itemDetails&itemID=34749"
mynames[3]="VN02 Vocaloid"
 myimages[4]="58.jpg"
myLinks[4]="http://www.poweranime.com/index2.cfm?pageAction=itemDetails&itemID=34096"
mynames[4]="Gurren Ichiban Kuji 4"
 myimages[5]="56.jpg"
myLinks[5]="http://www.poweranime.com/index2.cfm?pageAction=itemDetails&itemID=34096"
mynames[5]="Gurren Ichiban Kuji 2"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

var ry=0;

while (ry==0) {
  var ry=Math.floor(Math.random()*myimages.length)
}
     document.write('<a href="'+myLinks[ry]+'"><img src="http://www.poweranime.com/images/banners/'+myimages[ry]+'" border=0 width="190" height="235"></a>')
}


function random_imgThinlink(){

  var myimages=new Array()
  var myLinks=new Array()



 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 myimages[1]="76.jpg"
myLinks[1]="http://www.poweranime.com/index2.cfm?pageAction=itemDetails&itemID=34749"
 myimages[2]="59.jpg"
myLinks[2]="http://www.poweranime.com/index2.cfm?pageAction=pointsOverview"
 myimages[3]="45.jpg"
myLinks[3]="http://www.poweranime.com/index2.cfm?pageAction=shopSearch&shopAnimeId=1350&catId=0"

var ry=0;

while (ry==0) {
  var ry=Math.floor(Math.random()*myimages.length)
}
     document.write('<a href="'+myLinks[ry]+'"><img src="images/banners/'+myimages[ry]+'" border=0 width="600" height="50"></a>')
}
