//
// ---Print tear sheet w P
var id= new Array();
var mmgif= '/collection/a1/inq.gif';
var desc= 0; // View 0=no, 1=yes
var sold= 'SOLD'
var hold= 'HOLD'
var app= 'APP'

function mip(i){
var hto;
var item=id[i].split("|");

if ( item[4] == sold )
document.write('<br># '+i +'<br><br> <a href="'+i +'.html" target="_blank">Print tear sheet</a><br><br><img src="/collection/a1/sod.gif" width="56" height="21" align="bottom" border="0" alt="Sold">');

else if ( item[4] == hold )
document.write('<img src="/collection/a1/hod.gif" width="94" height="21" align="bottom" border="0" alt="Hold">');

else if ( item[4] == app )
document.write('# '+i +'<br><br> <a href="'+i +'.html" target="_blank">Print tear sheet</a> <br><br><img src="/collection/a1/app.gif" width="193" height="21" align="bottom" border="0" alt="Price on Application">');

else {
hto='<br># '+i +'<br><br> <a href="'+i +'.html" target="_blank">Print tear sheet</a><br><br><b>Price: $'+item[2] +'</b><br><br>';
if (desc) hto=hto+'<span class="vw11"><b>'+item[2]+' - '+item[1]+'</b></span> ';
hto=hto+'<form action="/collection/a1/mip.php" method="post"> ';
hto=hto+'<input type="hidden" name="item_name" value="'+item[1]+'"> ';
hto=hto+'<input type="hidden" name="amount" value="'+item[2] +'"> ';
hto=hto+'<input type="hidden" name="numb" value="'+i +'"> ';
hto=hto+'<input class="inq" type="image" src="'+mmgif +'" border="0" name="submit"> ';
hto=hto+'</form>';

document.open();
document.write(hto);
document.close();
}
}
