var testresults

function run(url) {
    setTimeout("top.location.href='" + url + "'",3000);
}

function checkall(){
var i=0;
	for(i=0;i<document.emails.elements.length;i++){
		document.emails.elements[i].checked=true;
	}
}

function uncheckall(){
var i=0;
	for(i=0;i<document.emails.elements.length;i++){
		document.emails.elements[i].checked=false;
	}
}

function kiemtra(){
if(document.all.boxkiemtra.checked) checkall();
else uncheckall();
}

function checkemail(ob){
var str=ob.value
var filter=/^.+@.+\..{2,4}$/
if (filter.test(str))
testresults=true
else{
alert('ERROR: "' + ob.value + '"\nالايميل غير صحيح\nThis email address is not correct')
testresults=false
ob.style.backgroundColor = 'orange';
ob.select()
}
return (testresults)
}

function mota(x){
var follow=x
if (document.all){

	curscroll.style.visibility="visible"
	curscroll.innerHTML='<table ID=\"sample\" border=0 cellspacing=1 bgcolor=black><tr><td width=100% bgcolor=lightyellow>' + x + '</td></tr></table>'
	//IF YOU WANT TO ADD FADING EFFECT FOR TOOLTIPS, PLEASE REMOVE '//'. HAVE FUN
	//document.all.sample.style.filter = 'alpha(opacity=80);'
}
curscroll.style.left=document.body.scrollLeft+event.clientX-30
curscroll.style.top=document.body.scrollTop+event.clientY+30
}

function tatmota(){
	curscroll.style.visibility="hidden"
}
