function open_window()
{
  window.open('sertifikat.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=533,height=729');
}

function open_window2()
{
  window.open('certificateroseabsolute.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=533,height=729');
}

function open_window3()
{
  window.open('certificaterosewater.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=636,height=900');
}

function open_window4()
{
  window.open('bathsaltsrosepop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}


function open_window5()
{
  window.open('naturalrosesoappop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window6()
{
  window.open('roseoilsouvenirvialspop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window7()
{
  window.open('bulgarianrosewater.html', '_blank' , 'scrollbars=yes, toolbar=no,menubar=no,resizable=no,width=499,height=1050');
}


function open_window8()
{
  window.open('candlewithfragranceofrosepop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window9()
{
  window.open('eaudeparfumrosefragrancepop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}


function open_window10()
{
  window.open('concentrateperfumeroseoilpop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window11()
{
  window.open('facecreampop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window12()
{
  window.open('handcreampop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window13()
{
  window.open('naturalrosesoappop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window14()
{
  window.open('rosesoapblossompop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window15()
{
  window.open('packagingdescription.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=570');
}

function open_window16()
{
  window.open('rosepeatlsjampop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=620');
}

function open_window17()
{
  window.open('lux_rose_creampop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=420');
}

function open_window18()
{
  window.open('rosebodylotionpop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=620');
}

function open_window19()
{
  window.open('rosecleansingmilkpop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=600');
}

function open_window20()
{
  window.open('rosehandcream2pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window21()
{
  window.open('rosefacenightcreampop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window22()
{
  window.open('rosefacedaycreampop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window23()
{
  window.open('bottleroseabsolute.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=280,height=380');
}

function open_window24()
{
  window.open('rosefield.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=600,height=900');
}

function open_window25()
{
  window.open('rosegiftset1pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window26()
{
  window.open('rosegiftset4pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window27()
{
  window.open('rosegiftset3pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window28()
{
  window.open('rosegiftset2pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window29()
{
  window.open('rosegiftset5pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}

function open_window30()
{
  window.open('rosegiftset6pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=520');
}


function open_window31()
{
  window.open('rosefield1.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=699,height=525');
}

function open_window32()
{
  window.open('rosefield2.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=699,height=467');
}

function open_window33()
{
  window.open('rosefield3.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=699,height=467');
}

function open_window34()
{
  window.open('bath_salts_ofrosepop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=580');
}

function open_window35()
{
  window.open('bath_salts_ofrosepop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=499,height=580');
}
function open_window36()
{
  window.open('rosefield_full1_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=900,height=350');
}
function open_window37()
{
  window.open('rose_harvest1_full_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=700,height=467');
}
function open_window38()
{
  window.open('rose_field_full_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=600');
}
function open_window39()
{
  window.open('rose_dew_full_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=667');
}
function open_window40()
{
  window.open('rose_dew1_full_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=375');
}
function open_window41()
{
  window.open('rose_blossoms_full_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=751');
}
function open_window42()
{
  window.open('rose_harvest_ful_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=417');
}

function open_window43()
{
  window.open('roseblossoms3_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=667');
}

function open_window44()
{
  window.open('roseholidayspecial_pop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=887');
}


function open_window46()
{
  window.open('rosesoap_heartpop.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=500,height=667');
}

function open_window1()
{
  window.open('bottlerose.html', '_blank' , 'scrollbars=no, toolbar=no,menubar=no,resizable=no,width=280,height=380');
}

function close_window()
{
window.close();
}






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;
}