// JavaScript Document

function mouseover(idv){
if(document.getElementById(idv).className!="menuonn"){
document.getElementById(idv).className="menuon"
}
}
function mouseout(idv){
if(document.getElementById(idv).className=="menuon"){
document.getElementById(idv).className="menuof"
}}

function more1(){
parent.document.location.href="lebanesministry.html";
}
function more2(){
parent.document.location.href="regulatinglaws.html";
}



function clik1(){
parent.document.location.href="Ministry.html";
}
function clik2(){
parent.document.location.href="Minister.html";
}
function clik3(){
parent.document.location.href="Secretgeneral.html";
}
function clik4(){ window.name=-1;
parent.document.location.href="departments.html";
}
function clik5(){
parent.document.location.href="Contactus.html";
}
function clik6(){
parent.document.location.href="MinistryRss.xml";
}
function clik7(){
parent.document.location.href="gallery.html";
}
function menu1(){
parent.document.location.href="holidays.html";
}

function menu2(){
parent.document.location.href="aplicationforms.html";
}
function menu3(){
parent.document.location.href="termsofuse.html";
}

function menu4(){
parent.document.location.href="foreignpolicy.html";
}
function menu5(){
parent.document.location.href="lebanesediplomatic.html";
}
function menu6(){
parent.document.location.href="diplomaticmissions.html";
}
function menu9(){
parent.document.location.href="consulinformat.html";
}
function menu10(){
parent.document.location.href="usefulink.html";
}


function disableEnterKey(e)
{
     var key;

     if(window.event)
          key = window.event.keyCode;     //IE
     else
          key = e.which;     //firefox

     if(key == 13)
          return false;
     else
          return true;
}

function openWindowNew(even)
    {
		var codeTouche=(even.keyCode==0)?even.which:even.keyCode;   
 //alert(codeTouche);
		if(codeTouche == 13 ){
			even.returnValue = false;
			entryNew();
			
		}
		//myKeyword = document.getElementById("keyword").value;
	 } 




var myvall;
var timeO;
var args;
function entryNew() {
var wor = document.getElementById("keyword").value;
		if(wor == ""){
		alert("First you must enter a keyword to search for.");
  		//return false;
		}else{
		//document.location.href="http://89.108.169.233:7001/soft/engV6/searchR.jsp?param="+wor;

		 myvall = document.getElementById('keyword').value;
		 window.name = myvall;
		document.location.href="search.html";
		
		
		
		}

return false;

}

function openFile(id){

if(id=="dept0") window.name=0;
if(id=="dept1") window.name=1;
if(id=="dept2") window.name=2;
if(id=="dept3") window.name=3;
if(id=="dept4") window.name=4;
if(id=="dept5") window.name=5;
if(id=="dept6") window.name=7;
document.location.href="departments.html";

}