// JavaScript Document
$(function(){
	$("#nav li .sub").hide();
	$("#nav li").hover(function(){
		$(this).find("div").show();
		$(".active").css();
	},function(){
		$(this).find("div").hide();
	});
	
	$("#nav li div").hover(function(){
		$(this).prev("a").addClass("hor");						
		$(this).show();
	},function(){
		$(this).prev("a").removeClass("hor");		
		$(this).hide();
	});
	/*菜单结束*/
	
	
	
	
	/*首页套餐定制*/
	$(".package ul li:even").addClass("bg");
	$(".package ul li").hover(function(){
	$(this).find(".img").animate({"top":"-84px"},200);
	},function(){
	$(this).find(".img").animate({"top":"0px"},300);
	});


	$("#packageIndex ul li:even").addClass("bg");
	$("#packageIndex ul li").hover(function(){
		$(this).find(".img").animate({"top":"-84px"},300);
	},function(){
		$(this).find(".img").animate({"top":"0px"},200);
	});


	/*首页左边切换*/
	$("#indexTabTit li").click(function(){
		$("#indexTabTit li span").removeClass("sel");								
		$(this).find("span").addClass("sel");
		var num=$("#indexTabTit li").index($(this));
		$("#indexCon .qSearchDiv").hide();
		$("#indexCon .qSearchDiv").eq(num).show();
		$("#pkgStartCityDiv").hide();
	});
	$("#indexTabTit li:eq(2)").trigger("click");
	
	
	
	
	/*度假部分*/
	
	$("#dujia dd ").find("li:eq(0) a").addClass("sel");
	 
	
	$("#dujia dd li").click(function(){
		$(this).parents("ul").find("a").removeClass();								
		$(this).find("a").addClass("sel");
		return false;
	});
	
	
	/*公共TAB切换*/
	$(".tabBox .tabTit li").click(function(){
		$(".tabBox .tabTit li").find("span").removeClass("sel");								
		$(this).find("span").addClass("sel");
		var num=$(".tabBox .tabTit li").index($(this));
		$(this).parents(".tabBox").find(".con").hide();
		$(this).parents(".tabBox").find(".con").eq(num).show();
	});
	$(".tabBox .tabTit li:eq(0)").trigger("click");

	$(".tabBox2 .tabTit li").click(function(){
		$(".tabBox2 .tabTit li").find("span").removeClass("sel");								
		$(this).find("span").addClass("sel");
		var num=$(".tabBox2 .tabTit li").index($(this));
		$(this).parents(".tabBox2").find(".con").hide();
		$(this).parents(".tabBox2").find(".con").eq(num).show();
	});
	$(".tabBox2 .tabTit li:eq(0)").trigger("click");
	
	
	
	$("#sales-Date li:last").css({"border-right":"none"});
	
	
	$(".show_fold").click(function(){
		$(".show_unfold").hide();
		$(".show_fold").show();
		$(".searchresult_fltlist .detailInfo").hide();	
		$(".searchresult_fltlist").css({"background":"#fff"});
		$(this).hide();
		$(this).next(".show_unfold").show();
		$(this).parents(".searchresult_fltlist").find(".detailInfo").show();
		$(this).parents(".searchresult_fltlist").css({"background":"#E8F6FB"});
		
	});
	
	$(".show_unfold").click(function(){
		$(this).hide();
		$(this).prev(".show_fold").show();
		$(this).parents(".searchresult_fltlist").find(".detailInfo").hide();
		$(this).parents(".searchresult_fltlist").css({"background":"#fff"});
	});
	
	
	$(".tabTit2 li").click(function(){
		$(".tabTit2 li span").removeClass("sel");
		$(this).find("span").addClass("sel");
	
	});

	
	$("#searFW dl dd").click(function(){
		$(this).parents("dl").find("dd").removeClass("sel");							  
		$(this).addClass("sel");
	});
	$("#tuandui-List dl:even").addClass("bg");
	$(".ul-Li-Bg li:odd").addClass("bg");


	$("#cfd-pop").click(function(){
		$("#cfd-detail").show();
	});
	
	/*--自由行列表--*/
	$(".add-fwList li").hover(function(){
		$(this).find("p").show();
	},function(){
		$(this).find("p").hide();
	});
});


