<!--

//////////////////////////////////////////////////////////
/// this is for the male / female link rollover 
///////////////////////////////////////////////////////

if (document.images)
   {
     image1= new Image(70,58);
     image1.src="/images/female_2.jpg";
	 image2= new Image(70,58);
     image2.src="/images/femaleON_2.jpg";  
	 image3= new Image(70,58);
     image3.src="/images/male_2.jpg";
	 image4= new Image(70,58);
     image4.src="/images/maleON_2.jpg";
 }

function change1(picName,imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + ".src");
      document[picName].src= imgOn;
    }
 }

////////////////////////////////////////////////////////

function showIt(id){
var d = document.getElementById(id);
if (id = "shop"){
d.style.visibility = 'visible';
 }
}

function hideIt(id){
var d = document.getElementById(id);
if (id= "shop"){
d.style.visibility = 'hidden';
 }
}

//function showPrice(value){
//var d = document.getElementById('shirt-price');
//d.innerHTML = "$"+value;
// }

function switchShirtImage(name){
 var d = document.getElementById('shirt-image');
 d.src = name.src;
  }

 
function validateSendToForm(){

var str="";

if (document.getElementById('name').value == "") {
    str += " - Name\n";
    }

if (document.getElementById('email').value == "") {
   str += " -  Email Address\n";
    }
		
var textField = document.getElementById('email');

if (!/^[\w\.\-]+@([\w\-]+\.)+[a-zA-Z]+$/.test(textField.value)){
   str += " - A valid Email Address - C'mon!!\n";
    }
		
		
if (str != "") {
    str = "You must enter the following information:\n" + str;
    alert(str);
    return false;
    } else {
    return true;
   }
   
}

////////////////////////////////////////////////////////////////////
function validateAddShirtForm(){

var str="";

if (document.getElementById('shirt_color_id').value == "") {
   str += " - Shirt Color\n";
    }

var shirt_size = false;
var shirt_size_id = document.add_shirt_form.shirt_size_id;

for (i=0;i<shirt_size_id.length;i++){
if (shirt_size_id[i].checked==true){
shirt_size = true;
 }
}

if(shirt_size == false) {
   str += " - Shirt Size\n";
    }

if (str != "") {
    str = "You must enter the following information:\n\n" + str;
    alert(str);
    return false;
    } else {
    return true;
   }
}
/////////////////////////////////////////////////////////////////
 
//-->

