function openQuoteAdd(href, vendor) {
	if(href == undefined) href = '';
	if(vendor == undefined) vendor = '';
	window.open('/quote_request_add.php?href=' + href + '&vendor=' + vendor, 'quote_item', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,height=400,width=850');
}

function viewItems() {
	window.open('/quote_request_items.php', 'quote_item', 'status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,scrollbars=1,height=400,width=850');
}

function submitQuote() {
	$.blockUI();
	$.post('/json/jsonSubmitQuote.php', {}, function(data){alert(data.message);$.unblockUI();}, 'json');
}
