/***********************************************
You May Edit the following Menue
***********************************************/

//Contents for menu 1
var menu1=new Array()
var menu2=new Array()
var menu3=new Array()
var menu4=new Array()
//var menu5=new Array()
var menu6=new Array()
var menu7=new Array()
var menu8=new Array()

menu1[0]='<a href="about/about.php"><span style="text-decoration: none">&nbsp; Our Profile </span></a><font face="Times New Roman"></span>'

menu2[0]='<a href="" onmouseover="dropdownmenu(this, event, menu2_0, \'180px\', \'dropmenudiv2\'); clearhidemenu(); doHideMenu=false; return true;" onmouseout="if(doHideMenu == true) hidemenu();" onclick="return false"><span style="text-decoration: none">&nbsp; Temporary Syria </span></a><font face="Times New Roman"></span>'
menu2[1]='<a href="syria/Ancient.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Ancient Syria</span></a>'
menu2[2]='<a href="syria/religion.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Religion in Syria</span></a>'
menu2[3]='<a href="syria/Cities.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Cities &amp; Sites	</span></a>'


menu3[0]='<a href="activities/sch.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Syriana Cruise Handler </span></a><font face="Times New Roman"></span>'
menu3[1]='<a href="activities/DMC.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Syriana DMC </span></a><font face="Times New Roman"></span>'
menu3[2]='<a href="" onclick="return false;" onmouseover="dropdownmenu(this, event, menu3_2, \'120px\', \'dropmenudiv2\'); clearhidemenu(); doHideMenu=false; return true;" onmouseout="if(doHideMenu == true) hidemenu();"><span style="text-decoration: none">&nbsp; Syriana Ground Handler </span></a><font face="Times New Roman"></span>'
menu3[3]='<a href="activities/study.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Syriana Study Abroad </span></a><font face="Times New Roman"></span>'
menu3[4]='<a href="activities/holidays.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Syriana Holidays </span></a><font face="Times New Roman"></span>'
menu3[5]='<a href="activities/business.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp;  Syriana Business Travel </span></a><font face="Times New Roman"></span>'

menu4[0]='<a href="highlights/damascus.php"><span style="text-decoration: none">&nbsp; Damascus </span></a><font face="Times New Roman"></span>'
menu4[1]='<a href="highlights/Aleppo.php"><span style="text-decoration: none">&nbsp; Aleppo</span></a>'
menu4[2]='<a href="highlights/Palmyra.php"><span style="text-decoration: none">&nbsp; Palmyra </span></a>'
menu4[3]='<a href="highlights/Crack_De_Chevaliers.php"><span style="text-decoration: none">&nbsp; Crack de Chevaliers </span></a><font face="Times New Roman"></span>'

//menu5[0]='<a href="products/FlexBillz.html"><span style="text-decoration: none">&nbsp; Damascus </span></a><font face="Times New Roman"></span>'
//menu5[1]='<a href="products/FlexMediator.html"><span style="text-decoration: none">&nbsp; FlexMediator</span></a>'
//menu5[2]='<a href="products/FlexTAP.html"><span style="text-decoration: none">&nbsp; FlexTAP </span></a>'

menu6[0]='<a href="maps/maps.php?map=syria"><span style="text-decoration: none">&nbsp; Map of Syria </span></a><font face="Times New Roman"></span>'
menu6[1]='<a href="maps/maps.php?map=lebanon"><span style="text-decoration: none">&nbsp; Map of Lebanon</span></a>'
menu6[2]='<a href="maps/maps.php?map=jordan"><span style="text-decoration: none">&nbsp; Map of Jordan </span></a>'
menu6[3]='<a href="maps/maps.php?map=Syria Lebanon"><span style="text-decoration: none">&nbsp; Map of Syria & Lebanon </span></a><font face="Times New Roman"></span>'
menu6[4]='<a href="maps/maps.php?map=Syria Jordan"><span style="text-decoration: none">&nbsp; Map of Syria & Jordan</span></a>'
menu6[5]='<a href="maps/maps.php?map=ancient"><span style="text-decoration: none">&nbsp; Ancient Maps </span></a>'

