function validate1(){
str = document.getElementById('username1');
if(str.value ==""){
alert("insert username please");
str.focus();
return false;
}
str2 = document.getElementById('password1');
if(str2.value ==""){
alert("insert password please");
str2.focus();
return false;
}
if( document.getElementById('goToAfterLogin') ) {
	document.getElementById('goToAfterLogin').value = parent.window.document.getElementById('goToAfter').value
}
	return true;
}
function validate2(){
str = document.getElementById('username1');
if(str.value ==""){
alert("الرجاء ادخال اسم الدخول على بنت الحلال");
str.focus();
return false;
}
str2 = document.getElementById('password1');
if(str2.value ==""){
alert("الرجاء ادخال كلمة السر ");
str2.focus();
return false;
}
if( document.getElementById('goToAfterLogin') ) {
	document.getElementById('goToAfterLogin').value = parent.window.document.getElementById('goToAfter').value
}
return true;
}