<!--//
function blankStyle(obj){
 style=document.theForm.tstyle.options[document.theForm.tstyle.selectedIndex].value;

	 if(style==""){
	 	thefocus= document.theForm.tstyle; who=1;

		alert("You must select an option. This is not an option");
		thefocus.focus();
	 return;
	 	}
}

//=========================================
function blankSize(obj){
tsize=document.theForm.tsize.options[document.theForm.tsize.selectedIndex].value;

	 	 if(tsize==""){
	 	thefocus= document.theForm.tsize; 
	
		alert("You must select an option. This is not an option");
		thefocus.focus();
	 return;
	 	}
}
//=========================================

function selectColor(){

	 if(document.theForm.tcolor.options[document.theForm.tcolor.selectedIndex].value==""){
		alert("You must select a style, a size and a color.");
	 return;
	 	}	
}
//====================================================

//====================================

function chkForm(who){
	if(who=="tz"){
	err=0;
	msg="";
	 if(document.theForm.tstyle.options[document.theForm.tstyle.selectedIndex].value==""){
	 	msg="select a style\r\n";
	 	thefocus= document.theForm.tstyle;
	 	err=1;
 	}	
 	 if(document.theForm.tsize.options[document.theForm.tsize.selectedIndex].value==""){
		msg=msg+"select a size\r\n";
		thefocus= document.theForm.tsize;
		err=err+1;
 	}
 				
	 if(document.theForm.tcolor.options[document.theForm.tcolor.selectedIndex].value==""){
		msg=msg+"select a color";
		thefocus= document.theForm.tcolor;
		err=err+1;
 	}	
	
 	 if(err!=0){
 	 	
 	 	if(err>1){ 	alert(msg);
 	 							thefocus= document.theForm.tstyle;
 	 						}else{
 	 			alert("You must "+msg);
 	 			}	 			
 	 			
 	 		thefocus.focus();
 	 	return false;
 	 	}
 	}else{//end tz
 	 if((who=="BEBE001")||(who=="BEBE002")){ 
		var swatchval=document.getElementById("selswatch").innerHTML;
 		var bibval=document.getElementById("bibswatch");


 			if(swatchval=="select a pattern"){
 				alert('You must select a pattern item\n Click the "Select Patern" tab');
 			return false;
 			}else{
				bibval.value=swatchval; 
			}
		}
 	 }	// who else		
}//end funtion


//==================================== Collaping text
function show(id)
{//alert(id);
	if(id=="tz"){ 
		innonesum='click for Tz info  [+]';
		indissum='close Tz info [-]';
		}
	if(id=="info"){ 
		innonesum='full summary [+]';
		indissum='close full summary [-]';
		}
		
el = document.getElementById(id);
if (el.style.display == 'none')
{
el.style.display = '';
el = document.getElementById('more' + id);
el.innerHTML = indissum;
} else {
el.style.display = 'none';
el = document.getElementById('more' + id);
el.innerHTML = innonesum;
}
}
//-->