menu7[0]='<a href="usefultips/firsttime.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; First Time in Syria </span></a><font face="Times New Roman"></span>'
menu7[1]='<a href="usefultips/specialplaces.php" onmouseover="hidemenu2()"><span style="text-decoration: none">&nbsp; Special Places</span></a>'
menu7[2]='<a href="" onclick="return false;" onmouseover="dropdownmenu(this, event, menu7_2, \'120px\', \'dropmenudiv2\'); clearhidemenu(); doHideMenu=false; return true;" onmouseout="if(doHideMenu == true) hidemenu();"><span style="text-decoration: none">&nbsp; Travel Tips </span></a>'

menu8[0]='<a href="contact/contactus.php"><span style="text-decoration: none">&nbsp; Our Address </span></a><font face="Times New Roman"></span>'

/********* SUBMENUS *********/
var menu2_0=new Array()
menu2_0[0] = '<a href="syria/general.php"><span style="text-decoration: none">&nbsp; General Information </span></a><font face="Times New Roman"></span>';
menu2_0[1] = '<a href="syria/comm.php"><span style="text-decoration: none">&nbsp; Communications In Syria </span></a><font face="Times New Roman"></span>';
menu2_0[2] = '<a href="syria/famous.php"><span style="text-decoration: none">&nbsp; Famous Syrians </span></a><font face="Times New Roman"></span>';
menu2_0[3] = '<a href="syria/geo.php"><span style="text-decoration: none">&nbsp; Geogrphical Information </span></a><font face="Times New Roman"></span>';
menu2_0[4] = '<a href="syria/howto.php"><span style="text-decoration: none">&nbsp; How To Get To Syria</span></a><font face="Times New Roman"></span>';
menu2_0[5] = '<a href="syria/holidays.php"><span style="text-decoration: none">&nbsp; National Holidays </span></a><font face="Times New Roman"></span>';
var menu3_2=new Array()
menu3_2[0] = '<a href="activities/Groups.php"><span style="text-decoration: none">&nbsp; Groups </span></a><font face="Times New Roman"></span>';
menu3_2[1] = '<a href="activities/FITS.php"><span style="text-decoration: none">&nbsp; FITs </span></a><font face="Times New Roman"></span>';
menu3_2[2] = '<a href="activities/Family-together.php"><span style="text-decoration: none">&nbsp; Family Together </span></a><font face="Times New Roman"></span>';
menu3_2[3] = '<a href="activities/hotels.php"><span style="text-decoration: none">&nbsp; Hotels </span></a><font face="Times New Roman"></span>';
menu3_2[4] = '<a href="activities/transportation.php"><span style="text-decoration: none">&nbsp; Transportation </span></a><font face="Times New Roman"></span>';
menu3_2[5] = '<a href="activities/Guides.php"><span style="text-decoration: none">&nbsp; Guides </span></a><font face="Times New Roman"></span>';
var menu7_2=new Array()
menu7_2[0] = '<a href="usefultips/Visa.php"><span style="text-decoration: none">&nbsp; Visa </span></a><font face="Times New Roman"></span>';
menu7_2[1] = '<a href="usefultips/Arabic_words.php"><span style="text-decoration: none">&nbsp; Arabic Words </span></a><font face="Times New Roman"></span>';
menu7_2[2] = '<a href="usefultips/traditions.php"><span style="text-decoration: none">&nbsp; Traditions </span></a><font face="Times New Roman"></span>';
menu7_2[3] = '<a href="usefultips/Glasswork.php"><span style="text-decoration: none">&nbsp; Glasswork </span></a><font face="Times New Roman"></span>';
menu7_2[4] = '<a href="usefultips/Handcrafts.php"><span style="text-decoration: none">&nbsp; Handcrafts </span></a><font face="Times New Roman"></span>';
menu7_2[5] = '<a href="usefultips/Mosaic.php"><span style="text-decoration: none">&nbsp; Mosaic </span></a><font face="Times New Roman"></span>';
menu7_2[6] = '<a href="usefultips/Textile.php"><span style="text-decoration: none">&nbsp; Textile </span></a><font face="Times New Roman"></span>';
menu7_2[7] = '<a href="usefultips/sweets.php"><span style="text-decoration: none">&nbsp; Sweets </span></a><font face="Times New Roman"></span>';

