/* $Id: start-notloggedin.js 5227 2006-10-18 23:51:01Z jwilkins $ */


function notLoggedIn() {

	var loginWarning = $('loginWarning');

	if (loginWarning) {
		if (loginWarning.style.display == 'block') {
			alert('You need to login before you can submit a bid request.');
		} else {
			loginWarning.style.display = 'block';
		}
	} else {
		alert('not found');
	}

	return false;
}


/*
 * Add handlers
 */

var obj;

var objectList = ['cusip', 'symbol', 'qty', 'settlement_type', 'cpn', 'maturity_month', 'maturity_day', 'maturity_year', 'comment', 'phone', 'list_name'];

for (var i=0; i < objectList.length; i++) {
	if (obj = $(objectList[i])) {
		obj.onchange = notLoggedIn;
	}
}
if (obj = $('addCusipButton')) {
	obj.onclick = notLoggedIn;
}
if (obj = $('submitButton')) {
	obj.onclick = notLoggedIn;
}
document.buildList.onsubmit = function () {return false;};



