// used to delete the pages data
function del_page(id){
	if(confirm("Are you sure want delete this page ?")){
		location.href="delete.php?id=" + id ;
	}
}

// used to delete the pages data
function delcountry(id){
    if(confirm("Are you sure want delete this country ?")){
        location.href="delete_country.php?id=" + id ;
    }
}

// used to delete the pages data
function delcity(id){
	if(confirm("Are you sure want delete this city ?")){
		location.href="delete.php?id=" + id ;
	}
}

// used to delete the pages data
function delcitysection(id, city_id){
	if(confirm("Are you sure want delete this section?")){
		//location.href="delete_section.php?id=" + id ;
		window.location.href="delete_section.php?id="+id+"&cityid="+city_id;
	}
}

// used to delete the pages data
function delcitysection_detail(id, returnid, cityid, section_id){
	
	if(confirm("Are you sure want delete this city section detail?")){
		//location.href="delete_section_detail.php?id=" + id;
		window.location.href="delete_section_detail.php?id="+id+"&returnid="+returnid+"&cityid="+cityid+"&section_id="+section_id;
	}
}

function dothis()
 {
   document.advertising.meters.disabled=true;
   document.advertising.meters.value = "";
    
   document.advertising.height1.disabled=false;
   document.advertising.height2.disabled=false;
 }

function dothis2()
 {
   document.advertising.meters.disabled=false;
   document.advertising.height1.value = "";
   document.advertising.height2.value = "";
   
   document.advertising.height1.disabled=true;
   document.advertising.height2.disabled=true;
 }

// used to delete the girl data
function deletegirl(id,page){
	if(confirm("Are you sure want delete this girl ? If you click ok all the data of this girl such as contact, photos, videos will be removed permanantly.")){
		location.href="delete.php?id="+id+"&page="+page;
	}
}

// used to delete the new signup girl data
function deletegirl_new(id){
	if(confirm("Are you sure want delete this New Sign UP girl ? If you click ok all the data of this girl such as contact, photos, videos will be removed permanantly.")){
		location.href="delete_new.php?id=" + id ;
	}
} 
// used to delete the photo of girl 
function deletephoto(id, no){
	if(confirm("Are you sure want delete this photo ? ")){
		location.href="delete_image.php?id="+id+"&no="+no;
	}
}

// used to change the status of the girl data
function changestatus(id){
	if(confirm("Are you sure want make this girl active? If you click ok this girl becomes the escort.")){
		location.href="change_staus.php?id=" + id ;
	}
}

// used to change the status of the girl data
function changestatusescort(id,page){
	if(confirm("Are you sure wants to change the status? ")){
		location.href="change_staus_escort.php?id="+id+"&page="+page ;
	}
}
// used to select month girl
function select_month_girl(id){
	if(confirm("Are you sure wants make this girl as month of girl? If you click ok this girl becomes the month of girl.")){
		location.href="select_month_girl.php?id=" + id ;
	}
}

// used to change the status of the girl data
function deletecomments(id,girlid){
	if(confirm("Are you sure want delete this comments.")){
		location.href="delete_comments.php?id="+id+"&girlid="+girlid ;
	}
}

// used to schitch the city page
function page_switch(name){
    /*var name_ok;
    if(name.substr(0,1)=="*"){
        $country=true;
        name_ok=name.substr(1);
    }else{
        $country=false;
        name_ok=name;
    }
    if(name_ok == ''){
        window.location.href=name_ok+"index.html";
    }else{
        if(name_ok.substr(0,4) == 'http'){
            window.location.href=name_ok;
        }else{
            if($country==false){
                window.location.href=name_ok+"-escort-service.html";
            }else{
                if(name_ok!="others")
                    window.location.href=name_ok+"-escorts-services.html";
            }
        }
    }*/
    window.location.href=name;
}


