//Image Resizing Functions------------------------------
//{To Resize A Single Image}

function resizeImg(imgId, w, h) {

  var elem = document.getElementById(imgId);
  if (elem == undefined || elem == null) return false;
  if (w == undefined) w = 100;
  if (h == undefined) h = 75;

  if (elem.width > elem.height) {
    if (elem.width > w) elem.width = Math.round(w);
  } else {
    if (elem.height > h) elem.height = Math.round(h);
  }
  if (elem.height == 0 || elem.width == 0)
  {
    elem.width = 100;
    elem.height = 75;
  }
  return false;
}

function loadImage(image, name){
    document.getElementById("dvUrunGoster").style.backgroundImage = "url(" + image + ");";
    document.getElementById("dvUrunGoster").innerHTML = name;
}

//Page Functions----------------------------------------
function newWindow(pageStr) { 
    var newW = window.open(pageStr, '_blank'); 
    newW.focus(); 
    return false; 
} 
