

function ConfirmLink(route)
{
	var is_confirmed = confirm("是否要删除"+route+"航段信息？");

    if (is_confirmed) {

		return false;
    }
	return false;
} 

function  changelocation(locationid) 
{ 
	document.form3.CompanyName.length = 0; 
    //window.alert(locationid);
	var locationid=locationid; 
	var i; 
	document.form3.CompanyName.options[0] = new Option('---请选择---',''); 
	for (i=0;i < onecount; i++) 
	{ 
		
		if (subcat[i][0] == locationid) 
		{ 
			    //window.alert(subcat[i][1]);
				window.alert(subcat[i][0]);
        	document.form3.CompanyName.options[document.form3.CompanyName.length] = new Option(subcat[i][0], subcat[i][1]); 
		} 
	} 
} 



function  checkformsearch()
{

	if(document.form3.city.value=='' || document.form3.city.value=='0')
	{
		alert('\\\\\\\\\\\\\\请选择国家的城市！不选择国家的城市怎么查呀。/////////');
		return false;
	}
	else
	{
		//alert('\\\\\\\\\\\\\\正在查询，请稍后........\\\\\\\\\\\\\\');
		return true;
	}
	
	if(document.form3.datestart33.value>=document.form3.datestart44.value)
	{
		alert('\\\\\\\\\\\\\\请选择出发日期,返程日期！出发日期不能比返程日期大。/////////');
		return false;
	}
	else
	{
		alert('\\\\\\\\\\\\\\正在查询，请稍后........\\\\\\\\\\\\\\');
		return true;
	}
	
}

function  changelocationCountry(locationid) 
{ 
	document.form3.coun.length = 0; 
    var locationid=locationid; 
	var i; 
		document.form3.coun.options[0] = new Option('---请选择---',''); 
		for (i=0;i < onecount; i++) 
		{ 
			
			if (subcat[i][0] == locationid) 
			{ 
        		document.form3.coun.options[document.form3.coun.length] = new Option(subcat[i][1], subcat[i][1]); 
			} 
		} 
} 

function  changelocationCity(locationid) 
{ 
	document.form3.city.length = 0; 
    //window.alert(locationid);
	var locationid=locationid; 
	var i; 
		document.form3.city.options[0] = new Option('---请选择---','');
 
		for (i=0;i < twocount; i++) 
		{ 

			if (subsubcat[i][0] == locationid) 
			{ 
			     //window.alert(subcat[i][1]);
				 //window.alert(subcat[i][0]);
        		document.form3.city.options[document.form3.city.length] = new Option(subsubcat[i][1], subsubcat[i][2]); 
			} 
		} 
}


function Change(status)
{
	switch (status)
	{
		case "1":
			IntelnationDateEndTr.style.display="none";
			IntelnationDateEndTrtwo.style.display="none";
			break;
		case "2":
			IntelnationDateEndTr.style.display="";
			IntelnationDateEndTrtwo.style.display="";
			break;				
	}
	
	
}