var menuwidth='180px' //default menu width
var menubgcolor='#A5B979'  //menu bgcolor
var disappeardelay=100  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
var lastSMEvt = null;
var dropmenuobj = null;
var delayhide = null;
var doHideMenu = true;
var hideMain = true;
/*******************************************************/
/////No further editting needed
/*******************************************************/
var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
{
document.write('<div id="dropmenudiv" style="Filter:revealTrans(duration=0.3, transition=12);visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="hideMain = false; clearhidemenu()" onMouseout="hideMain = true; dynamichide(event)"></div>')
document.write('<div id="dropmenudiv2" style="Filter:revealTrans(duration=0.3, transition=12);visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="hideMain = false" onMouseout="doHideMenu = true"></div>')
}

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth, divid){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}


if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
if(divid == null)
	divid = 'dropmenudiv';
else
{
	if(lastSMEvt != null)
		if(lastSMEvt.type == e.type)
			return false;
	lastSMEvt = e;
}
if(ie4)document.all[divid].filters[0].Apply();
obj.visibility=visible
if(ie4)document.all[divid].filters[0].Play();
else if (e.type=="click"){
	if(ie4)document.all[divid].filters[0].Apply();
	obj.visibility=hidden
	if(ie4)document.all[divid].filters[0].Play();
}
return true;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth, divid){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()

clearhidemenu();

if(divid == null || divid == "dropmenudiv")
	dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
else
	dropmenuobj=document.getElementById? document.getElementById(divid) : document.all[divid];

populatemenu(menucontents)

if (ie4||ns6){
w = (divid != null && divid != "dropmenudiv") ? menuwidth : (parseInt(menuwidth) + 30) + "px";
showhide(dropmenuobj.style, e, "visible", "hidden", w, divid)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
menuleftoffset = (divid != null && divid != "dropmenudiv") ? 70 : -15;
menutopoffset = (divid != null && divid != "dropmenudiv") ? -5 : -2;
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+menuleftoffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+menutopoffset+obj.offsetHeight+"px"
dropmenuobj.filters[1000] = "progid:DXImageTransform.Microsoft.Alpha(Opacity=75, FinishOpacity=0, Style=0, StartX=0, FinishX=0, StartY=0, FinishY=0)";
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
hidemenu2();
doHideMenu = false;
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
	if(dropmenuobj != null)
		dropmenuobj.style.visibility="hidden";
if(dropmenuobj != null)
	if(dropmenuobj.id != "dropmenudiv")
	{
		dropmenuobj=document.getElementById("dropmenudiv");
		lastSMEvt = e;
		if(hideMain == true)
			hidemenu(e);
	}
}
}

function hidemenu2()
{
	document.getElementById('dropmenudiv2').style.visibility = "hidden";
	lastSMEvt = null;
}

