﻿<!--		function insertNew(){		if(validateAll()){			return (true);		}else{			alert('You have not filled in the necessary data to submit your request');			return (false);		}	}	//called when selecting bill code from pulldown on Canada Bread Hellofunction setCanadaBreadBillCode(){	if (document.forms[0].billCodeButton.options[0].selected == true){		document.forms[0]['billCode'].value = 'CBCTO';	}	if (document.forms[0].billCodeButton.options[1].selected == true){		document.forms[0]['billCode'].value = 'CBCCO';	}	if (document.forms[0].billCodeButton.options[2].selected == true){		document.forms[0]['billCode'].value = 'CBCLA';	}	if (document.forms[0].billCodeButton.options[3].selected == true){		document.forms[0]['billCode'].value = 'CBABE';	}	if (document.forms[0].billCodeButton.options[4].selected == true){		document.forms[0]['billCode'].value = 'MULMA';	}	if (document.forms[0].billCodeButton.options[5].selected == true){		document.forms[0]['billCode'].value = 'OLIFO';	}}//called from billCode pulldown on Canada Bread Hellofunction loadCanadaBreadContact(billCode){	document.forms[0].billContact.options.length = 1;	switch(billCode){		case 'CBCTO':			document.forms[0].billContact.options.length = 8;			document.forms[0].billContact.options[0] = new Option('Anthony Singh');			document.forms[0].billContact.options[1] = new Option('Greg Nowlan');			document.forms[0].billContact.options[2] = new Option('Eric Dreyfuss');			document.forms[0].billContact.options[3] = new Option('Jordan Fietje');			document.forms[0].billContact.options[4] = new Option('Ryan Reid');			document.forms[0].billContact.options[5] = new Option('Stephen Crawley');			document.forms[0].billContact.options[6] = new Option('Jason Farrell');			document.forms[0].billContact.options[7] = new Option('Enter New Name');			break;		case 'CBCCO':			document.forms[0].billContact.options.length = 6;			document.forms[0].billContact.options[0] = new Option('Gary Robb');			document.forms[0].billContact.options[1] = new Option('Catherine Holdren');			document.forms[0].billContact.options[2] = new Option('Bridgett Slott');			document.forms[0].billContact.options[3] = new Option('Kelly Gervin');			document.forms[0].billContact.options[4] = new Option('Dan Curtin');			document.forms[0].billContact.options[5] = new Option('Enter New Name');			break;		case 'CBCLA':			document.forms[0].billContact.options.length = 2;			document.forms[0].billContact.options[0] = new Option('David Townsend');			document.forms[0].billContact.options[1] = new Option('Enter New Name');			break;		case 'CBABE':			document.forms[0].billContact.options.length = 4;			document.forms[0].billContact.options[0] = new Option('Gerry Guitor');			document.forms[0].billContact.options[1] = new Option('Karena VanKippersluis');			document.forms[0].billContact.options[2] = new Option('Stephanie Veinot');			document.forms[0].billContact.options[3] = new Option('Enter New Name');			break;		case 'MULMA':			document.forms[0].billContact.options.length = 6;			document.forms[0].billContact.options[0] = new Option('Andree Guimont');			document.forms[0].billContact.options[1] = new Option('Chantal Pelletier');			document.forms[0].billContact.options[2] = new Option('Katy Yam');			document.forms[0].billContact.options[3] = new Option('Louise Godard');			document.forms[0].billContact.options[4] = new Option('Jean-Pierre Galardo');			document.forms[0].billContact.options[5] = new Option('Enter New Name');			break;		case 'OLIFO':			document.forms[0].billContact.options.length = 1;			document.forms[0].billContact.options[0] = new Option('Enter New Name');			break;		default:			document.forms[0].billContact.options.length = 1;			document.forms[0].billContact.options[0] = new Option('Enter New Name');			break;	}}function setProvState(){	if (document.forms['orderForm'].billProvStateButton.options[0].selected){		document.forms['orderForm'].billProvState.value = '';	}else{		for (j=0; j< document.forms['orderForm'].billProvStateButton.options.length;j++){			if (document.forms['orderForm'].billProvStateButton.options[j].selected){				selected = j;				break;			}		}		document.forms['orderForm'].billProvState.value = document.forms['orderForm'].billProvStateButton.options[selected].text.substring(0,2);	}}function setCountry(){	if (document.forms['orderForm'].billCountryButton.options[0].selected){		document.forms['orderForm'].billCountry.value = '';	}else{		for (j=0; j< document.forms['orderForm'].billCountryButton.options.length;j++){			if (document.forms['orderForm'].billCountryButton.options[j].selected){				selected = j;				break;			}		}		document.forms['orderForm'].billCountry.value = document.forms['orderForm'].billCountryButton.options[selected].text;		document.forms['orderForm'].billCountryFlg.value = document.forms['orderForm'].billCountryButton.options[selected].value;	}}	// -->