function submitForm(frm,uri){
	frm.action=uri;
	frm.submit();

}

function confirmDelete(frm,uri){
	//document.forms.item(0).action=uri;
	//document.forms.item(0).submit();
	//alert('f');
	if(confirm('Do you want to delete this record ?')){
		frm.action=uri;
		frm.submit();		
	}
}

function Delete(){
	//document.forms.item(0).action=uri;
	//document.forms.item(0).submit();
	if(confirm('Do you want to delete this record ?')){
		return true;		
	}else{
		return false;	
	}
}


function ConfirmMessage(){
	//document.forms.item(0).action=uri;
	//document.forms.item(0).submit();
	if(confirm('Are You Sure?')){
		return true;		
	}else{
		return false;	
	}
}


function LoadImage(img){
document.getElementById('viewImage').innerHTML = '<img  src="images/car_ads/large/'+img+'" width="700" alt="HPS Hotel Reservation"/>';
}


function deldetails(id)
{
	if (confirm("Are you sure you want to delete? " +   ""))
	{
		location.href = 'comreg.php?del=' + id;
	}
}
function changeTab(type){

	var hotel = 1;
	var url='';
	if(type == 'H'){
		url='ajaxHotelTab.php?hotel=' + hotel + "&rnd="+ Math.random();
	}else{
		url='ajaxcountryTab.php?rnd='+ Math.random();
	}
		
	
	xmlHttp=GetXmlHttpObject(Tab);
	xmlHttp.open("GET", url , false);
	xmlHttp.send(null);
	
}


function Tab() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById('search').innerHTML=xmlHttp.responseText;
	}
}








