var xmlhttp_product = false;
try {xmlhttp_product = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {
try { xmlhttp_product = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp_product = false; }
}
if (!xmlhttp_product && typeof XMLHttpRequest != 'undefined') { xmlhttp_product = new XMLHttpRequest(); }
function getE(elem){return document.getElementById(elem);};
function showThis(id){
var result="";
xmlhttp_product.open('GET','http://jogjamarket.com/show-img-once/'+id+'/show-img-once.html');
xmlhttp_product.onreadystatechange = function() {
if ( xmlhttp_product.readyState == 4 && xmlhttp_product.status == 200 ) {
result=xmlhttp_product.responseText;
result=result.replace(/^\s+|\s+$/g, '');
document.getElementById("txtImageName").value=result;
document.getElementById("txtIdImage").value=id;
document.getElementById("image_place").innerHTML="";
var updiv = document.getElementById("image_place");
var e = document.createElement('img');
e.src = 'http://jogjamarket.com/?page=image&item=product&id='+id+'&image='+result+'&balance=350';
e.title=result;e.alt=result;
updiv.appendChild(e);
document.getElementById("image_loader").innerHTML = 'detail';
} else {
document.getElementById("image_loader").innerHTML = '
generating..';
}
}
xmlhttp_product.send(null);
}
function detailThis(){
winObj=window.open('http://jogjamarket.com/image/product/'+document.getElementById('txtIdImage').value+'/'+document.getElementById('txtImageName').value+'/vieworiginal/', "summer","width=500,height=550,resizable=yes,scrollbars=yes,location=yes");
winObj.moveTo(100,100); // Move to left-hand corner of screen
winObj.focus();
}