function delayhidemenu(){
if (ie4||ns6)
	delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (delayhide!=null)
{
	clearTimeout(delayhide)
	delayhide = null;
}
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

function uploadpic(table_imgID,tableID)
{
	var table = document.getElementById(tableID);
	var table_img = document.getElementById(table_imgID);
	table.style.display = (table.style.display == "none") ? "block" : "none";
	table_img.style.display = (table_img.style.display == "block") ? "none" : "block";
}

function Validator(frmname)
{
  this.formobj=document.forms[frmname];
	if(!this.formobj)
	{
	  alert("BUG: couldnot get Form object "+frmname);
		return;
	}
	if(this.formobj.onsubmit)
	{
	 this.formobj.old_onsubmit = this.formobj.onsubmit;
	 this.formobj.onsubmit=null;
	}
	else
	{
	 this.formobj.old_onsubmit = null;
	}
	this.formobj.onsubmit=form_submit_handler;
	this.addValidation = add_validation;
	this.setAddnlValidationFunction=set_addnl_vfunction;
	this.clearAllValidations = clear_all_validations;
}
function set_addnl_vfunction(functionname)
{
  this.formobj.addnlvalidation = functionname;
}
function clear_all_validations()
{
	for(var itr=0;itr < this.formobj.elements.length;itr++)
	{
		this.formobj.elements[itr].validationset = null;
	}
}
function form_submit_handler()
{
	for(var itr=0;itr < this.elements.length;itr++)
	{
		if(this.elements[itr].validationset &&
	   !this.elements[itr].validationset.validate())
		{
		  return false;
		}
	}
	if(this.addnlvalidation)
	{
	  str =" var ret = "+this.addnlvalidation+"()";
	  eval(str);
    if(!ret) return ret;
	}
	return true;
}
function add_validation(itemname,descriptor,errstr)
{
  if(!this.formobj)
	{
	  alert("BUG: the form object is not set properly");
		return;
	}//if
	var itemobj = this.formobj[itemname];
  if(!itemobj)
	{
	  alert("BUG: Couldnot get the input object named: "+itemname);
		return;
	}
	if(!itemobj.validationset)
	{
	  itemobj.validationset = new ValidationSet(itemobj);
	}
  itemobj.validationset.add(descriptor,errstr);
}
function ValidationDesc(inputitem,desc,error)
{
  this.desc=desc;
	this.error=error;
	this.itemobj = inputitem;
	this.validate=vdesc_validate;
}
function vdesc_validate()
{
 if(!V2validateData(this.desc,this.itemobj,this.error))
 {
    this.itemobj.focus();
		return false;
 }
 return true;
}
function ValidationSet(inputitem)
{
    this.vSet=new Array();
	this.add= add_validationdesc;
	this.validate= vset_validate;
	this.itemobj = inputitem;
}
function add_validationdesc(desc,error)
{
  this.vSet[this.vSet.length]= 
	  new ValidationDesc(this.itemobj,desc,error);
}
function vset_validate()
{
   for(var itr=0;itr<this.vSet.length;itr++)
	 {
	   if(!this.vSet[itr].validate())
		 {
		   return false;
		 }
	 }
	 return true;
}
function validateEmailv2(email)
{
// a very simple email validation checking. 
// you can add more complex email checking if it helps 
    if(email.length <= 0)
	{
	  return true;
	}
    var splitted = email.match("^(.+)@(.+)$");
    if(splitted == null) return false;
    if(splitted[1] != null )
    {
      var regexp_user=/^\"?[\w-_\.]*\"?$/;
      if(splitted[1].match(regexp_user) == null) return false;
    }
    if(splitted[2] != null)
    {
      var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
      if(splitted[2].match(regexp_domain) == null) 
      {
	    var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
	    if(splitted[2].match(regexp_ip) == null) return false;
      }// if
      return true;
    }
return false;
}
function V2validateData(strValidateStr,objValue,strError) 
{ 
    var epos = strValidateStr.search("="); 
    var  command  = ""; 
    var  cmdvalue = ""; 
    if(epos >= 0) 
    { 
     command  = strValidateStr.substring(0,epos); 
     cmdvalue = strValidateStr.substr(epos+1); 
    } 
    else 
    { 
     command = strValidateStr; 
    } 
    switch(command) 
    { 
        case "req": 
        case "required": 
         { 
           if(eval(objValue.value.length) == 0) 
           { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.name + " : Required Field"; 
              }//if 
              alert(strError); 
              return false; 
           }//if 
           break;             
         }//case required 
        case "maxlength": 
        case "maxlen": 
          { 
             if(eval(objValue.value.length) >  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.name + " : "+cmdvalue+" characters maximum "; 
               }//if 
               alert(strError + "\n[Current length = " + objValue.value.length + " ]"); 
               return false; 
             }//if 
             break; 
          }//case maxlen 
        case "minlength": 
        case "minlen": 
           { 
             if(eval(objValue.value.length) <  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.name + " : " + cmdvalue + " characters minimum  "; 
               }//if               
               alert(strError + "\n[Current length = " + objValue.value.length + " ]"); 
               return false;                 
             }//if 
             break; 
            }//case minlen 
        case "alnum": 
        case "alphanumeric": 
           { 
              var charpos = objValue.value.search("[^A-Za-z0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
               if(!strError || strError.length ==0) 
                { 
                  strError = objValue.name+": Only alpha-numeric characters allowed "; 
                }//if 
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//case alphanumeric 
        case "num": 
        case "numeric": 
           { 
              var charpos = objValue.value.search("[^0-9]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                if(!strError || strError.length ==0) 
                { 
                  strError = objValue.name+": Only digits allowed "; 
                }//if               
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break;               
           }//numeric 
        case "alphabetic": 
        case "alpha": 
           { 
              var charpos = objValue.value.search("[^A-Za-z]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.name+": Only alphabetic characters allowed "; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 
              break; 
           }//alpha 
		case "alnumhyphen":
			{
              var charpos = objValue.value.search("[^A-Za-z0-9\-_]"); 
              if(objValue.value.length > 0 &&  charpos >= 0) 
              { 
                  if(!strError || strError.length ==0) 
                { 
                  strError = objValue.name+": characters allowed are A-Z,a-z,0-9,- and _"; 
                }//if                             
                alert(strError + "\n [Error character position " + eval(charpos+1)+"]"); 
                return false; 
              }//if 			
			break;
			}
        case "email": 
          { 
               if(!validateEmailv2(objValue.value)) 
               { 
                 if(!strError || strError.length ==0) 
                 { 
                    strError = objValue.name+": Enter a valid Email address "; 
                 }//if                                               
                 alert(strError); 
                 return false; 
               }//if 
           break; 
          }//case email 
        case "lt": 
        case "lessthan": 
         { 
            if(isNaN(objValue.value)) 
            { 
              alert(objValue.name+": Should be a number "); 
              return false; 
            }//if 
            if(eval(objValue.value) >=  eval(cmdvalue)) 
            { 
              if(!strError || strError.length ==0) 
              { 
                strError = objValue.name + " : value should be less than "+ cmdvalue; 
              }//if               
              alert(strError); 
              return false;                 
             }//if             
            break; 
         }//case lessthan 
        case "gt": 
        case "greaterthan": 
         { 
            if(isNaN(objValue.value)) 
            { 
              alert(objValue.name+": Should be a number "); 
              return false; 
            }//if 
             if(eval(objValue.value) <=  eval(cmdvalue)) 
             { 
               if(!strError || strError.length ==0) 
               { 
                 strError = objValue.name + " : value should be greater than "+ cmdvalue; 
               }//if               
               alert(strError); 
               return false;                 
             }//if             
            break; 
         }//case greaterthan 
        case "regexp": 
         { 
		 	if(objValue.value.length > 0)
			{
	            if(!objValue.value.match(cmdvalue)) 
	            { 
	              if(!strError || strError.length ==0) 
	              { 
	                strError = objValue.name+": Invalid characters found "; 
	              }//if                                                               
	              alert(strError); 
	              return false;                   
	            }//if 
			}
           break; 
         }//case regexp 
        case "dontselect": 
         { 
            if(objValue.selectedIndex == null) 
            { 
              alert("BUG: dontselect command for non-select Item"); 
              return false; 
            } 
            if(objValue.selectedIndex == eval(cmdvalue)) 
            { 
             if(!strError || strError.length ==0) 
              { 
              strError = objValue.name+": Please Select one option "; 
              }//if                                                               
              alert(strError); 
              return false;                                   
             } 
             break; 
         }//case dontselect 
    }//switch 
    return true; 
}
