/*
	#######################################
	##                                   ##
	##      Web Master: NURDIANSYAH      ##
	##    URL: http://nurdiansyah.com    ##
	##     Email: me@nurdiansyah.com     ##
	##                                   ##
	##     DON'T CHANGE THIS CODE..!!    ##
	##                                   ##
	#######################################
*/


// HOSTNAME SETTING :
// ==================

//HOSTNAME_URL	= 'http://noer/jcc';
//HOSTNAME_URL	= 'http://nurdiansyah.com/jcc';
//HOSTNAME_URL	= 'http://ereshacreative.com/jcc';
HOSTNAME_URL	= 'http://www.jcc.co.id';

RTE_IMAGES_HOST		= HOSTNAME_URL+'/images/rte/';
RTE_INCLUDE_PATH	= HOSTNAME_URL+'/include/rte/';

fileLoadingImage 	= HOSTNAME_URL+'/images/loading.gif';
fileBottomNavCloseImage	= HOSTNAME_URL+'/images/closelabel.gif';




// BROWSER CHECKING FOR CSS SETTING :
// ==================================

if (navigator.appName == "Microsoft Internet Explorer") {
		// alert ('My Browser : IE');
		document.write ("<style>#iframeContent { height: 366px;		/* IE */ }</style>")
}
else if (navigator.appName == "Opera") {
		// alert ('My Browser : Opera');
		document.write ("<style>#iframeContent { height: 347px;		/* Opera */ }</style>")
}
else {
		// alert ('My Browser : Netscape');
		document.write ("<style>#iframeContent { height: 346px;		/* Mozilla / Netscape..?? */ }</style>")
}




// NEWS UPDATE :
// =============

function deleteNewsConfirm (newsID, newsTitle, year, month, page) {
	var msg = "Are you sure to delete this Newsletter:   \n\"" + newsTitle + "\" ?   ";
	if (confirm(msg)) {
		window.location = "news_process.php?news_id=" + newsID + "&year=" + year + "&month=" + month + "&page="+ page + "&flag=deleteNews";
	} else {
		return;
	}
}

function deleteImageConfirm (newsID, imageName, imageNameStrip, year, month, page) {
	var msg = "Are you sure to delete this Image :   \n\"" + imageNameStrip + "\" ?   ";
	if (confirm(msg)) {
		window.location = "news_process.php?imageName=" + imageName  + "&news_id=" + newsID + "&year=" + year + "&month=" + month + "&page=" + page + "&flag=deleteImage";
	} else {
		return;
	}		
}

function deleteAttachFileConfirm(newsID, attachFileName, attachFileNameStrip, year, month, catID, page) {
	var msg = "Are you sure to delete this File :   \n\"" + attachFileNameStrip + "\" ?   ";
	if (confirm(msg)) {
		window.location = "news_process.php?attachFileName=" + attachFileName + "&news_id=" + newsID + "&year=" + year + "&month=" + month + "&cat_id=" + catID + "&page=" + page + "&flag=deleteAttachFile";
	} else {
		return;
	}
}




// EVENT SCHEDULE MANAGER :
// ========================

function deleteOrganizerConfirm (orgID, orgName, city, page) {
	var warning	= "WARNING !!! \n\nAll Schedules of Event in this Organizer will be DELETE automatically !!      ";
	var msg = "Are you sure to delete this Organizer  :   \n\"" + orgName + "\" ?   ";
	alert(warning)
	if (confirm(msg)) {
		window.location = "event_organizer_process.php?del_id=" + orgID + "&city="+ city + "&page="+ page;
	} else {
		return;
	}
}

function deleteEventScheduleConfirm (eventID, eventName) {
	var msg = "Are you sure to delete this Event Schedule  :   \n\"" + eventName + "\" ?   ";
	if (confirm(msg)) {
		window.location = "event_schedule_process.php?del_id=" + eventID;
	} else {
		return;
	}
}




// TESTIMONIAL MANAGER :
// =====================

function deleteTestiConfirm (testiID, testiTitle) {
	var msg = "Are you sure to delete this Testimonial from  :   \n\"" + testiTitle + "\" ?   ";
	if (confirm(msg)) {
		window.location = "testimonial_process.php?del_id=" + testiID ;
	} else {
		return;
	}
}

function viewTestimonial (file) {
	window.open(file, 'postScreen', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=240,height=200');
}




// CONTACT MANAGER :
// =================

function deleteContactConfirm (contactID, contactName) {
	var msg = "Are you sure to delete this Contact  :   \n\"" + contactName + "\" ?   ";
	if (confirm(msg)) {
		window.location = "contact_process.php?del_id=" + contactID;
	} else {
		return;
	}
}



// PHOTO GALLERY MANAGER :
// =======================

function deletePhotoEventConfirm (eventID, eventName, year, month) {
	var warning	= "WARNING !!! \n\nAll of Photos in this Event will be DELETE automatically !!      ";
	var msg		= "Are you sure to DELETE this Photo Event :   \n\"" + eventName + "\"       ";
	alert (warning)
	if (confirm(msg)) {
		window.location = "photo_galleryEvents_process.php?del_id=" + eventID + "&year=" + year + "&month=" + month;
	} else {
		return;
	}
}

function deletePhotoGalleryConfirm (photoID, photoDesc, eventID) {
	var msg = "Are you sure to delete this Photo :   \n\"" + photoDesc + "\"    ";
	if (confirm(msg)) {
		window.location = "photo_gallery_process.php?del_id=" + photoID + "&eventID=" + eventID;
	} else {
		return;
	}
}




// BUSINESS STATISTICS :
// =====================

function deleteStatisticConfirm (statID, statTitle) {
	var msg = "Are you sure to delete this Statistic :   \n\"" + statTitle + "\" ?   ";
	if (confirm(msg)) {
		window.location = "business_statistics_process.php?del_id=" + statID;
	} else {
		return;
	}
}




// BANNER MANAGER :
// ================

function deleteBannerConfirm (bannerID, companyName) {
	var msg = "Are you sure to delete this banner :   \n\"" + companyName + "\" ?   ";
	if (confirm(msg)) {
		window.location = "banner_process.php?del_id=" + bannerID;
	} else {
		return;
	}
}




// LINKS MANAGER :
// ===============

function deleteLinksDirectoryConfirm (dirID, dirTitle) {
	var msg = "Are you sure to delete this Links Directory  :   \n\"" + dirTitle + "\" ?   ";
	if (confirm(msg)) {
		window.location = "links_directory_process.php?del_id=" + dirID;
	} else {
		return;
	}
}

function deleteLinksUrlConfirm (urlID, urlTitle) {
	var msg = "Are you sure to delete this Links URL  :   \n\"" + urlTitle + "\" ?   ";
	if (confirm(msg)) {
		window.location = "links_url_process.php?del_id=" + urlID;
	} else {
		return;
	}
}