function highlightLinks(obj) {
   var linkList = document.getElementById("navigationDiv").getElementsByTagName("a");
   for (i = 0; i < linkList.length; i++) {
      linkList[i].className = "";
   }
   obj.className = "selected";
   
}


function toggle(targetId) {

 var divList = document.getElementById("div_top").getElementsByTagName("div");
   for (i = 0; i < divList.length; i++) {
      divList[i].style.display = "none";
   }

target = document.getElementById(targetId);
if (target.style.display == "none"){
target.style.display="";
} else {
target.style.display="none";
}
}

function myPopup2() {
window.open( "under_construction.html", "myWindow", "status = 1, height = 300, width = 300, resizable = 0" );
}





function check_newclient_form()
{
if(string_value2(document.newclient_form.clientname,2,55,'Name','Y') == false) { return false }
if(email(document.newclient_form.email,5,55,'Email','Y') ==false) { return false }
if(phone_fax(document.newclient_form.phn,3,25,'Phone number','Y')==false){ return false }

if(document.newclient_form.source_info.value=="0") {
alert ("select Source");
  document.newclient_form.source_info.focus();
 return false 
}

if(document.newclient_form.month.value=="0") {
alert ("select arrival month");
  document.newclient_form.month.focus();
 return false 
}


if(document.newclient_form.year.value=="0")
 {
 alert ("select year"); 
document.newclient_form.year.focus();

 return false 
 }


if(number(document.newclient_form.duration,1,2,1,55,'Number of days','Y')==false) { return false }
if(number(document.newclient_form.no_of_person,1,2,1,55,'Number of Guests','Y')==false) { return false }

if(document.newclient_form.tourlevel.value=="0")
{ 
alert ("select tour level");
document.newclient_form.tourlevel.focus();

 return false
}

}


function bookmark()
{
bookmarkurl="http://www.indiavacations.travel"
bookmarktitle="India Vacations"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
else if (window.sidebar) // firefox
window.sidebar.addPanel(bookmarktitle, bookmarkurl, "");

}


function chg_img(proceed_img)
{
document.getElementById("proceed").src="images/"+proceed_img;
}