function showhelp1(a,e){var g,f;text="hello friends";g=a.clientX+document.documentElement.scrollLeft+document.body.scrollLeft+20;f=a.clientY+document.documentElement.scrollTop+document.body.scrollTop+0;var c=document.getElementById("box");c.style.display="block";c.style.fontFamily="Verdana,Arial";c.style.fontSize="12px";c.style.color="#0884A7";c.style.height="auto";c.style.width="300px";c.style.left=g+"px";c.style.top=f+"px";var b='<table width="170" border="0" cellspacing="0" cellpadding="0" style="position:absolute;z-index:3000;"><tr><td width="9" height="10" background="images/border1/border_wh_01.gif"></td><td height="10" background="images/border1/border_wh_02.gif"></td><td width="8" height="10" background="images/border1/border_wh_03.gif"></td></tr><tr><td width="9" background="images/border1/border_wh_04.gif"></td><td bgcolor="#FFFFFF"><img src="images/';var d='" width="150" alt="'+e+'"></td><td width="8" background="images/border1/border_wh_06.gif"></td></tr><tr><td width="9" height="9" background="images/border1/border_wh_07.gif"></td><td height="9" background="images/border1/border_wh_08.gif"></td><td width="8" height="9" background="images/border1/border_wh_09.gif"></td></tr></table>';c.innerHTML=b+e+d}function hidehelp1(){if(document.getElementById("box")!=null){document.getElementById("box").style.display="none"}}function payment_check(){document.getElementById("billing_address_checkout_buitton").style.display="block";document.getElementById("Payment_Section_div").style.display="block";document.getElementById("checkout_section_div").style.display="none"}function change_item_style(){document.getElementById("shopping_cart_icon").className="shopping-cart_hover";document.getElementById("item_link").className="header_link_hover"}function change_item_style_b(){document.getElementById("shopping_cart_icon").className="shopping-cart";document.getElementById("item_link").className="header_link"}function email_value(){if(document.subscribe.email==""){alert("Please Enter Email-Id");document.subscribe.email.focus();return false}
if(document.subscribe.email!=""){

	var x=document.subscribe.email.value;
	var atpos=x.indexOf("@");
	var dotpos=x.lastIndexOf(".");
	if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
	  {
	  alert("Please enter a valid email address.");
	  document.subscribe.email.focus();
	  return false;
	  }	
	
	
	}}function change_color(b,d,c,a){total_cat=document.getElementById("check_total_cat").value;if(document.getElementById(b+c)){document.getElementById(b+c).style.border="#691974 1px solid"}if(document.getElementById(d+c)){document.getElementById(d+c).style.color="#691974"}if(a){if(document.getElementById(a+c)){document.getElementById(a+c).style.color="#691974"}}for(i=1;i<=total_cat;i++){if(b+i!=b+c){if(document.getElementById(b+i)){document.getElementById(b+i).style.border="#DDDDDD 1px solid"}}if(d+i!=d+c){document.getElementById(d+i).style.color="#008000"}if(a){if(a+i!=a+c){document.getElementById(a+i).style.color="#89291B"}}}}function change_color_out(b,d,c,a){if(document.getElementById(b+c)){document.getElementById(b+c).style.border="#DDDDDD 1px solid"}if(document.getElementById(d+c)){document.getElementById(d+c).style.color="#008000"}if(a){if(document.getElementById(a+c)){document.getElementById(a+c).style.color="#89291B"}}}function change_color_src(d,a,b,c){total_cat=document.getElementById("check_total_cat").value;if(document.getElementById(b+c)){document.getElementById(b+c).style.border="#691974 1px solid"}if(document.getElementById(d+c)){document.getElementById(d+c).style.color="#691974"}if(document.getElementById(a+c)){document.getElementById(a+c).style.color="#691974"}for(i=1;i<=total_cat;i++){if(b+i!=b+c){if(document.getElementById(b+i)){document.getElementById(b+i).style.border="#DDDDDD 1px solid"}}if(d+i!=d+c){if(document.getElementById(d+i)){document.getElementById(d+i).style.color="#706D32"}}if(a+i!=a+c){if(document.getElementById(a+i)){document.getElementById(a+i).style.color="#706D32"}}}}function change_color_out_src(d,a,b,c){document.getElementById(b+c).style.border="#DDDDDD 1px solid";document.getElementById(d+c).style.color="#706D32";document.getElementById(a+c).style.color="#706D32"}function alpha_value(a){document.azform.alpha.value=a;document.azform.submit()}function PrintPage(){sharetd=document.getElementById("sharethistd").innerHTML;document.getElementById("sharethistd").innerHTML="";obj_win=window.open("about:blank","new_win");obj_win.document.write("<html><title>Whole Blossom</title><head>");obj_win.document.write("</head><link href='main.css' rel='stylesheet' type='text/css' />");obj_win.document.write("<body >");obj_win.document.write("<div align='center'>");obj_win.document.write("<div style='width:820px; border:solid 1px; '>");obj_win.document.write(document.getElementById("productGeneral").innerHTML);obj_win.document.write("</div></div>");obj_win.document.write("</body></html>");obj_win.document.close();obj_win.focus();obj_win.print();obj_win.close();document.getElementById("sharethistd").innerHTML=sharetd}function attrib_hover_img(a,d,c,b){document.getElementById("productMainImage_hover").innerHTML='<img src="'+a+'"width="350px" height="340px" title="'+d+'" alt="'+d+'" />';if(c=="hover_div"){for(i=0;i<=document.getElementById("total_hover_div").value;i++){document.getElementById("hover_div"+i).style.border="1px solid #dddddd"}document.getElementById("hover_div"+b).style.border="1px solid #7A218E"}}function get_borders_att(a){val=document.getElementById("total_att_value").value;for(i=1;i<=val;i++){if(a!=i){document.getElementById("att_images"+a).style.border="0px solid #dddddd"}}document.getElementById("att_images"+a).style.border="1px solid #7A218E"}function get_borders_att_out(a){document.getElementById("att_images"+a).style.border="0px solid #dddddd"}function check_valdte(){var a=0,b=0,c;for(i=0;i<document.getElementsByTagName("input").length;i++){if(document.getElementsByTagName("input")[i].type=="radio"){b=b+1;c=document.getElementsByTagName("input")[i].id;if(c.substr(0,6)=="attrib"){if(document.getElementsByTagName("input")[i].checked==true){a=1}}}}if(b!=0){if(a==0){alert("Please Select Option.");return false}}if(document.getElementById("attrib-3-0").value==""){alert("Please select a Delivery Date.");return false}}function give_border(){document.getElementById("testimonial_image_div").style.border="1px solid #894096"}function remove_border(){document.getElementById("testimonial_image_div").style.border="1px solid #ccc"}var popUpWin=0;function popUpWindow(e,d,c,b,a){b=620;a=800;if(popUpWin){if(!popUpWin.closed){popUpWin.close()}}popUpWin=open(e,"popUpWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width="+b+",height="+a+",left="+d+", top="+c+",screenX="+d+",screenY="+c+"")};
