function newPopUp(id) {
var raj = "pop.php?id="+id
apop = window.open(raj,'apop','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,height=550,width=650,raised=1, left=5, top=30');
}


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


<!--

//*****************************************
// Blending Image Slide Show Script- 
// © Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=6000

//specify images
var slideimages=new Array("images/special/bhutan1.jpg","images/special/nepal1.jpg")

//specify corresponding links
var slidelinks=new Array("bhutan_festivals.php","nepal_lodge_trekking.php")

var newwindow=0 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

//-->


// JavaScript Document

function contact_form() {

if (document.contact.country.value == ""){
		alert("Please Select your country!")
		document.contact.country.focus()
		 return false;
	}

if (document.contact.package.value == ""){
		alert("please mention any tour / trek packages!")
		document.contact.package.focus()
		 return false;
	}

if (document.contact.name.value == ""){
		alert("Your Name is required!")
		document.contact.name.focus()
		 return false;
	}


if (document.contact.address.value == ""){
		alert("Address is required !")
		document.contact.address.focus()
		 return false;
	}


if (document.contact.zip.value == ""){
		alert("Please specify Postal/Zip code!")
		document.contact.zip.focus()
		 return false;
	}


if(document.contact.email.value.length==0){
		alert("Your email is required, please !")
                document.contact.email.focus()
            return false;
                    }
       else{
            var maillength=document.contact.email.value.length
            var posat=document.contact.email.value.indexOf("@")   
            var posdot=document.contact.email.value.indexOf(".") 
           if(posat <= 0 || posat ==maillength-1 || posdot < posat || posdot == maillength-1){
                 alert("Sorry! That dosen't seem to be a valid e-mail account...")
                document.contact.email.focus()
        return false;
               }
}


if(document.contact.email2.value.length==0){
		alert("Please confirm the same email above!")
                document.contact.email2.focus()
            return false;
                    }
       else{
            var maillength=document.contact.email2.value.length
            var posat=document.contact.email2.value.indexOf("@")   
            var posdot=document.contact.email2.value.indexOf(".") 
           if(posat <= 0 || posat ==maillength-1 || posdot < posat || posdot == maillength-1){
                 alert("Sorry! That dosen't seem to be a valid e-mail account...")
                document.contact.email2.focus()
        return false;
               }
}

if (document.contact.email.value != document.contact.email2.value){
		alert("The email does not match")
		document.contact.email2.focus()
		 return false;
	}

}

// end make form

// small question

function question_form() {

if(document.question.email.value.length==0){
		alert("Your email is required, please !")
                document.question.email.focus()
            return false;
                    }
       else{
            var maillength=document.question.email.value.length
            var posat=document.question.email.value.indexOf("@")   
            var posdot=document.question.email.value.indexOf(".") 
           if(posat <= 0 || posat ==maillength-1 || posdot < posat || posdot == maillength-1){
                 alert("Sorry! That dosen't seem to be a valid e-mail account...")
                document.question.email.focus()
        return false;
               }
}

if (document.question.ask.value == ""){
		alert("Please specify your Query!")
		document.question.ask.focus()
		 return false;
	}

}

//end small question