$(function()
{
	$("#sqList").find("li:gt(6):not(:last)").hide();
	$("#sqList .more a").toggle(function(){
		$(this).text("收起").css({"background":"url(../images/common/ico3.gif) no-repeat right -12px"}).parents("#sqList").find("li:gt(6)").show();	
	},function(){
		$(this).text("更多").css({"background":"url(../images/common/ico3.gif) no-repeat right 5px"}).parents("#sqList").find("li:gt(6):not(:last)").hide();	
	});
	
	$(".more-A-Bg2").find("li:eq(0) a").addClass("sel");
	 
	
	$(".more-A-Bg2 li").click(function(){
									   
		$(this).parents("ul").find("a").removeClass();								
		$(this).find("a").addClass("sel");
		return false;
	});
	
	
	
//	$("#srFW dt").toggle(function(){
//		
//		$(this).find(":checkbox").attr({"checked":"checked"});
//		$(this).next("dd").show();
//		
//	},function(){
//		$(this).find(":checkbox").attr({"checked":""});
//		$(this).next("dd").hide();
//	});
	
	$("#payOption .payOption-Tit a").click(function(){
		var num=$("#payOption .payOption-Tit a").index($(this));
		$(this).addClass("sel").siblings().removeClass("sel");
		$("#pay_type").val(num);
		$("#payOption .payOptionBox .con").eq(num).show().siblings().hide();
		return false;
	});
	
	$("#sm").click(function(){
		$("#smBox").css({"background":"#fff","border":"solid 1px #ddd"});
		$("#smBox2").css({"background":"none","border":"solid 1px #eef5fd"});
		$("#smBox p,#smBox .table-p5").show();
		$("#smBox2 p,#smBox2 .table-p5").hide();
	});
	$("#sm2").click(function(){
		$("#smBox2").css({"background":"#fff","border":"solid 1px #ddd"});
		$("#smBox").css({"background":"none","border":"solid 1px #eef5fd"});
		$("#smBox p,#smBox .table-p5").hide();
		$("#smBox2 p,#smBox2 .table-p5").show();
	});
	
	$(".top10 dd:even").addClass("bg");
	
});

function login(){
	art.dialog({id:'login'}).close();
	art.dialog({title:'登录',id:'login',iframe:'/users/ulogin.php',width:'500',height:'300'}, function(){var d = art.dialog({id:'login'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'login'}).close()});
}

function add_price(price) {
	$('#orderprice').val($('#orderprice').val()*1 + price*1);
	$('#priceHtml').html($('#orderprice').val());
}

function minus_price(price) {
	$('#orderprice').val($('#orderprice').val()*1 - price*1);
	$('#priceHtml').html($('#orderprice').val())
}
function chgDiv(obj, divhtml) {
	$('#'+obj).html(divhtml);
}

function logout() {
	art.dialog({id:'logout'}).close();
	art.dialog({title:'退出',id:'logout',iframe:'/users/logout.php',width:'500',height:'300'}, function(){}, function(){art.dialog({id:'logout'}).close()});
}
function active(uid) {
	art.dialog({id:'active'}).close();
	art.dialog({title:'激活',id:'active',iframe:'/users/active.php?uid='+ uid,width:'500',height:'300'}, function(){var d = art.dialog({id:'active'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'active'}).close()});
}
/*基本信息*/
function addbasic(){
    art.dialog({id:'basic'}).close();
	art.dialog({title:'基本信息',id:'basic',iframe:'/customtravel/order_detail1.php?action=basic',width:'500',height:'300'}, function(){var d = art.dialog({id:'basic'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'basic'}).close()});
}
/*基本出行信息*/
function addtravel(){
    art.dialog({id:'basictravel'}).close();
	art.dialog({title:'基本出行信息',id:'basictravel',iframe:'/customtravel/order_detail1.php?action=travel',width:'500',height:'300'}, function(){var d = art.dialog({id:'basictravel'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'basictravel'}).close()});
}
/*添加酒店信息*/
function addhotel(){
    art.dialog({id:'hotel'}).close();
	art.dialog({title:'添加酒店',id:'hotel',iframe:'/customtravel/order_detail1.php?action=hotel',width:'500',height:'300'}, function(){var d = art.dialog({id:'hotel'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'hotel'}).close()});
}
/*添加飞机信息*/
function addflight(){
    art.dialog({id:'flight'}).close();
	art.dialog({title:'添加酒店',id:'flight',iframe:'/customtravel/order_detail1.php?action=flight',width:'500',height:'300'}, function(){var d = art.dialog({id:'flight'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'flight'}).close()});
}
/*特色服务弹出框*/

