function open_window1()
{
  window.open('popup/bsrose.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window1a()
{
  window.open('popup/prose.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}
function open_window1b()
{
  window.open('popup/brose.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window2()
{
  window.open('popup/bslavender.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window2a()
{
  window.open('popup/plavender.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}
function open_window2b()
{
  window.open('popup/blavender.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window3()
{
  window.open('popup/bsrosemary.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window3a()
{
  window.open('popup/prosemary.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}
function open_window3b()
{
  window.open('popup/brosemary.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window4()
{
  window.open('popup/bsylang.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window4a()
{
  window.open('popup/pylang.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}
function open_window4b()
{
  window.open('popup/bylang.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window5()
{
  window.open('popup/bsgeranium.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window5a()
{
  window.open('popup/pgeranium.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}
function open_window5b()
{
  window.open('popup/bgeranium.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window6()
{
  window.open('popup/bsjuniper.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window6a()
{
  window.open('popup/pjuniper.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}
function open_window6b()
{
  window.open('popup/bjuniper.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window7()
{
  window.open('popup/bssandal.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window7a()
{
  window.open('popup/psandal.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}
function open_window7b()
{
  window.open('popup/bsandal.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window8()
{
  window.open('popup/bf_paradise.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window9()
{
  window.open('popup/bf_forest.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window10()
{
  window.open('popup/bathoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window11()
{
  window.open('popup/footgel.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window12()
{
  window.open('popup/footcream.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window13()
{
  window.open('popup/footsoap.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window14()
{
  window.open('popup/gelrelaxing.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window15()
{
  window.open('popup/creamrelaxing.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window16()
{
  window.open('popup/soaprelaxing.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window17()
{
  window.open('popup/natrose.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window18()
{
  window.open('popup/soapsea.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window19()
{
  window.open('popup/heart.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}




function open_window20()
{
  window.open('popup/breeze.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window21()
{
  window.open('popup/roseengraving.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window22()
{
  window.open('popup/soapblosom.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window23()
{
  window.open('popup/soaplavender.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window24()
{
  window.open('popup/soaprose.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window25()
{
  window.open('popup/natlavender.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window26()
{
  window.open('popup/soappine.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=410,height=550');
}



function open_window27()
{
  window.open('popup/lavendercandle.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=490,height=630');
}


function open_window28()
{
  window.open('popup/sponge_yellow.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window29()
{
  window.open('popup/sponge_red.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window30()
{
  window.open('popup/sponge_green.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window31()
{
  window.open('popup/waterlily.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window31a()
{
  window.open('popup/bwaterlily.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window31b()
{
  window.open('popup/gelwaterlily.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window31c()
{
  window.open('popup/condwaterlily.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window32()
{
  window.open('popup/soapset.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window33()
{
  window.open('popup/footcare.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window34()
{
  window.open('popup/footcareanti.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window35()
{
  window.open('popup/setrose.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window36()
{
  window.open('popup/rosesouvenir.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window37()
{
  window.open('popup/setvials.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window38()
{
  window.open('popup/setvialspine.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window39()
{
  window.open('popup/setbergamot.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window40()
{
  window.open('popup/lavenderoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window41()
{
  window.open('popup/pineoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window42()
{
  window.open('popup/setsponge.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window43()
{
  window.open('popup/fp1.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window44()
{
  window.open('popup/fp2.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window45()
{
  window.open('popup/fp3.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window46()
{
  window.open('popup/fp4.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window47()
{
  window.open('popup/fp5.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window48()
{
  window.open('popup/fp6.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}



function open_window49()
{
  window.open('popup/fp7.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window50()
{
  window.open('popup/fp8.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window51()
{
  window.open('popup/index.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=280,height=270');
}


function open_window52()
{
  window.open('popup/rosecandle.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=550');
}

function open_window53()
{
  window.open('popup/applecandle.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window54()
{
  window.open('popup/rosefacecreams.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}


function open_window55()
{
  window.open('popup/rosehandcreams.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=570');
}

function open_window56()
{
  window.open('popup/bulgarianrosewater.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=550');
}

function open_window57()
{
  window.open('popup/bulgarianlavenderwater.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=600');
}

function open_window58()
{
  window.open('popup/roseoilperfume50.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=560');
}

function open_window59()
{
  window.open('popup/roseoilperfume10.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=400,height=560');
}

function open_window60()
{
  window.open('popup/thermalmudsoap.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=510');
}

function open_window61()
{
  window.open('popup/antisepticsoap.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=550,height=500');
}

function open_window62()
{
  window.open('popup/citronellaessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window63()
{
  window.open('popup/juniperessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window64()
{
  window.open('popup/corianderessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window65()
{
  window.open('popup/eucalyptusessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window66()
{
  window.open('popup/orangeessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window67()
{
  window.open('popup/grapefruitessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window68()
{
  window.open('popup/ylangylangessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window69()
{
  window.open('popup/teatreeessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window70()
{
  window.open('popup/lemonessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window71()
{
  window.open('popup/geraniumessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window72()
{
  window.open('popup/peppermintessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window73()
{
  window.open('popup/lavenderessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}

function open_window74()
{
  window.open('popup/whitepineessentialoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=440,height=560');
}
function open_window75()
{
  window.open('certificatewavenderoil.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=600,height=780');
}
function open_window76()
{
  window.open('certificatewavenderwater.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=600,height=760');
}
function validateForm (formname,loginemail){
	var errorstring='';
		tit='';

	if (document.regform.radio[2].checked) {tit = 'Mr.'}
	if (document.regform.radio[1].checked) {tit = 'Mrs.'}
        	if (document.regform.radio[0].checked) {tit = 'Ms.'}

        if (tit==''){
		errorstring=errorstring + '   -Check Title\n';
	}

	//Contact Us
	if (formname=='contactus'){
		if (fieldValid (document.regform.comments.value,'',10)==false){
			errorstring=errorstring + '   -Enter Contact Mesage\n';
		}
	}




	//Validate Profile Form

	if (fieldValid (document.regform.fname.value,'',3)==false){
		errorstring=errorstring + '   -Enter First Name\n';
	}
	if (fieldValid (document.regform.lname.value,'',3)==false){
		errorstring=errorstring + '   -Enter Last Name\n';
	}	
	
	if (fieldValid (document.regform.email.value,'email',0)==false){
		errorstring=errorstring + '   -Enter Valid E-Mail Address\n';
	}
	if (fieldValid (document.regform.country.value,'',2)==false){
		errorstring=errorstring + '   -Enter Your Country\n';
	}
	
		
	if (errorstring !=''){
		alert ('Please Provide the Following Information:    \n\n' + errorstring);
		return false;
	}
	return true;
}

//Validate Field
function fieldValid (fieldvalue,validatetype,requirelength){	
	var fieldvalid=true;
	if (validatetype=='email'){
		//Check for Valid e-Mail Address
		var validchars=new Array ('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','0','1','2','3','4','5','6','7','8','9','@','.','!','_','-','+','~','`','\'');
		if (fieldvalue==''){
		fieldvalid=false;
		}
		for (a = 0; a < fieldvalue.length; a++){
			var tmpval=fieldvalue.substring (a,a+1);
			aok=0;
			for (b = 0; b < validchars.length; b++){
				var tmpchk=validchars[b];
				if (tmpchk==tmpval){
					aok=1;
				}
			}
			if (aok==0){
				fieldvalid=false;
			}
		}
		var tmplocat=fieldvalue.indexOf ('@');
		var tmplocdot=fieldvalue.indexOf ('.',tmplocat);
		if (tmplocat<1 || tmplocdot<1){
		 	fieldvalid=false;	
		}
	} if (validatetype=='number'){
		//Check for Number
		var tmpnum=parseInt(fieldvalue);
		if (tmpnum=='NaN'){
			fieldvalid=false;
		}
		if (tmpnum>requirelength){
			fieldvalid=false;
		}
	}
	
	else {
		//Check for Whitespace 
		var tmpstring=crunchWhite (fieldvalue);
		if (tmpstring.length<requirelength){
			fieldvalid=false;
		}	
	}
	return fieldvalid;
}

//Return a String with No White Space
function crunchWhite (instring){
	if (instring==''){
          	return instring;
        }
        var returnstring='';
        
	// Look for Whitespace
	for (a = 0; a < instring.length; a++){
		var tmpchar = instring.substring(a, a+1);
                if (tmpchar!=' ' || tmpchar!='\t'){
                	returnstring=returnstring+tmpchar;
                }
	}
           return returnstring;
}

//Trim White Space (Off Edges of String)
function trim(instring) {
	var returnstring = instring;
	var ch = returnstring.substring(0, 1);
	while (ch == " ") { 
	   returnstring = returnstring.substring(1, returnstring.length);
	   ch = returnstring.substring(0, 1);
	}
	ch = returnstring.substring(returnstring.length-1, returnstring.length);
	while (ch == " ") {
	   returnstring = returnstring.substring(0, returnstring.length-1);
	   ch = returnstring.substring(returnstring.length-1, returnstring.length);
	}
	while (returnstring.indexOf("  ") != -1) {
	   returnstring = returnstring.substring(0, returnstring.indexOf("  ")) + returnstring.substring(returnstring.indexOf("  ")+1, returnstring.length); // Again, there are two spaces in each of the strings
	}
	return returnstring;
}