
// JavaScript Document
function changeTR(str,img)
{
	if(document.getElementById(str[1]).style.display == "none")
	{
		for (i=0; i<str.length; i++){
			document.getElementById(str[i]).style.display = "block";
		}

	}
	else
	{
		for (i=0; i<str.length; i++){
			document.getElementById(str[i]).style.display = "none";
		}
	}
	changeImg(img)
}

function changeImg(str)
{
	if (document.getElementById(str).src.indexOf("_") == -1)
		document.getElementById(str).src = "images/NARROW_.gif";
	else
		document.getElementById(str).src = "images/NARROW.gif";
}



function validateText(){
	if (document.Survey.Survey.value.length==0)
	alert("C???C? ?IIC? C??OC??E ?C??E");
}


// JavaScript Document
function clearText()
{
	if (document.mailList.EMail.value == "بريدك الإلكتروني")
	document.mailList.EMail.value = "";
}
function putText()
{
	if (document.mailList.EMail.value == "")
		document.mailList.EMail.value = "بريدك الإلكتروني";
}
function verifyEmail()
{
	if(emailParts = document.mailList.EMail.value.match(/(\w+[\w|\.]*\w+)(@\w+[\w|\.]*\w+\.\w{2,3})/))
		return true;
	else
	{
		alert ("أدخل عنوان البريد الإلكتروني الصحيح");
		return false;
	}
}
function clearVoteOption()
{
	document.vote.OptionID.value = "";
}


