function fix_incremental_pricing(optionText) {	// this function only work with <select> elements with "Format" as their name.	// it removes the (+#.##) format from the option text (but not the value property).	// this format is required for yahoo store items to implement incremental pricing.		// split space-delimited text string into an array	var optionVals = optionText.split(' ');		// save first array element as the <select> name	dropdownName = optionVals[0];		// for all other values in array, strip off "(+#.##)" portion and store back into array	for(var i=1; i < optionVals.length; i++) 	{		firstPos = optionVals[i].indexOf('(+');			if (firstPos > 1) {			optionVals[i] = optionVals[i].slice(0,firstPos);		}		//alert(optionVals[i]);			k = i - 1;			// for each element in array, replace text value for that option element with array element value		document.orderform.Format.options[k].text = optionVals[i];	}}function fix_incremental_pricing_multi(optionText, formID) {	// this function only work with <select> elements with "Format" as their name.	// it removes the (+#.##) format from the option text (but not the value property).	// this format is required for yahoo store items to implement incremental pricing.		// split space-delimited text string into an array	var optionVals = optionText.split(' ');		// save first array element as the <select> name	dropdownName = optionVals[0];		// for all other values in array, strip off "(+#.##)" portion and store back into array	for(var i=1; i < optionVals.length; i++) 	{		firstPos = optionVals[i].indexOf('(+');			if (firstPos > 1) {			optionVals[i] = optionVals[i].slice(0,firstPos);		}		//alert(optionVals[i]);			k = i - 1;			// for each element in array, replace text value for that option element with array element value		document.forms[formID].Format.options[k].text = optionVals[i];	}}function add_optional_info(ystore_id, tag_name, yahoo_tag_data) {		// run this function with onload handler for each type of 	// yahoo store tag that needs to be added if not empty;	// this is designed to work with single item pages		// remove all dashes or non-alphanum chars from store tage name	// before storing into tag_name variable		// name of span to replace text in should be:	// product_id . '_' . tag_name		if ((yahoo_tag_data != "") || (yahoo_tag_data != null)) {		ref_id = ystore_id + "_" + tag_name;			var elem = document.getElementById(ref_id);		var children = elem.childNodes;		// add a line break, then paste in optional info		if (yahoo_tag_data != "") {			var addTxt1 = elem.appendChild(document.createElement("br"));		}		var paste_txt = document.createTextNode(yahoo_tag_data);		var addTxt2 = elem.appendChild(paste_txt);	}	}function add_price_info(ystore_id, tag_name, yahoo_tag_data) {		// run this function with onload handler for each type of 	// yahoo store tag that needs to be added if not empty;	// this is designed to work with single item pages		// remove all dashes or non-alphanum chars from store tage name	// before storing into tag_name variable		// name of span to replace text in should be:	// product_id . '_' . tag_name		if ((yahoo_tag_data != "") || (yahoo_tag_data != null)) {		ref_id = ystore_id + "_" + tag_name;				if (yahoo_tag_data != "") {			yahoo_tag_data = "$" + yahoo_tag_data;		}				var elem = document.getElementById(ref_id);		var children = elem.childNodes;		// add a line break, then paste in optional info		//var addTxt1 = elem.appendChild(document.createElement("br"));		var paste_txt = document.createTextNode(yahoo_tag_data);		var addTxt2 = elem.appendChild(paste_txt);	}	}function name_main () {		// name main store window, from inside of iframe (product page)	parent.window.name = "main_win";}