function book(stype){
	art.dialog({id:'book'}).close();
	art.dialog({title:'预约',id:'book',iframe:'/special/book.php?stype='+stype,width:'600',height:'400'}, function(){var d = art.dialog({id:'book'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'book'}).close()});
}
function bookbox(stype){
	art.dialog({id:'book'}).close();
	art.dialog({title:'预约',id:'book',iframe:'/special/bookbox.php?stype='+stype,width:'550',height:'400'}, function(){var d = art.dialog({id:'book'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'book'}).close()});
}


function bookspecial(stype, divID){
	if (divID == 0) {
		divID = $("#divID").val();
	}	
	ordertype = $("#ordertype").val();
	oldprice = $("#oldprice").val();
	art.dialog({id:'book'}).close();
	art.dialog({title:'预约',id:'book',iframe:'/special/specialbox.php?ordertype='+ordertype+'&oldprice='+oldprice+'&stype='+stype+'&tagdiv='+divID,width:'550',height:'400'}, function(){art.dialog({id:'book'}).close()});
}

/*个人资料-变更邮箱*/
function changeemail(uid){
	art.dialog({id:'chemail'}).close();
	art.dialog({title:'变更邮箱',id:'chemail',iframe:'/users/changeemail.php',width:'550',height:'400'}, function(){art.dialog({id:'chemail'}).close()});
}
/*个人资料-修改手机号码*/
function changemobile(uid){
	art.dialog({id:'chmobile'}).close();
	art.dialog({title:'修改手机号码',id:'chmobile',iframe:'/users/changemobile.php',width:'550',height:'400'}, function(){art.dialog({id:'chmobile'}).close()});
}
//手机验证
function isMobile(mobile) {
    return (/^(?:13\d|15\d)-?\d{5}(\d{3}|\*{3})$/.test(mobile));
}
//电话验证
function isTel(tel) {
    return (/^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/.test(tel));
}
//电话或者手机验证
function isTelOrMobile(s) {
    return (isMobile(s) || isTel(s));
}
//邮件验证
function isEmail(s) {
    return (/^(\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)$/.test(s));
}
//验证邮编
function IsPostId(str){
	var reg=/^\d{6}$/;
	return reg.test(str);
}


