function ValidateIt()
{
var filter =/^.+\@.+\.+..{1,2}$/ ;
if (document.f1.Email.value=="" || !filter.test(document.f1.Email.value))
{
alert('Please enter a valide Email Address!');
document.f1.Email.focus();
return;
}
if (document.f1.Password.value=="")
{
alert('Please enter your Password!');
document.f1.Password.focus();
return;
}
document.f1.submit();
}

 function reset()
{ (document.form1.reset())
}
var PanelSlideOuta = "";
function revelerCacherSousNava(LienId){
	var Sub = document.getElementById (LienId+"_subs");
		if(Sub.style.display == "none"){
			document.getElementById (LienId).className= "award_arrowon";
			Sub.style.display = "";
			if (PanelSlideOuta != "") revelerCacherSousNava(PanelSlideOuta);
			PanelSlideOuta = LienId;
			}
		else
		{
			document.getElementById (LienId).className= "award_arrow";
			Sub.style.display = "none";
			PanelSlideOuta = "";
		}
	}
	
function changeimg(imgname,color){
  document.getElementById('selected-img').src= imgname;
  document.getElementById('color').innerHTML =color;
  document.getElementById('hiddencolor').value=color;
}	

var oldsize='';
function selectsize(id)
{

	if(oldsize)
	{
		document.getElementById ('size'+oldsize).className= "";
	}
	document.getElementById ('size'+id).className= "selected";
	document.getElementById('size').innerHTML =id;
	 document.getElementById('hiddensize').value=id;
	
	oldsize=id;

}
