/*
	Tony Banks Voiceovers: JavaScript functions 
     	Author:  Enap
     	Date:    November 22, 2007

	
	Functions List: placeIt(), showIt(), setZ(), swapIt, validate

	Function placeIt()
	Purpose:  Display image objects in a certain position on the page
	Variables: 
		object: image object
		x:  left position value
		y:  top position value

	Function showIt()
	Purpose:  Set the visibility property of the image object to visible
	Variables:
		object: image object

	Function setZ()
	Purpose:  Set the z-Index property of the image object
	Variables:
		object:  image object

	Function swapIt()
	Purpose:  Rotate the images by changing their z-Index property
	Variables:
		object:  image object
		z1:  z-Index property of object1
		z2:  z-Index property of object2
		z3:  z-Index property of object3
      
	Function validate(form)
	Purpose:  Allows client to retrieve their voice trax
	Variables: 
		x:   returns the user value for validation
		y:   returns the password value for validation
 */


function placeIt(id,x,y) {
   object=document.getElementById(id);
   object.style.left=x+"px";
   object.style.top=y+"px";
  }

function showIt(id) {
   object=document.getElementById(id);
   object.style.visibility="visible";
  }

function setZ(id,z) {
   object=document.getElementById(id);
   object.style.zIndex=z;
  }

function swapIt(id1,id2,id3) {
   object1=document.getElementById(id1);
   object2=document.getElementById(id2);
   object3=document.getElementById(id3);
   z1=object1.style.zIndex;
   z2=object2.style.zIndex;
   z3=object3.style.zIndex;
   object1.style.zIndex=z3;
   object2.style.zIndex=z1;
   object3.style.zIndex=z2;
  }

function justswapIt(id1,id2) {
   object1=document.getElementById(id1);
   object2=document.getElementById(id2);
   z1=object1.style.zIndex;
   z2=object2.style.zIndex;
   object1.style.zIndex=z2;
   object2.style.zIndex=z1;
  }

function validate(form) {
   x=document.pass.code.value 
   y=document.pass.user.value
    if (x=="" && y==""){
     location.href="";
    }else{ 
    if (x=="" && y==""){
     location.href="";
    }else{
    alert("Incorrect User Name/Password");
 }
}
}






 