function submitOrder() {
	isok = true;
	var linkname=$("#linkname").val();
	var linkmobile=$("#linkmobile").val();
	var telphone=$("#telphone").val();
	var linkemail=$("#linkemail").val();
	var zipcode=$("#zipcode").val();
	var verifyCode=$("#verifyCode").val();
	if (linkname == '') {
		isok = false;
		alert("请输入姓名");
		return false;
	}
	if ( linkmobile== '') {
		isok = false;
		alert("请输入手机号码");
		return false;
	}
	if (!isMobile(linkmobile)) {
		isok = false;
		alert("请输入正确的手机号码");
		return false;
	}
	if(telphone!=''&&!isTel(telphone)){
	    isok = false;
		alert("请输入正确联系电话");
		return false;
	}
	if(linkemail!=''&&!isEmail(linkemail)){
	    isok = false;
		alert("请输入正确的Email");
		return false;
	}

	if(zipcode!=''&&!IsPostId(zipcode)){
	    isok = false;
		alert("请输入正确的邮政编码");
		return false;
	}
	if ( verifyCode== '') {
		isok = false;
		alert("请输入验证码");
		return false;
	}
	if (isok) {
		$.ajax({
		  type: 'POST',
		  url: '/ajax.php',
		  data: "type=getUser" +"&r="+Math.random()*10,
		  
		  success: function(data){
		  	if (data==0) {
		  			art.dialog({id:'login'}).close();
						art.dialog({title:'登录',id:'login',iframe:'/users/reglogin.php',width:'700',height:'300'}, function(){art.dialog({id:'login'}).close()});
		  	} else {
		  		//已经登录
		  		$("#myform").submit();
		  	}
		  }
		});
	}
}
function quickOrder() {
	isok = true;
	var linkmobile=$("#linkmobile").val();
	var telphone=$("#telphone").val();
	var linkemail=$("#linkemail").val();
	var verifyCode=$("#verifyCode").val();
	if ($("#linkname").val() == '') {
		isok = false;
		alert("请输入姓名");
		return false;
	}


	if ( linkmobile== '') {
		isok = false;
		alert("请输入手机号码");
		return false;
	}else if (!isMobile(linkmobile)) {
		isok = false;
		alert("请输入正确的手机号码");
		return false;
	}
    if(telphone!=''&&!isTel(telphone)){
	    isok = false;
		alert("请输入正确联系电话");
		return false;
	}
    if ( linkemail== '') {
		isok = false;
		alert("请输入Email");
		return false;
	}else if(!isEmail(linkemail)){
	    isok = false;
		alert("请输入正确的Email");
		return false;
	}

	if ($("#cityin").val() == '') {
		isok = false;
		alert("请输入出发地");
		return false;
	}
	if ($("#cityout").val() == '') {
		isok = false;
		alert("请输入目的地");
		return false;
	}
	if ($("#tm").val() == '') {
		isok = false;
		alert("请输入出发日期");
		return false;
	}
	if ( verifyCode== '') {
		isok = false;
		alert("请输入验证码");
		return false;
	}
	if (isok) {
		$.ajax({
		  type: 'POST',
		  url: '/ajax.php',
		  data: "type=getUser" +"&r="+Math.random()*10,
		  
		  success: function(data){
		  	if (data==0) {
		  			art.dialog({id:'login'}).close();
						art.dialog({title:'登录',id:'login',iframe:'/users/reglogin.php',width:'700',height:'300'}, function(){art.dialog({id:'login'}).close()});
		  	} else {
		  		//已经登录
		  		$("#myform").submit();
		  	}
		  }
		});
	}
}
function submitComment() {
	isok = true;
	if (isok) {
		$.ajax({
		  type: 'POST',
		  url: '/ajax.php',
		  data: "type=getUser" +"&r="+Math.random()*10,
		  
		  success: function(data){
		  	if (data==0) {
		  			art.dialog({id:'login'}).close();
						art.dialog({title:'登录',id:'login',iframe:'/users/reglogin.php',width:'700',height:'300'}, function(){art.dialog({id:'login'}).close()});
		  	} else {
		  		//已经登录
		  		$("#myform").submit();
		  	}
		  }
		});
	}
}
function addreply(rid,id,tp) {
    isok = true;
	
	//var tid;
	if(tp) var tid='ttid'; else var tid='acid';
	if (isok) {
		$.ajax({
		  type: 'POST',
		  url: '/ajax.php',
		  data: "type=getUser" +"&r="+Math.random()*10,
		  
		  success: function(data){
		  	if (data==0) {
		  			art.dialog({id:'login'}).close();
						art.dialog({title:'登录',id:'login',iframe:'/users/reglogin.php',width:'700',height:'300'}, function(){art.dialog({id:'login'}).close()});
		  	} else {
			window.top.art.dialog({id:'addreply'}).close();
			window.top.art.dialog({title:'回复评论：',id:'addreply',iframe:'/review/addreply.php?rid='+rid+'&'+tid+'='+id+'&type='+tp,width:'460',height:'230'},  function(){var d = window.top.art.dialog({id:'addreply'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){window.top.art.dialog({id:'addreply'}).close()});
		}
		  }
		});
	}
}
function gotoPage(currentpage){ 
	$('#page').val(currentpage);
	$('#myform').submit();
}
function chgHotel(divID) {
	cityId = $("#cityId_"+ divID).val();
	htDateIn = $("#htDateIn_"+ divID).val();
	htDateOut = $("#htDateOut_"+ divID).val();
	ordertype = $("#ordertype").val();
	oldprice = $("#price_"+ divID).val();
	art.dialog({id:'chageDiv'}).close();
	art.dialog({title:'更改酒店',id:'chageDiv',iframe:'/hotel/searchbox.php?cityid='+cityId+'&checkInDate='+htDateIn+'&checkOutDate='+htDateOut+'&ordertype='+ordertype+'&oldprice='+oldprice+'&tagdiv='+divID,width:'800',height:'500'}, function(){art.dialog({id:'chageDiv'}).close()});
}

function chgFlight(divID) {
	cityIn = $("#cityIn_"+ divID).val();
	cityOut = $("#cityOut_"+ divID).val();
	takeoffDate = $("#takeoffDate_"+ divID).val();
	oldprice = $("#berthprice_"+ divID).val();
	ordertype = $("#ordertype").val();
	art.dialog({id:'chageDiv'}).close();
	art.dialog({title:'更改机票',id:'chageDiv',iframe:'/flight/searchbox.php?startCityCode='+cityIn+'&endCityCode='+cityOut+'&takeoffDate='+takeoffDate+'&ordertype='+ordertype+'&oldprice='+oldprice+'&tagdiv='+divID,width:'800',height:'500'}, function(){art.dialog({id:'chageDiv'}).close()});
}
//私人定制特别企划
function customHotel(divID) {
	if (divID == 0) {
		divID = $("#divID").val();
	}
	oldprice = $("#price_"+ divID).val();
	ordertype = $("#ordertype").val();
	art.dialog({id:'chageDiv'}).close();
	art.dialog({title:'选择酒店',id:'chageDiv',iframe:'/hotel/customsearch.php?tagdiv='+divID+'&ordertype='+ordertype+'&oldprice='+oldprice,width:'800',height:'500'}, function(){art.dialog({id:'chageDiv'}).close()});
}

function customFlight(divID) {
	if (divID == 0) {
		divID = $("#divID").val();
	} 
	ryprice = $("#ryprice_" + divID).val();
	jjprice = $("#jjprice_"+ divID).val();
	oldprice = $("#berthprice_"+ divID).val();
	ordertype = $("#ordertype").val();
	art.dialog({id:'chageDiv'}).close();
	art.dialog({title:'选择机票',id:'chageDiv',iframe:'/flight/customsearch.php?tagdiv='+divID+'&ordertype='+ordertype+'&oldprice='+oldprice+'&ryprice='+ryprice+'&jjprice='+jjprice,width:'800',height:'500'}, function(){art.dialog({id:'chageDiv'}).close()});
}


function cancelFlight(divID) {
	ryprice = $("#ryprice_" + divID).val();
	jjprice = $("#jjprice_"+ divID).val();
	oldprice = $("#berthprice_"+ divID).val();
	minus_price(oldprice*1 + ryprice*1 + jjprice*1);
	$("#flight_"+ divID).html('');
}
function cancelHotel(divID) {
	oldprice = $("#price_"+ divID).val();
	minus_price(oldprice);
	$("#hotel_"+ divID).html('');
}


function addPassengers(){
	nums = $("#passengernums").val() * 1 + 1;
	$.ajax({
	  type: 'POST',
	  url: '/ajax.php',
	  data: "type=addPassengers&nums=" + nums +"&r="+Math.random()*10,
	  success: function(data){
	  	$("#passengernums").val(nums);
	  	$("#passengersDiv").append(data);
	  }
	});
}
function getComment(hotelid) {
	$.ajax({
	  type: 'GET',
	  url: '/hotel/comment.php',
	  data: "hotelid="+ hotelid +"&r="+Math.random()*10,
	  success: function(data){
	  	if (data) {
	  		//已经登录
	  		$("#mycomment").html(data);
	  	} 
	  }
	});
}

///上月
function chgMonth(tid, year, month){
	$.ajax({
	  type: 'GET',
	  url: '/ajax.php',
	  data: "type=getCalendar&id="+ tid +"&year=" + year + "&month="+ month +"&r="+Math.random()*10,
	  success: function(data){
	  	if (data) {
	  		//已经登录
	  		$("#chgCalendar").html(data);
	  	} 
	  }
	});
}
///上月
function chgMonth1(tid, year, month,num){

	$.ajax({
	  type: 'GET',
	  url: '/include/ajax1.php',
	  data: "type=getCalendar&id="+ tid +"&year=" + year + "&month="+ month + "&num="+ num +"&r="+Math.random()*10,
	  success: function(data){
	  	if (data) {
	  		//已经登录
	  		$("#chgCalendar").html(data);
	  	} 
	  }
	});
}
//获取推荐活动
function getActivity(divID) {
	if (divID == 0) {
		divID = $("#divID").val();
	}
	oldprice = $("#aprice_"+ divID).val();
	ordertype = $("#ordertype").val();
	art.dialog({id:'chageDiv'}).close();
	art.dialog({title:'选择推荐活动',id:'chageDiv',iframe:'/customtravel/setmenubox.php?tagdiv='+divID+'&ordertype='+ordertype+'&oldprice='+oldprice,width:'700',height:'300'}, function(){art.dialog({id:'chageDiv'}).close()});
}
//获取VIP
function getVIP(divID) {
	if (divID == 0) {
		divID = $("#divID").val();
	}
	oldprice = $("#aprice_"+ divID).val();
	ordertype = $("#ordertype").val();
	art.dialog({id:'chageDiv'}).close();
	art.dialog({title:'暂只对VIP用户开放',id:'chageDiv',iframe:'/vip/sel.php?tagdiv='+divID+'&ordertype='+ordertype+'&oldprice='+oldprice,width:'700',height:'300'}, function(){art.dialog({id:'chageDiv'}).close()});
}
//更改一日游价格
function chkOneDay(chkV, types) {
	price = $('#a_p_'+$('#'+chkV).val()).val();
	if (types=="freetravel") {
		nums = $('#old_'+chkV).val()
		//alert(nums);
		price = price *1 *nums;
	}
	if ($('#'+chkV).attr('checked')) {
		//+
		chgOnePrice(0,price,types);
	} else {
		//-
		chgOnePrice(price,0,types);
	}
}
//customorder
function chgOnePrice(oldprice, newprice, types){
	$.ajax({
	  type: 'GET',
	  url: '/ajax.php',
	  data: "type=chgPrice&ordertype="+types+"&oldprice="+ oldprice +"&price=" + newprice + "&r="+Math.random()*10,
	  success: function(data){
	  	if (data) {
	  		//已经登录
	  		$('#orderprice').val(data);
				$('#priceHtml').html($('#orderprice').val());
	  	} 
	  }
	});
}
function chgNums(chkV) {
	nums = $('#nums_'+chkV).val();
	oldnums = $('#old_tc_'+chkV).val();
	$('#old_tc_'+chkV).val(nums);
	if ($('#tc_'+chkV).attr('checked')) {
		//-
		price = $('#a_p_'+chkV).val();
		oldprice = price *1 *oldnums;
		newprice = price *1 *nums;
		chgOnePrice(oldprice,newprice,'freetravel');
		//chkOneDay('tc_'+chkV,'freetravel');
	}
}
function chgCity(v) {
	theme = $('#theme').val();
	window.location.href = "/order/index.php?ordertype=customorder&theme="+theme+"&dest="+v;
}
function chgTheme(v) {
	var dest = $('#dest').val();
	window.location.href = "/order/index.php?ordertype=customorder&theme="+v+"&dest="+dest;
}
  /*添加游艇信息*/
function addyacht(){
	art.dialog({id:'yacht'}).close();
	art.dialog({title:'游艇定制',id:'yacht',iframe:'/customtravel/order_yacht.php?action=yacht',width:'800',height:'500'}, function(){var d = art.dialog({id:'yacht'}).data.iframe;d.$('#dosubmit').click();return false;}, function(){art.dialog({id:'hotel'}).close()});
}
function ctheme(v) {
	$('#theme').val(v);
}
function customtravel() {
	var dest = $('#dest').val();
	var theme = $('#theme').val();
	window.location.href = "/order/index.php?ordertype=customorder&theme="+theme+"&dest="+dest;
}
