function confirm_delete() {
  return confirm('Silmek istediğinize emin misiniz?');
}

function confirm_cancel() {
  return confirm('İptal etmek istediğinize emin misiniz?');
}

function open_picture_window(image_name,image_width,image_height,pos_left,pos_top) {
	new_window = window.open("","new_window","width="+image_width+",height="+image_height+",scrollbars=no,left="+pos_left+",top="+pos_top);
	new_window.document.open();
	new_window.document.write('<html><title>Gelişim Uydu</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onblur="self.close()">'); 
	new_window.document.write('<img src=\"'+image_name+'\" width='+image_width+' height='+image_height+' alt=\"\" title="Kapatmak için tıklayınız." onclick="window.close()">');
	new_window.document.write('</body></html>');
	new_window.document.close();
	new_window.focus();
}

function ShowHideContainer(containerId)
{
    var container = GetElementById(containerId);
    if (container && container.css) container.css.display = (container.css.display == "none") ? "block" : "none";
}

function GetElementById(elementId) {
    var element = (document.getElementById) ? document.getElementById(elementId) : (document.all) ? document.all[elementId] : (document.layers) ? document.layers[elementId] : null;
    if (element) element.css = (element.style) ? element.style : element;
    return element;
}

function CenterContainer(containerId) {
    var dimensions = Element.getDimensions(containerId);
    var width = dimensions.width;
    var height = dimensions.height;
    var x = (screen.width - width) / 2;
    var y = (screen.height - height) / 2;
    Element.setStyle(containerId,{left:x+'px',top:y+'px'});
}

function openCameraSystemPrintWindow(url) {
     var width  = 624;
     var height = 624;
     var left   = (screen.width  - width) / 2;
     var top    = (screen.height - height) / 2;
     var params = 'width=' + width;
     params += ', height=' + height;
     params += ', top=' + top; 
     params += ', left=' + left;
     params += ', directories=no';
     params += ', location=no';
     params += ', menubar=no';
     params += ', resizable=no';
     params += ', scrollbars=no';
     params += ', status=no';
     params += ', toolbar=no';
    
    productPictureWindow = window.open(url,'productPictureWindow', params);
    
    if (window.focus) {
        productPictureWindow.focus();
    }
    
    return false;
}

