
// Nannette Thacker http://www.shiningstar.net
function confirmAction()
{
var agree = confirm("Are you sure you want to delete this pages ?");
if (agree)
	return true ;
else
	return false ;
}

 // load htmlarea  // skripta e htmlArea
_editor_url = "htmlarea/";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// 

// per fushen e kerkimit nese eshte e zbrazet
function checkSearch(){
  if (document.search.searchNews.value == ""){
     alert("Please fill the search field !")
  return false
  }else{
  return true
  }	
}

function checkNwsSubscription(){
  if (document.newsletter.username.value == ""){
     alert("Please fill the username field !")
  return false
  }else{
  return true
  }	
}

function checkUserLogin(){
  if (document.userLogin.username.value == ""){
     alert("Please fill your username !")
  return false
  }else if (document.userLogin.password.value == ""){
     alert("Please fill your password !")
  return false
  }else{
  return true
  }	
}
