// JScript File
var ALERT_TITLE = "Bid2Buy - Alert!";

CloseWindow = function () {
	window.close()
}

RedirectToHome = function() {
	var str=window.location.toString()
	var str2 = "http://"
	str = str.substring(0,str.indexOf("/",str2.length) )+  "/Default.aspx"
	window.location = str
}

// over-ride the alert method only if this a newer browser.
// Older browser will see standard alerts
if(document.getElementById) {
	window.alert = function(txt) {
	   txt = txt.replace(/\n/g,"<BR>");
	   Alert.fnAlert(txt);
	}
}

  
function proxyBidConfirm(btnid, textid, lblSrNo){
    btn = document.getElementById(btnid)
    text = document.getElementById(textid)
    if (confirm("Are you sure you want to set a proxy bid of Rs. " + text.value + " For Lot No. " + lblSrNo + " ?")){
        return true;
    }
    else{
        return false;
    }
}

function PopupWindow(RedirectURL,WindowName){
    var win2 = window.open(RedirectURL,WindowName,"status,height=500,width=900,resizable=yes,left=0,top=0,screenX=0,screenY=0,scrollbars=yes");
	win2.focus(); 	
}
