function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
/*-----------------------------------------------------------------------
 Validate functions
-----------------------------------------------------------------------*/
// validates that the field value string has one or more characters in it
function isNotEmpty(elem) {
    var str = elem.value;
    var re = /.+/;
				return str.match(re);
    /*if (!str.match(re)) {
        alert("ñ÷ïàï");
        return false;
    } else {
        return true;
    }*/
}
   
//validates that the entry is a positive or negative number
function isNumber(elem) {
    var str = elem.value;
    var re = /^[-]?\d*\.?\d*$/;
    str = str.toString( );
    return str.match(re);
}


/*-----------------------------------------------------------------------
 Cart and catalog functions
-----------------------------------------------------------------------*/
// Function opens new window with specified parametres
// Recieves Url, name, width and height
// Returns created window
function openWindow(aUrl, aName, aWidth, aHeight)
{
   var iLeft = Math.round( (screen.width-aWidth)/2 );
   var iTop =  Math.round( (screen.height-aHeight)/2 ) - 35;

   var sWindowOptions = 'status=no,menubar=no,toolbar=no';
      sWindowOptions += ',resizable=yes,scrollbars=yes,location=no';
      sWindowOptions += ',width='  + aWidth;
      sWindowOptions += ',height=' + aHeight;
      sWindowOptions += ',left='   + iLeft;
      sWindowOptions += ',top='    + iTop;

   var win = window.open(aUrl, aName, sWindowOptions);
   return win;
}
// Function shows all item's images
// Recieve Item's id
function showItemsImages(itemId)
{
   var sUri = "./photo" + itemId + "/";
   var Win  = openWindow(sUri, 'winPhoto', 500, 400);
   Win.focus();
}