function random_image(myArray){
    max_index=myArray.length-1;
	pic_index=Math.round(Math.random()*max_index);
	document.write('<img src="');
	document.write(myArray[pic_index]);
	document.write('" vspace="10" border="0">');
//    document.write(myArray[pic_index]);
//    document.write(max_index);
//    setTimeout("random_image()",3*1000,myArray);
}

//function change_id_color(myArray){
  function change_id_color(){

	var myArray=new Array();
	myArray[0]="#000000";
	myArray[1]="#0000FF";
	myArray[2]="FFFFFF";
	myArray[3]="FFFF00";

	var backArray=new Array();
	backArray[0]="#999999";
	backArray[1]="#FFCC00";
	backArray[2]="CCCCCC";
	backArray[3]="0000FF";

        max_index=myArray.length-1;
	color_index=Math.round(Math.random()*max_index);
        if(navigator.appName=="Netscape"){
         return;
//	 document.changer.color=myArray[color_index];
//	 document.changer.fontSize='14pt';
//       document.changer.backgroundColor=backArray[color_index];
        }
        if(navigator.appName=="Microsoft Internet Explorer"){
	 document.all.changer.style.color=myArray[color_index];
	 document.all.changer.style.fontSize='12pt';
         document.all.changer.style.backgroundColor=backArray[color_index];
        }
        
//    setTimeout("change_id_color()",3*100,myArray);
    setTimeout("change_id_color()",3*100);
}
/*
         browserName = navigator.appName;
         browserVer = parseInt(navigator.appVersion);
             if (browserName == "Netscape" && browserVer >= 3) version = "n3";
             else version = "n3"; 
             if (version == "n3") {
*/
function validForm(orderForm){
   if(orderForm.F02_Family.value==''){
     alert("You must enter Your Family");
     orderForm.F02_Family.focus();
     return false;
   }
   if(orderForm.F04_Address.value==''){
     alert("You must enter Your Address");
     orderForm.F04_Address.focus();
     return false;
   }
   if(orderForm.F05_City.value==''){
     alert("You must enter Your City");
     orderForm.F05_City.focus();
     return false;
   }
   if(orderForm.F08_Country.selectedIndex==0){
     alert("You must select Your Country");
     orderForm.F08_Country.focus();
     return false;
   }

   paymentMethod=-1;
   for(i=0; i<orderForm.F12_Payment_method.length;i++){
     if(orderForm.F12_Payment_method[i].checked){
       paymentMethod=i;
     }
   }
   if(paymentMethod==-1){
     alert("You must select a Payment Method");
     orderForm.F12_Payment_method[0].focus();
     return false;
   }

   if(orderForm.F11_Pl_Name.value==''){
     alert("You must enter the Players Name");
     orderForm.F11_Pl_Name.focus();
     return false;
   }
   if(orderForm.F13_Pct_Size.selectedIndex==0){
     alert("You must select the size");
     orderForm.F13_Pct_Size.focus();
     return false;
   }

   return true;
}

// var counter is for image_show() function
        var counter=0;

function image_show(){
	var showArray=new Array();
	showArray[0]="pictures/posters/Aebischer4.jpg";
	showArray[1]="pictures/berezin.jpg";
	showArray[2]="pictures/Koivu.jpg";
	showArray[3]="pictures/Lemieux.jpg";
	showArray[4]="pictures/posters/Aebischer1.jpg";
	showArray[5]="pictures/posters/Aebischer2.jpg";
	showArray[6]="pictures/posters/Aebischer3.jpg";
//	showArray[7]="pictures/posters/Aebischer4.jpg";
//	showArray[8]="pictures/rotate/DEL_champion.jpg";
//	showArray[9]="pictures/rotate/NHL_stanley.jpg";
//	showArray[10]="pictures/rotate/250Sundin-Irbe_DA.jpg";
//	showArray[11]="pictures/rotate/Brind_Amour-Larionov_IHA.jpg";
//	showArray[12]="pictures/rotate/Team_jubo_1_IHA.jpg";
//	showArray[13]="pictures/rotate/Yzer-daughter_Scup_IHA.jpg";
//	showArray[14]="pictures/rotate/Irbe_shoots_puck_IHA.jpg";
//	showArray[15]="pictures/rotate/Hasek_jumps_IHA.jpg";
//	showArray[14]="pictures/rotate/Federov_hit_IHA.jpg";
//	showArray[15]="pictures/rotate/201_IHA-BJ.jpg";
    if(document.images){  
        max_index=showArray.length;
        downloaded_pic=new Image;
        downloaded_pic.src=showArray[counter];
        if(document.show_pic.complete && downloaded_pic.complete){
          document.show_pic.src=downloaded_pic.src;
          counter++;
        }
        if(counter==max_index) counter=0;
        setTimeout("image_show()",3*1000);
    }else{
        max_index=showArray.length-1;
     	pic_index=Math.round(Math.random()*max_index);
        document.show_pic.src=showArray[pic_index];
    }
}
