
function displayjpg(url,image) {
win = window.open(url+'showpic.asp?i='+image,'FullImage','toolbar=no,status=0,width=320,height=340');
win.focus();
}

function newimg( str1, str2 ) {
  nm = 'x'+str1;
  document[nm].src = str2;
}

function displayit( str1 ) {
  var nm,img;
  nm = 'x'+str1;
  img = document[nm].src.replace(/s.j/,".j");
  displayjpg("",img);
}

// http://www.streetmap.co.uk/streetmap.dll?postcode2map?cv32+4ns&Warwick+Gallery&Return+to+the+main+page&http://www.art-is-a-tart.com&Y

function showMap( loc, title ) {
  win = window.open('http://uk.multimap.com/p/browse.cgi?pc='+loc+'&GridE=&GridN=&scale=10000&title='+title+'&cat=ind>', 'MultiMap', 'menubar=no, toolbar=no, status=no, resize=yes, scrollbars=yes, height=400, width=500');
  win.focus();
return false;
}

function showWin( fl ) {
  win = window.open(fl,'single', 'location=no,status=no,scrollbars=yes,height=300,width=450');
  win.focus();
return false;
}

function newWin( fl ) {
  win = window.open(fl,'newwin', '');
  win.focus();
return false;
}


function item(_bulk,_id) {
  _bulk = (_bulk=="True");	//ASP True to JS true

  this.id = new Array();
  this.img = new Array();
  this.pr = new Array();

  _idp = (_bulk ? _id+"_" : "");
  this.id0 = _idp+"id";
  this.id1 = _id+"_id1";

  this.pr0 = _idp+"pr";
  this.pr1 = _id+"_pr1";
}

//line 58
item.prototype.add = function(i,_id,_pr,_img) {
  with (this) {
    id[i] = _id;
    pr[i] = _pr;
    img[i] = _img;
  }
}

sz = new Array();


function szChg(i,cl) {
  j = cl.selectedIndex;
  x = sz[i];
  newimg(i,x.img[j]);
  cl.form[x.pr0].value = x.pr[j];
  cl.form[x.pr1].value = cl.form[x.pr1].value.substr(0,1)+x.pr[j];
  cl.form[x.id0].value = x.id[j];
  cl.form[x.id1].value = x.id[j];
}

