// JavaScript Document
function submit_bid(i,auc_id){
		window.open("place_bid.php?id="+i+"&auc_id="+auc_id,"mywindow","toolbar=0,status=0,scrollbars=1,resizable=1, width=720,height=520");			 
}			  
function addtocart(item_id, auc_id){
	if(confirm("Are you sure? want to add in your cart.")){
		document.location.href='addtocart.php?mod=add&item_id='+item_id+'&auc_id='+auc_id;
	}
}
function setLiquidationFee(fee,liq_fee,fld){
	liquidationFee = (fee*liq_fee)/100;
	fld.value=liquidationFee;
}

function make_enable(id,mod){
	if(mod==1){
		document.getElementById(id).style.display="";
	}
	else{
			document.getElementById(id).style.display="none";
	}
			  }
			  
function enlarge(i,nm){
					window.open("enlarge_photo.php?path="+i+"&nm="+nm,"mywindow","toolbar=0,status=0,scrollbars=1,width=auto,height=auto,resizable=yes");

	}
function print_report(ttl,url){
win = window.open(url,"mywindow","toolbar=0,status=0,scrollbars=1,  width="+(screen.width-100)+",height="+(screen.height-100));
win.ttl=ttl;
win.moveTo(0,0);
win.print();
}

function Validator(frm){
	if(frm.bid.value=="" || frm.bid.value.indexOf(0)==" "){
	alert("Please enter bid");
	return false;
	}
	if(isNaN(frm.bid.value)){
	alert("Please enter valid bid");
	return false;
	}
}