var colores = new Array( 1, 1, "picture.gif|Igual a la imagen", "white|Blanco", "#adcae2|Azul", "pink|Rosado", "beige|Beige", "#bd94e8|Violeta" ); var sabores = new Array( 1, 2, "Chocolate|Chocolate", "Vainilla|Vainilla" ); //var sabores = new Array( 1, 2, "Chocolate|Chocolate","Vanilla|Vainilla","Strawberry|Fresa","Cappuccino|Capuchino"); var relleno = new Array( 1, "Vainilla|Vainilla", "Chocolate|Chocolate", "Coco|Coco", "Choco-Coco|Choco-Coco" ); //var relleno = Chocolate|Chocolate","Choco-Chip|Choco-Chip","Vanilla|Vainilla","Vanilla-Chip|Vainilla-Chip","Coconut|Coco","Peanuts and Raisin|Mani y pasas","Strawberry with little fresh Strawberries|Fresa con fresitas naturales"); var clrs = new Array(); var flrs = new Array(); var currentFlavor = null; var cakeProperties = new Array(); cakeProperties["PrimaryColor"] = ""; cakeProperties["SecundaryColor"] = ""; cakeProperties["Flavor"] = ""; cakeProperties["Fill"] = ""; function createColors(id, start){ for(c=2;c '); }else{ document.write(' '); } } } function createFlavors(id){ for(c=2;c'+sabores[c].split("|")[0]+''); } } function createFill(id){ for(c=1;c'+relleno[c].split("|")[0]+''); } } function AddEventToTableCells(){ clrs = getReference("tblColor").getElementsByTagName("A"); for(clr=0;clr1&¤tFlavor!=null){ currentFlavor.checked=false; currentFlavor=null; } } cakeProperties["Flavor"]=""; for(flr=0;flr" + //"Color del merengue: " + cakeProperties["SecundaryColor"] + "
" + "Sabor: " + cakeProperties["Flavor"] + "
" + "Relleno: " + cakeProperties["Fill"] + "
" + "Dedicatoria: " + getReference("txtText").value; //alert(getReference("txtCakeProperties").value); } function getReference(elem) { if( document.layers ) { //Netscape layers return document.layers[elem]; } if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera return document.getElementById(elem); } if( document.all ) { //Proprietary DOM; IE4 return document.all[elem]; } if( document[elem] ) { //Netscape alternative return document[elem]; } return false; } document.write(''); document.write('\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '\n'+ '
Color del cake:
Escoja el sabor
para la panetela:
Escoja un sabor
para el relleno:
Dedicatoria:
\n'+ ''); AddEventToTableCells();