function check_valdte_product(){
		var flag=0,k=0,str;
			for(i=0;i<document.getElementsByTagName('input').length;i++)
				{
					if(document.getElementsByTagName('input')[i].type=='radio')
					{
						k=k+1;
						str=document.getElementsByTagName('input')[i].id
						if(str.substr(0,6)=='attrib'){
						if(document.getElementsByTagName('input')[i].checked==true)
						{
						flag=1;
						}
						}
					}
				}
			if(k!=0){
			 if (flag==0){
			  //alert('Please Select a Stem Quantity.');
			  alert('Please Select a quantity.');
			  return false;
			 }
			}
			var image_att=document.getElementById('total_image_attribute').value;
			for(i=1;i<=image_att;i++)
			{

				if(document.getElementById('attrib_value-'+i))
				{
			    		att_id=document.getElementById('attrib_value-'+i).value
						if(document.getElementById('attrib-surcharge-'+att_id))
						{
							if(document.getElementById('attrib-surcharge-'+att_id).value=='')
							{
				  				var indexvar = document.getElementById('attrib-surcharge-'+att_id).selectedIndex;
								
								txtval = document.getElementById('attrib-surcharge-'+att_id).options[indexvar].text;
								
								match = txtval.search(/Delivery is not/i)
								if(match == -1){
										alert('One or more color options has not been completed. Please complete your color selections.');
										return false;
								}
								
				 			}
						}
						if(document.getElementById('attrib-surcharge-'+att_id))
						{
				 			if(document.getElementById('attrib-surcharge-'+att_id).value=='')
							{
								//  alert('Please Select Surcharge.');
								//  return false;
				 			}
						}				
			   		}
			 }
			if (document.getElementById('attrib-3-0').value==''){
			 alert('Please Enter a Delivery Date.')
			 return false;
			}	

		}

