// JavaScript Document

var os;
if(document.layers)
 os = "n4";
else if(document.getElementById&&!document.all)
 os = "n6";
else if(document.all)
 os = "ie";
function run()
{
	var url=location.href;
 if(os == "ie"){
  document.getElementById('book').innerHTML='<a href="javascript:window.external.AddFavorite(\'' + location.href +'\', \'' + location.href +'\')" style="font-size:12px;color:#ffffff;font-family:verdana;"><img src="images/bookmark.jpg" alt="BOOKMARK " border=0><span style="background-color: seashell; font-size:10px;"></a>'
 }else{
  document.getElementById('book').innerHTML='<a href="javascript:window.sidebar.addPanel(\'' + location.href +'\', \'' + location.href +'\',\'\')" style="font-size:12px;color:#ffffff;font-family:verdana;"><img src="images/bookmark.jpg" alt="BOOKMARK " border=0><span style="background-color: seashell; font-size:10px;"></a>'
 }
 
}

<!--



var message="WARNING! Unauthorized reproduction of this document or any portion of it,  may result in severe civil and criminal penalties. \nAll materials on this site subject to Legal Notice (Copyright) including amazed's  and smglgroup's Trademarks\n For product or service comments, visit Feedback\n For site comments, write to webmaster@indianwebstudio.com Right Click Prohibited  \n\nAll Right Reserved. Amazed Corporation";

	function click(e) {

		if (document.all) {

			if (event.button==2||event.button==3) {

			alert(message);			

			return false;

				  }

			  }

		if (document.layers) {

			if (e.which == 3) {

			alert(message);

			return false;

				     }

}

}

if (document.layers) {

document.captureEvents(Event.MOUSEDOWN);

}

document.onmousedown=click;

// -->







function sbd()

{



}





// menu effect

function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function MM_findObj(n, d) { //v4.01

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}



function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

//Login Check Function :

/*

this function is meant for checking the login details on client end side

*/



function check_login(frm)

	{

	if(frm.userid.value=="")

		{

		frm.userid.focus()

		alert("Please enter the User Id")

		return false		

		}

	if(frm.password.value=="")

		{

		frm.password.focus()

		alert("Please enter the Password")

		return false		

		}		

		

	}

	

/*********************************************************************************************/	

	

	function checkSearchWord(frm)

{

	if(frm.search_word.value=="")

		{

		frm.search_word.focus()

		alert("Please enter the search word")

		return false		

		}

	

}



	

	

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

//<!----------------------------------------------------------------------->//

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

function check_add_category(frm)

	{

		if(frm.section_name.value=="")

			{

				alert("Please Enter the Section Name")

				frm.section_name.focus()

				return false

			}

		if(frm.previous_image.value=="")

			{

			if(frm.section_image.value=="")

				{

					alert("Please Select the Section Image")

					frm.section_image.focus()

					return false

				}			

			}

		if(frm.section_meta_title.value=="")

			{

				alert("Please Enter the Section Meta Title")

				frm.section_meta_title.focus()

				return false

			}			

		if(frm.section_meta_description.value=="")

			{

				alert("Please Enter the Section Meta Description")

				frm.section_meta_description.focus()

				return false

			}			

		if(frm.section_comment_content.value=="")

			{

				alert("Please Enter the Section Comment Content")

				frm.section_comment_content.focus()

				return false

			}			

		if(frm.section_description.value=="")

			{

				alert("Please Enter the Section Description")

				frm.section_description.focus()

				return false

			}			

			

		

	}

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	



/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

//Category Addition Check Function :

/*

this function is meant for checking the category addition on client end side

*/

function check_category(frm)

	{

		if(frm.categories_name.value=="")

			{

			alert("Please enter the Categories Name...")

			frm.categories_name.focus()

			return false

			}	

		if(frm.categories_description.value=="")

			{

			alert("Please enter the Categories Description...")

			frm.categories_description.focus()

			return false

			}	

		if(frm.categories_meta_title.value=="")

			{

			alert("Please enter the Categories Meta Title...")

			frm.categories_meta_title.focus()

			return false

			}

		if(frm.categories_meta_description.value=="")

			{

			alert("Please enter the Categories Meta Description...")

			frm.categories_meta_description.focus()

			return false

			}			

		if(frm.categories_comment_content.value=="")

			{

			alert("Please enter the Categories Comment Content...")

			frm.categories_comment_content.focus()

			return false

			}			

		if(isNaN(frm.categories_trade_percentile.value))

			{

			alert("Please enter the Numeric Value for Categories trade percentile...")

			frm.categories_trade_percentile.value=0

			frm.categories_trade_percentile.focus()

			return false

			}			

		if(isNaN(frm.categories_retail_percentile.value))

			{

			alert("Please enter the Numeric Value for Categories retail percentile...")

			frm.categories_retail_percentile.value=0

			frm.categories_retail_percentile.focus()

			return false

			}			

			

	}



/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

//function to open new window

function open_new_window(winname)

	{

newWindow = window.open(winname,"subWind","status,scrollbars,height=500,width=500");

newWindow.focus( );

	}

	



/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

function check_cat_image(frm)	

	{

		

	}

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	





/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

function check_add_product(frm)	

	{

		error=false

		errormsg=""

		if(frm.products_name.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Name \t\t"				

			}

		if(frm.products_price.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Price \t\t"				

			}			

		

		if(frm.products_size.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Size \t\t"				

			}			

		if(frm.products_size_unit.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Size Unit \t\t"				

			}

		if(frm.products_weight.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Weight \t\t"				

			}			

		if(frm.products_weight_unit.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Weight Unit \t\t"				

			}			

		if(frm.products_trade_percentile.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Trade Percentile \t\t"				

			}			

		if(frm.products_retail_percentile.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Retail Percentile \t\t"				

			}			

		if(frm.products_description.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Description \t\t"				

			}

		if(frm.products_comment_content.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Comment Content\t\t"				

			}			

		if(frm.products_meta_title.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Meta Title \t\t"				

			}	

		if(frm.products_meta_keywords.value=="")

			{

				error=true

				errormsg+="\n\t Please Enter the Products Meta Keywords\t\t"				

			}	

			

			if(error)

				{

					alert(errormsg)

					return false

				}

				

	}

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

//function to check enquiry

function check_enquiry(frm)

	{

		error=false

		errormsg=""
		
		
			function LTrim( value )
	{
        var re = /\s*((\S+\s*)*)/;
   		return value.replace(re, "$1");
     }
       // Removes ending whitespaces
     function RTrim( value )
	 {
  		  var re = /((\s*\S+)*)\s*/;
  		  return value.replace(re, "$1");
 	 }// Removes leading and ending whitespaces
   		 function trim( value )
		{
        	return LTrim(RTrim(value));
		}

	var name=frm.name.value
	name=trim(name)
  // alert(name); 
   if(name=="")
		{
			error=true
			errormsg+="\n\tPlease enter your name\t\n"
		}


	  var address=frm.address.value
	  address=trim(address)
	//  alert(address);
	  if(address=="")
	    {
			error=true
			errormsg+="\n\tPlease enter your address\t\n"
		}	
		var city=frm.city.value
	    city=trim(city)
		//alert(city);
		if(city=="")
		{
			error=true
			errormsg+="\n\tPlease enter your city\t\n"
		}	
		var country=frm.country.value
	country=trim(country)
	//alert(country);
		if(country=="")
		{
			error=true
			errormsg+="\n\tPlease enter your country\t\n"
		}	
		
		var phonenumber=frm.phonenumber.value
	phonenumber=trim(phonenumber)
	//	alert(phonenumber);
		if(phonenumber=="")
			{
			error=true
			errormsg+="\n\tPlease enter your phonenumber\t\n"
		    }
		else
  			{
 			 var stripped = phonenumber.replace(/[\(\)\.\-\ ]/g, '');
			//strip out acceptable non-numeric characters
  			 if (isNaN(parseInt(stripped))) 
   			 {
   					error=true
   					errormsg+="\n\tPlease Enter Valid Phone Number.\t\n";
   			 }
  			}
	
	var email=frm.email.value
	email=trim(email)
//	alert(email);
	if(email=="")
		{
			error=true
			errormsg+="\n\tPlease enter your email address\t\n"
		}
	else
		{
			
			if(email.indexOf("@")==-1 || email.indexOf(".")==-1 || email.length<5)
				{
					error=true
					errormsg+="Please enter the proper email address..."
				}
		}
	var query=frm.query.value
	query=trim(query)
	//alert(query);
		if(query=="")
		{
			error=true
			errormsg+="\n\tPlease enter your enquiry...\t\n"
		}	
		if(frm.match_image.value!=frm.match_text.value)
			{
				errormsg+="\n\t Given String does not match..."
				error=true
			}	
	if(error)	
		{
			alert(errormsg)
			return false
		}
	
	}	

	/*********************************************************************************************/



function check_form(frm)

	{
		error=false
		errormsg=""
  function LTrim( value )
	{
        var re = /\s*((\S+\s*)*)/;
   		return value.replace(re, "$1");
     }
       // Removes ending whitespaces
     function RTrim( value )
	 {
  		  var re = /((\s*\S+)*)\s*/;
  		  return value.replace(re, "$1");
 	 }// Removes leading and ending whitespaces
   		 function trim( value )
		{
        	return LTrim(RTrim(value));
		}
	var fname=frm.fname.value
	fname=trim(fname);
	//alert(fname);
	if(fname=="")
		{
			error=true
			errormsg+="\n\tPlease enter your First name\t\n"
		}
	
	var lname=frm.lname.value
	//alert(lname);
	lname=trim(lname);
		if(lname=="")
		{
			error=true
			errormsg+="\n\tPlease enter your Last name\t\n"
		}
		var telephone=frm.contactphonenumber.value
    	telephone=trim(telephone)
 	
	//alert(telephone);
		
		if(telephone=="")
		{
			error=true
			errormsg+="\n\tPlease enter your Telephone No.\t\n"
		}
		else
		{
			 var stripped = telephone.replace(/[\(\)\.\-\ ]/g, '');
			//strip out acceptable non-numeric characters
  			 if (isNaN(parseInt(stripped))) 
   			 {
   					error=true
   					errormsg+="\n\tPlease Enter Valid Phone Number.\t\n";
   			 }
  		}
	var email=frm.contactemailaddress.value
	email=trim(email)	
	//alert(email);
	if(email=="")
		{
			error=true
			errormsg+="\n\tPlease enter your email address\t\n"
		}
	else
		{
			email=frm.contactemailaddress.value
			if(email.indexOf("@")==-1 || email.indexOf(".")==-1 || email.length<5)
				{
					error=true
					errormsg+="Please enter the proper email address..."
				}
		}
		
		var comments=frm.contactenquiry.value
		comments=trim(comments)
		//alert(comments);
		if(comments=="")
		{
			error=true
			errormsg+="\n\tPlease enter your enquiry...\t\n"
		}
		if(frm.match_image.value!=frm.match_text.value)
			{
				errormsg+="\n\t Given String does not match..."
				error=true
			}	
		
	if(error)	
		{
			alert(errormsg)
			return false
		}
			

	}

		

	

	

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

function add_to_cart(frm)
	{  
	  
	if(frm.ring_check.value==1)
	  {
	   if(frm.ring_size.value=='other')
		{	
			if(frm.cust_ring_size.value=='')
			{
				alert("Please enter customised ring size")
				return false
			}
			else
			 var stripped = frm.cust_ring_size.value.replace(/[\(\)\.\-\ ]/g, '');
			//strip out acceptable non-numeric characters
  			 if (isNaN(stripped)) 
   			 {
   					alert("Please enter valid customised ring size")
				    return false
   			 }
			if(frm.cust_ring_size.value<4 || frm.cust_ring_size.value>11)
			{
				alert("Please enter ring size more than 4 and less than 11")
				return false
			}
		}
		if(frm.ring_size_type.value=='size_type')
		{
			alert("Please enter ring size type(US/European)")
				return false
		}
	
	  }
		if(frm.avail_product.value!=0)
		{
            
		   if(parseInt(frm.products_quantity.value) >parseInt(frm.avail_product.value))
			{
				

				text= "Maximum Order Quantity is "+ frm.avail_product.value+". Please order "+ frm.avail_product.value+" or less quantity of product. You have entered"+ frm.products_quantity.value

				alert(text)

				frm.products_quantity.value=frm.minqty.value

				return false

			}
			
			    
	             if(frm.avail_product.value<1)
		         {
				text= "We have no quanity available for this  product"

				alert(text)

				frm.products_quantity.value=frm.minqty.value

				return false
		}
			
			
		}
		else 
		{
			 alert("Sorry There is No Product available in stock!!")
				return false
		}
     
	

		
		if(isNaN(frm.products_quantity.value))
			{
				alert("Please enter proper value for quantity")
				frm.products_quantity.value=3
				return false
			}
		if(frm.products_quantity.value.length == frm.minqty.value.length)
		{
		if(frm.products_quantity.value < frm.minqty.value)
			{
				text= "Minimum Order Quantity is "+ frm.minqty.value+". Please order "+ frm.minqty.value+" or more quantity of product. You have entered"+ frm.products_quantity.value
				alert(text)
				frm.products_quantity.value=frm.minqty.value
				return false
			}
		}
	}

	

/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/		

function checkUserLogin(frm)	

	{

		user=frm.userid.value

		pass=frm.password.value

		

		if(user=="")

			{

				alert("Please Enter the User Id")

				frm.userid.focus()

				return false

			}

		if(user.indexOf("@")==-1 || user.indexOf(".")==-1 || user.length<6)

			{

				alert("\tPlease Enter the Proper User Id\n\tYour Email you enterted at time of registeration will be treated as your user id\n")

				frm.userid.value=""

				frm.userid.focus()

				return false

			}

		if(pass=="")

			{

				alert("Please Enter the Password")

				frm.password.focus()

				return false

			}			

	}

	

	/**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/		

function checkUserLoginfpwd(frm)	

	{

		user=frm.userid.value

	

		

		if(user=="")

			{

				alert("Please Enter the User Id")

				frm.userid.focus()

				return false

			}

		if(user.indexOf("@")==-1 || user.indexOf(".")==-1 || user.length<6)

			{

				alert("\tPlease Enter the Proper User Id\n\tYour Email you enterted at time of registeration will be treated as your user id\n")

				frm.userid.value=""

				frm.userid.focus()

				return false

			}

					

	}



	

	



function same_as_above(frm)

	{
		frm.shippingaddress.value=frm.address.value
		frm.shippingcity.value=frm.city.value
		frm.shippingcountry.value=frm.country.value		
		frm.shippingpostcode.value=frm.postcode.value				
		frm.shippingcounty.value=frm.county.value
		frm.shippingphonenumber.value=frm.phonenumber.value	
		frm.shippingmobile.value=frm.mobile.value	
		document.getElementById('ship').innerHTML=''
	}

function not_same_as_above(frm)

	{
		
		document.getElementById('ship').innerHTML='<div id="inner-table2" align="center" style="height:355px;"><div id="tbl_row" style="height:110px; margin-top:10px;"><div id="tbl_left2"><br><br><strong>Shipping Address</strong> <span class="alert">*</span></div><div id="tbl_right1"><textarea name="shippingaddress" cols="44" rows="5" class="textfill" id="shippingaddress"></textarea></div></div><div id="tbl_row"><div id="tbl_left2"><strong>Shipping City </strong><span class="alert">*</span></div><div id="tbl_right1"><input name="shippingcity" type="text" class="textfill" id="shippingcity" size="45" value=""/></div></div><div id="tbl_row"><div id="tbl_left2"><strong>Shipping State</strong> </div><div id="tbl_right1"><input name="shippingcounty" type="text" class="textfill" id="shippingcounty" size="45" value=""/></div></div><div id="tbl_row"><div id="tbl_left2"><strong>Shipping Country</strong> <span class="alert">*</span></div><div id="tbl_right1"><input name="shippingcountry" type="text" class="textfill" id="shippingcountry" size="45" value=""/></div></div><div id="tbl_row"><div id="tbl_left2"><strong>Shipping Post Code </strong><span class="alert">*</span></div><div id="tbl_right1"><input name="shippingpostcode" type="text" class="textfill" id="shippingpostcode" size="45" value=""/></div></div><div id="tbl_row"><div id="tbl_left1"><strong>Landline No </strong>&nbsp;&nbsp;&nbsp;<input name="shippingphonenumber" type="text" class="textfill" id="shippingphonenumber" size="20" value=""/></div><div id="tbl_right1"><strong>Mobile No</strong>&nbsp;&nbsp;&nbsp;<input name="shippingmobile" type="text" class="textfill" id="shippingmobile" size="20" value=""/></div></div><div class="body" style="font-size:11px; float:left;">(Please fill atleast one Contact No)</div></div>'
				
		}	

function checkUserRegister(frm)

	{
		
		
		function LTrim(value)
		{
        	var re = /\s*((\S+\s*)*)/;
	   		return value.replace(re, "$1");
     	}
       // Removes ending whitespaces
     	function RTrim(value)
 		{
    		var re = /((\s*\S+)*)\s*/;
    		return value.replace(re, "$1");
  		}// Removes leading and ending whitespaces
    	function trim(value)
		{
        	return LTrim(RTrim(value));
		}
		error=false
		errormsg="Following Errors Occurs while processing Registeration form..."
		firstname=trim(frm.firstname.value)
		lastname=trim(frm.lastname.value)
		address=trim(frm.address.value)
		city=trim(frm.city.value)
		country=trim(frm.country.value)
		postcode=trim(frm.postcode.value)
		phonenumber=trim(frm.phonenumber.value)
		mobile=trim(frm.mobile.value)
		emailaddress=trim(frm.email.value)
		
		
		password=frm.password.value
		password2=frm.password2.value	
		match_image=frm.match_image.value
		match_text=frm.match_text.value
		
		
		if(firstname=="")
			{
				errormsg+="\n\t First name is Empty..."
				error=true
			}
			
		if(lastname=="")
			{
				errormsg+="\n\t Last  name is Empty..."
				error=true
			}			
		if(address=="")
			{
				errormsg+="\n\t Address is Empty..."
				error=true
			}
			
		if(city=="")
			{
				errormsg+="\n\t City is Empty..."
				error=true
			}
		if(country=="")
			{
				errormsg+="\n\t Country is Empty..."
				error=true
			}			
		if(postcode=="")
			{
				errormsg+="\n\t Postcode is Empty..."
				error=true
			}
			
		if((phonenumber=="") && (mobile==""))
			{
				errormsg+="\n\t Please fill atleast one contact no..."
				error=true
			}
			
		if(emailaddress=="")
			{
				errormsg+="\n\t Email Address is Empty..."
				error=true
			}			
		if(emailaddress.indexOf("@")==-1 || emailaddress.indexOf("@")==-1 || emailaddress.length<6)
			{
				errormsg+="\n\t Please enter Proper Email Address..."
				error=true
			}
		if(password=="" || password2=="")	
			{
				errormsg+=" \n\t Please enter the Passwords"
				error=true
			}
		if(password!=password2)	
			{
				errormsg+=" \n\t Passwords do not match..."
				error=true
			}	
			
		if(frm.option[1].checked)
		{
			shippingaddress=trim(frm.shippingaddress.value)
		shippingcity=trim(frm.shippingcity.value)
		shippingcountry=trim(frm.shippingcountry.value)
		shippingpostcode=trim(frm.shippingpostcode.value)
		shippingphonenumber=trim(frm.shippingphonenumber.value)
		shippingmobile=trim(frm.shippingmobile.value)
		
		if(shippingaddress=="")
			{
				errormsg+="\n\t Shipping Address is Empty..."
				error=true
			}
		if(shippingcity=="")
			{
				errormsg+="\n\t Shipping City is Empty..."
				error=true
			}
		if(shippingcountry=="")
			{
				errormsg+="\n\t Shipping Country is Empty..."
				error=true
			}			
		if(shippingpostcode=="")
			{
				errormsg+="\n\t Shipping Postcode is Empty..."
				error=true
			}
			
			if((shippingphonenumber=="") && (shippingmobile==""))
			{
				errormsg+="\n\t Please fill atleast one shipping contact no..."
				error=true
			}
			
		}
			
		if(match_image!=match_text)
			{
				errormsg+="\n\t Given String does not match..."
				error=true
			}
		if(error)
			{
				alert(errormsg)
				return false
			}
		
		}
/***********************************************************************************************/

function checkUserAddEnquiry(frm)

	{
		error=false
		errormsg="Following Errors Occurs while processing Enquiry form..."
		function LTrim( value )
		{
        	var re = /\s*((\S+\s*)*)/;
   			return value.replace(re, "$1");
     	}
      		 // Removes ending whitespaces
    	 function RTrim( value )
	 	{
  		  	var re = /((\s*\S+)*)\s*/;
  		 	 return value.replace(re, "$1");
 		}// Removes leading and ending whitespaces
   		 function trim( value )
		 {
        	return LTrim(RTrim(value));
		 }
		
		name=frm.name.value
		emailaddress=frm.email.value
		address=frm.address.value
		city=frm.city.value
		
		country=frm.country.value
		postcode=frm.postcode.value
		phonenumber=frm.phonenumber.value
		query=frm.query.value
		
		match_image=frm.match_image.value
		match_text=frm.match_text.value
		name=trim(name)
		if(name=="")
			{
				errormsg+="\n\t Name is Empty..."
				error=true
			}
		//alert(name);
		if(emailaddress=="")
			{
				errormsg+="\n\t Email Address is Empty..."
				error=true
			}	
		emailaddress=trim(emailaddress)		
	//	alert(emailaddress);
		if(address=="")
			{
				errormsg+="\n\t Address is Empty..."
				error=true
			}
		city=trim(city)
	//	alert(city);
		if(city=="")
			{
				errormsg+="\n\t City is Empty..."
				error=true
			}
		country=trim(country)	
		//alert(country);
		if(country=="")
			{
				errormsg+="\n\t Country is Empty..."
				error=true
			}			
		postcode=trim(postcode)
	//	alert(postcode);
		if(postcode=="")
			{
				errormsg+="\n\t Postcode is Empty..."
				error=true
			}
			else
			{
			 var stripped = postcode.replace(/[\(\)\.\-\ ]/g, '');
			//strip out acceptable non-numeric characters
  			 
  			}
		//	alert(phonenumber);
			if(phonenumber=="")
			{
				errormsg+="\n\t Phone Number is Empty..."
				error=true
			}
			 else
		  {
			 var stripped = phonenumber.replace(/[\(\)\.\-\ ]/g, '');
			//strip out acceptable non-numeric characters
  			 if (isNaN(parseInt(stripped))) 
   			 {
   					error=true
   					errormsg+="\n\tPlease Enter Valid Phone Number.\t\n";
   			 }
  			}
			query=trim(query)
			//alert(query);
			if(query=="")
			{
				errormsg+="\n\t Query is Empty..."
				error=true
			}
           
			// alert(emailaddress);	
		if(emailaddress.indexOf("@")==-1 || emailaddress.indexOf("@")==-1 || emailaddress.length<6)
			{
				errormsg+="\n\t Please enter Proper Email Address..."
				error=true
			}
		
		if(match_image!=match_text)
			{
				errormsg+="\n\t Given String does not match..."
				error=true
			}
		if(error)
			{
				alert(errormsg)
				return false
			}
		
}







//*********************************************************************************************

//imnage slide show

var fadeimages=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages[0]=["products_images/T-SR-S4.jpg", "", ""] //plain image syntax

fadeimages[1]=["products_images/T-SN-S3.jpg", "", ""] //image with link syntax

fadeimages[2]=["products_images/T-SE-S2.jpg", "", ""] //image with link and target syntax

 

var fadeimages2=new Array() //2nd array set example. Remove or add more sets as needed.

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages2[0]=["products_images/T-SN-s1.jpg", "", ""] //plain image syntax

fadeimages2[1]=["products_images/T-SN-s2.jpg", "", ""] //image with link syntax

fadeimages2[2]=["products_images/T-SN-s3.jpg", "", ""] //image with link and target syntax



var fadeimages3=new Array() //2nd array set example. Remove or add more sets as needed.

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages3[0]=["products_images/T-SR-S4.jpg", "", ""] //plain image syntax

fadeimages3[1]=["products_images/T-SR-S2.jpg", "", ""] //image with link syntax

fadeimages3[2]=["products_images/T-SR-S3.jpg", "", ""]

 

var fadeimages4=new Array() //2nd array set example. Remove or add more sets as needed.

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages4[0]=["products_images/T-SE-S1.jpg", "", ""] //plain image syntax

fadeimages4[1]=["products_images/T-SE-S2.jpg", "", ""] //image with link syntax

fadeimages4[2]=["products_images/T-SE-S3.jpg", "", ""] 

var fadebgcolor="white"

 

////NO need to edit beyond here/////////////

 

var fadearray=new Array() //array to cache fadeshow instances

var fadeclear=new Array() //array to cache corresponding clearinterval pointers

 

var dom=(document.getElementById) //modern dom browsers

var iebrowser=document.all

 

function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){

this.pausecheck=pause

this.mouseovercheck=0

this.delay=delay

this.degree=10 //initial opacity degree (10%)

this.curimageindex=0

this.nextimageindex=1

fadearray[fadearray.length]=this

this.slideshowid=fadearray.length-1

this.canvasbase="canvas"+this.slideshowid

this.curcanvas=this.canvasbase+"_0"

if (typeof displayorder!="undefined")

theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)

this.theimages=theimages

this.imageborder=parseInt(borderwidth)

this.postimages=new Array() //preload images

for (p=0;p<theimages.length;p++){

this.postimages[p]=new Image()

this.postimages[p].src=theimages[p][0]

}

 

var fadewidth=fadewidth+this.imageborder*2

var fadeheight=fadeheight+this.imageborder*2

 

if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)

document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;-khtml-opacity:10;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);-moz-opacity:10;background-color:'+fadebgcolor+'"></div></div>')

else

document.write('<div><img  name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'" ></div>')

 

if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox

this.startit()

else{

this.curimageindex++

setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)

}

}



function fadepic(obj){

if (obj.degree<100){

obj.degree+=10

if (obj.tempobj.filters&&obj.tempobj.filters[0]){

if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+

obj.tempobj.filters[0].opacity=obj.degree

else //else if IE5.5-

obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"

}

else if (obj.tempobj.style.MozOpacity)

obj.tempobj.style.MozOpacity=obj.degree/101

else if (obj.tempobj.style.KhtmlOpacity)

obj.tempobj.style.KhtmlOpacity=obj.degree/100

}

else{

clearInterval(fadeclear[obj.slideshowid])

obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"

obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)

obj.populateslide(obj.tempobj, obj.nextimageindex)

obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0

setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)

}

}

 

fadeshow.prototype.populateslide=function(picobj, picindex){

var slideHTML=""

if (this.theimages[picindex][1]!="") //if associated link exists for image

slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'

slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'

if (this.theimages[picindex][1]!="") //if associated link exists for image

slideHTML+='</a>'

picobj.innerHTML=slideHTML

}

 

 

fadeshow.prototype.rotateimage=function(){

if (this.pausecheck==1) //if pause onMouseover enabled, cache object

var cacheobj=this

if (this.mouseovercheck==1)

setTimeout(function(){cacheobj.rotateimage()}, 100)

else if (iebrowser&&dom||dom){

this.resetit()

var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

crossobj.style.zIndex++

fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)

this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"

}

else{

var ns4imgobj=document.images['defaultslide'+this.slideshowid]

ns4imgobj.src=this.postimages[this.curimageindex].src

}

this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0

}

 

fadeshow.prototype.resetit=function(){

this.degree=10

var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

if (crossobj.filters&&crossobj.filters[0]){

if (typeof crossobj.filters[0].opacity=="number") //if IE6+

crossobj.filters(0).opacity=this.degree

else //else if IE5.5-

crossobj.style.filter="alpha(opacity="+this.degree+")"

}

else if (crossobj.style.MozOpacity)

crossobj.style.MozOpacity=this.degree/101

else if (crossobj.style.KhtmlOpacity)

crossobj.style.KhtmlOpacity=obj.degree/100

}

 

 

fadeshow.prototype.startit=function(){

var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

this.populateslide(crossobj, this.curimageindex)

if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER

var cacheobj=this

var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)

crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}

crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}

}

this.rotateimage()

}

 

  /**-*-*-*-*-*-*-*-*-*-*-*-**-*-*--*-***-**-*-*-*-*-*-*-*-*-*-*-*-*-**-***-**-*-*-*-*-*-*-*-***-*-*/	

 



 

 function check_login1(frm)

	{

		

		error=false

		errormsg="Following Errors Occurs while processing Change Password form..."

		

		emailaddress=frm.userid.value

		password=frm.password.value

		new_password=frm.new_password.value	

		re_password=frm.re_password.value	

				

		if(emailaddress.indexOf("@")==-1 || emailaddress.indexOf("@")==-1 || emailaddress.length<6)

			{

				errormsg+="\n\t Please enter Proper Email Address..."

				error=true

			}

		if(password=="")	

			{

				errormsg+=" \n\t Please enter the Passwords"

				error=true

			}

		if(new_password!=re_password)	

			{

				errormsg+=" \n\t Re-type Passwords do not match..."

				error=true

			}			

		

		if(error)

			{

				alert(errormsg)

				return false

			}

			return true

}

function check_instant_query(frm)
{
	 
	customer_name=frm.customer_name.value;
	customer_email=frm.customer_email.value;
	customer_message=frm.customer_message.value;
	random_string=frm.random_string.value;
	match_string=frm.match_string.value;
	error=false;
	errormsg="Following error occure while processing this query !!";
	if(customer_name=="")
	{
		error=true;
		errormsg+="\n\tEmpty customer name.....";
	}
	if(customer_email.indexOf("@")==-1 || customer_email.indexOf(".")==-1 || customer_email.length<6)
	{
			error=true;
			errormsg+="\n\tIn-currect email address.....";
	}
	if(customer_message=="")
	{
		error=true;
		errormsg+="\n\tEmpty your message.....";
	}
	if(match_string!=random_string)
	{
		errormsg+="\n\tGiven String does not match..."
		error=true
	}
	if(error)
	{
		alert(errormsg);
		return false;
	}
}

function random_string()
{
	
	var text_small = new Array("MOUS.jpg", "HOPE.jpg", "AXEY.jpg", "WOXE.jpg", "BRVU.jpg", "AXMR.jpg", "BONE.jpg", "ARNM.jpg", "WCUQ.jpg", "RBJS.jpg", "NRHK.jpg", "SPQB.jpg", "WNXT.jpg", "ZRNQ.jpg", "SPWF.jpg", "AQXP.jpg", "ESLD.jpg", "HSAP.jpg", "XYWZ.jpg", "ISWR.jpg", "VIAR.jpg", "SPEN.jpg", "WXOB.jpg", "MDWX.jpg", "ZQAP.jpg", "RCYW.jpg", "MRDV.jpg", "QBTK.jpg", "AQXP.jpg", "ZRFK.jpg", "TREA.jpg", "MCRP.jpg", "BSRK.jpg", "AXQH.jpg", "WXPE.jpg", "NDRP.jpg","AYXZ.jpg","BLTD.jpg","XWOH.jpg");

	
	var text_small_length = text_small.length;
	var rnd_small = Math.round((text_small_length-1)*Math.random());
	
	var txt_small=text_small[rnd_small];
	
	var random_number=txt_small.substr(0,4);
		
	var round_no=Math.round(Math.random(-10)*100);
	var img_path="images/security/small/";
	var random_number_img=img_path+txt_small;
	
	document.write('<img src="'+random_number_img+'" alt="Security Image" border="0" hspace="0" name="securityimage"><input name="random_string" type="hidden" size="5" maxlength="8" class="textfill" value="'+random_number+'" readonly="True">');
}

function show()
{
      alert("in show");
	  alert(document.register.match_image.value);
}

function bigview(nm)
{
window.open(nm, "Complete_View", "marginleft=0, marginright=0, toolbar=no, status=no, menubar=no, location=no, top=10, right=10");
}
var interval = 2.5; // delay between rotating images (in seconds)
var random_display = 1; // 0 = no, 1 = yes
interval *= 1000;

var image_index = 0;
var image_index1 = 0;
var image_index2 = 0;
var image_index3 = 0;
var image_index4 = 0;
var image_index5 = 0;

image_list = new Array();
image_list1 = new Array();
image_list2 = new Array();
image_list3 = new Array();
image_list4 = new Array();
image_list5 = new Array();

image_list[image_index++] = new imageItem("images/GBabyBracelet.jpg");
image_list[image_index++] = new imageItem("images/GCuffBracelet.jpg");
image_list[image_index++] = new imageItem("images/GFashionBracelet.jpg");
image_list[image_index++] = new imageItem("images/Gflexiblebracelet.jpg");



image_list1[image_index1++] = new imageItem("images/AntiqueBracelet.jpg");
image_list1[image_index1++] = new imageItem("images/Antiquegoldart.jpg");
image_list1[image_index1++] = new imageItem("images/AntiqueNecklace.jpg");
image_list1[image_index1++] = new imageItem("images/AntiqueRing.jpg");




image_list2[image_index2++] = new imageItem("images/PearlPendant.jpg");
image_list2[image_index2++] = new imageItem("images/Pearlbrooch.jpg");
image_list2[image_index2++] = new imageItem("images/PearlCharm.jpg");
image_list2[image_index2++] = new imageItem("images/PearlNeck.jpg");





image_list3[image_index3++] = new imageItem("images/GemstoneRing.jpg");
image_list3[image_index3++] = new imageItem("images/GemstoneNeck.jpg");
image_list3[image_index3++] = new imageItem("images/GemstoneBracelet.jpg");
image_list3[image_index3++] = new imageItem("images/GemstoneBangle.jpg");



image_list4[image_index4++] = new imageItem("images/GdangleEarring.jpg");
image_list4[image_index4++] = new imageItem("images/GdropEarring.jpg");
image_list4[image_index4++] = new imageItem("images/GFashionEarring.jpg");
image_list4[image_index4++] = new imageItem("images/GPlainEarring.jpg");



image_list5[image_index5++] = new imageItem("images/GGemBangle.jpg");
image_list5[image_index5++] = new imageItem("images/GHollowBangle.jpg");
image_list5[image_index5++] = new imageItem("images/GTraditionalBangle.jpg");
image_list5[image_index5++] = new imageItem("images/PlainGoldBangle.jpg");



var number_of_image = image_list.length;
function imageItem(image_location) {
this.image_item = new Image();
this.image_item.src = image_location;
}
function get_ImageItemLocation(imageObj) {
return(imageObj.image_item.src)
}
function generate(x, y) {
var range = y - x + 1;
return Math.floor(Math.random() * range) + x;
}
function getNextImage() {
if (random_display) {
image_index = generate(0, number_of_image-1);
}
else {
image_index = (image_index+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list[image_index]);
return(new_image);
}


function getNextImage1() {
if (random_display) {
image_index1 = generate(0, number_of_image-1);
}
else {
image_index1 = (image_index1+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list1[image_index1]);

//alert(image_index1);
//alert(new_image);
return(new_image);
}

function getNextImage2() {
if (random_display) {
image_index2 = generate(0, number_of_image-1);
}
else {
image_index2 = (image_index2+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list2[image_index2]);

//alert(image_index1);
//alert(new_image);
return(new_image);
}


function getNextImage3() {
	
	
if (random_display) {
image_index3 = generate(0, number_of_image-1);
}
else {
image_index3 = (image_index3+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list3[image_index3]);

//alert(image_index1);
//alert(new_image);
return(new_image);
}
function getNextImage4() {
if (random_display) {
image_index4 = generate(0, number_of_image-1);
}
else {
image_index4 = (image_index4+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list4[image_index4]);

//alert(image_index1);
//alert(new_image);
return(new_image);
}

function getNextImage5() {
if (random_display) {
image_index5 = generate(0, number_of_image-1);
}
else {
image_index5 = (image_index5+1) % number_of_image;
}
var new_image = get_ImageItemLocation(image_list5[image_index5]);

//alert(image_index1);
//alert(new_image);
return(new_image);
}




function rotateImage(place) {
//alert("in rptaeimages");
var new_image = getNextImage();
document[place].src = new_image;
var recur_call = "rotateImage('"+place+"')";
setTimeout(recur_call, interval);
}

function rotateImage1(place) {
//alert("in rptaeimages1");

var new_image1 = getNextImage1();
document[place].src = new_image1;
var recur_call = "rotateImage1('"+place+"')";
setTimeout(recur_call, interval);
}

function rotateImage2(place) {
//alert("in rptaeimages2");

var new_image2 = getNextImage2();
document[place].src = new_image2;
var recur_call = "rotateImage2('"+place+"')";
setTimeout(recur_call, interval);
}

function rotateImage3(place) {
//alert("in rptaeimages3");

var new_image3 = getNextImage3();
document[place].src = new_image3;
var recur_call = "rotateImage3('"+place+"')";
setTimeout(recur_call, interval);
}
function rotateImage4(place) {
//alert("in rptaeimages2");

var new_image4 = getNextImage4();
document[place].src = new_image4;
var recur_call = "rotateImage4('"+place+"')";
setTimeout(recur_call, interval);
}
function rotateImage5(place) {
//alert("in rptaeimages2");

var new_image5 = getNextImage5();
document[place].src = new_image5;
var recur_call = "rotateImage5('"+place+"')";
setTimeout(recur_call, interval);
}




function displayImage()
{
    
    rotateImage('aImage');
	rotateImage1('rImage');
    rotateImage2('pImage');
	rotateImage3('sImage');
	rotateImage4('eImage');
	rotateImage5('bImage');

}
 var NumberOfImages = 5
 var NumberOfImages1 = 5
 var NumberOfImages2 = 5
 var NumberOfImages3 = 5


var img = new Array(NumberOfImages)
var img1 = new Array(NumberOfImages1)
var img2 = new Array(NumberOfImages2)
var img3 = new Array(NumberOfImages3)

// Use the following variables to specify the image names:
img[0] = "images/10-SCeramicBead.jpg"
img[1] = "images/17-SCeramicBead.jpg"
img[2] = "images/32-SCeramicBead.jpg"
img[3] = "images/36_Chips_18.jpg"
img[4] = "images/87-SCeramicBead.jpg"

img1[0] = "images/98-SCeramicBead.jpg"
img1[1] = "images/1386-SLacBead.jpg"
img1[2] = "images/1404-SLacBead.jpg"
img1[3] = "images/1412-SLacBead.jpg"
img1[4] = "images/1414-SMixBead.jpg"

img2[0] = "images/1584-SWoodenBead.jpg"
img2[1] = "images/AC-18036.jpg"
img2[2] = "images/S8561.jpg"
img2[3] = "images/S8588.jpg"
img2[4] = "images/S8595.jpg"

img3[0] = "images/SBead.jpg"
img3[1] = "images/SHeartDecoG1 (6).jpg"
img3[2] = "images/SHeartDecoG1 (18).jpg"
img3[3] = "images/SHeartDecoG1 (19).jpg"
img3[4] = "images/SHeartDecoG1 (21).jpg"




var imgNumber = 0
var imgNumber1 = 0
var imgNumber2 = 0
var imgNumber3 = 0
function NextImage()
{
    imgNumber++
    if (imgNumber == NumberOfImages)
        imgNumber = 0
    document.images["VCRImage"].src = img[imgNumber]
    
	    imgNumber1++
    if (imgNumber1 == NumberOfImages1)
        imgNumber1 = 0
    document.images["VCRImage1"].src = img1[imgNumber1]

      imgNumber2++
    if (imgNumber2 == NumberOfImages2)
        imgNumber2 = 0
    document.images["VCRImage2"].src = img2[imgNumber2]
	
	  imgNumber3++
    if (imgNumber3 == NumberOfImages3)
        imgNumber3 = 0
    document.images["VCRImage3"].src = img3[imgNumber3]


}

function PreviousImage()
{
    imgNumber--
   imgNumber1--
   imgNumber2--
   imgNumber3--
   if (imgNumber < 0)
        imgNumber = NumberOfImages - 1
    document.images["VCRImage"].src = img[imgNumber]
	 if (imgNumber1 < 0)
        imgNumber1 = NumberOfImages1 - 1
    document.images["VCRImage1"].src = img1[imgNumber1]
	
	 if (imgNumber2 < 0)
        imgNumber2 = NumberOfImages2 - 1
    document.images["VCRImage2"].src = img2[imgNumber2]
	
	 if (imgNumber3 < 0)
        imgNumber3 = NumberOfImages3 - 1
    document.images["VCRImage3"].src = img3[imgNumber3]
	
}

function chkvalue()
{		
input_box=confirm("You already have a saved cart.\n Click OK to overwrite your last save cart or Cancel");
if (input_box==true)
{ 
// Output when OK is clicked
flag=1;
}
else
{
flag=0;
// Output when Cancel is clicked
}
if(flag)
{
	document.savecartfrm.submit();
	
	}
else
{

	window.location.href="shop-cart.php";
}

}
function chk_reload()
{		

val=1;
return val;
}

var pausecontent2=new Array()
pausecontent2[0]='Free DHL & FEDEX 1500$'
pausecontent2[1]='3 Day Money Back Gurantee'
pausecontent2[2]='100% Secure Online Shopping'
pausecontent2[3]='24 x 7 Custommer Support'
pausecontent2[4]='Supreme Quality Products'
function pausescroller(content, divId, divClass, delay){
this.content=content //message array content
this.tickerid=divId //ID of ticker div to display information
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
this.hiddendivpointer=1 //index of message array for hidden div
document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden"><div class="innerDiv" style="position: absolute; width: 100%" id="'+divId+'1">'+content[0]+'</div><div class="innerDiv" style="position: absolute; width: 100%; visibility: hidden" id="'+divId+'2">'+content[1]+'</div></div>')
var scrollerinstance=this
if (window.addEventListener) //run onload in DOM2 browsers
window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
else if (window.attachEvent) //run onload in IE5.5+
window.attachEvent("onload", function(){scrollerinstance.initialize()})
else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
setTimeout(function(){scrollerinstance.initialize()}, 500)
}

// -------------------------------------------------------------------
// initialize()- Initialize scroller method.
// -Get div objects, set initial positions, start up down animation
// -------------------------------------------------------------------

pausescroller.prototype.initialize=function(){
this.tickerdiv=document.getElementById(this.tickerid)
this.visiblediv=document.getElementById(this.tickerid+"1")
this.hiddendiv=this.hiddendiv=document.getElementById(this.tickerid+"2")
this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv))
//set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2)
this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px"
this.getinline(this.visiblediv, this.hiddendiv)
this.hiddendiv.style.visibility="visible"
var scrollerinstance=this
document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0}
if (window.attachEvent) //Clean up loose references in IE
window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null})
setTimeout(function(){scrollerinstance.animateup()}, this.delay)
}


// -------------------------------------------------------------------
// animateup()- Move the two inner divs of the scroller up and in sync
// -------------------------------------------------------------------

pausescroller.prototype.animateup=function(){
var scrollerinstance=this
if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){
this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px"
this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px"
setTimeout(function(){scrollerinstance.animateup()}, 50)
}
else{
this.getinline(this.hiddendiv, this.visiblediv)
this.swapdivs()
setTimeout(function(){scrollerinstance.setmessage()}, this.delay)
}
}

// -------------------------------------------------------------------
// swapdivs()- Swap between which is the visible and which is the hidden div
// -------------------------------------------------------------------

pausescroller.prototype.swapdivs=function(){
var tempcontainer=this.visiblediv
this.visiblediv=this.hiddendiv
this.hiddendiv=tempcontainer
}

pausescroller.prototype.getinline=function(div1, div2){
div1.style.top=this.visibledivtop+"px"
div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px"
}

// -------------------------------------------------------------------
// setmessage()- Populate the hidden div with the next message before it's visible
// -------------------------------------------------------------------

pausescroller.prototype.setmessage=function(){
var scrollerinstance=this
if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it)
setTimeout(function(){scrollerinstance.setmessage()}, 100)
else{
var i=this.hiddendivpointer
var ceiling=this.content.length
this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1
this.hiddendiv.innerHTML=this.content[this.hiddendivpointer]
this.animateup()
}
}

pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any
if (tickerobj.currentStyle)
return tickerobj.currentStyle["paddingTop"]
else if (window.getComputedStyle) //if DOM2
return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top")
else
return 0
}
function check_enquiry_cust_cmnt(frm)
	{
		
		function LTrim(value)
		{
        	var re = /\s*((\S+\s*)*)/;
	   		return value.replace(re, "$1");
     	}
       // Removes ending whitespaces
     	function RTrim(value)
 		{
    		var re = /((\s*\S+)*)\s*/;
    		return value.replace(re, "$1");
  		}// Removes leading and ending whitespaces
    	function trim(value)
		{
        	return LTrim(RTrim(value));
		}
		error=false
		errormsg=""
		
		frm.customer_name.value=trim(frm.customer_name.value)
		frm.place.value=trim(frm.place.value)
		frm.greet.value=trim(frm.greet.value)
		frm.customer_comment.value=trim(frm.customer_comment.value)
		frm.email.value=trim(frm.email.value)
				
		
	if(frm.customer_name.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter your name\t\n"
		}
		
	if(frm.email.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter your email address\t\n"
		}
	else
		{
			email=frm.email.value
			if(email.indexOf("@")==-1 || email.indexOf(".")==-1 || email.length<5)
				{
					error=true
					errormsg+="Please enter the proper email address..."
				}
		}
		if(frm.place.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter your Place\t\n"
		}	
		if(frm.greet.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter your Greetings\t\n"
		}	
		if(frm.customer_comment.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter your Comment\t\n"
		}	
				
		if(frm.match_image.value!=frm.match_text.value)
			{
				errormsg+="\n\t Given String does not match..."
				error=true
			}	
	if(error)	
		{
			alert(errormsg)
			return false
		}
		
	}
	function chk_reg_entries(form) 
 {
	for (var i = 0; i < form.purpose.length; i++) 
	{
        if (form.purpose[i].checked)
		{
            break
        }
    }
    if(form.purpose[i].value=="Business")
	{
	  for (var j = 0; j < form.businesstype.length; j++) 
	  {
	 form.businesstype[j].disabled=false;
	  }
	  for (var k = 0; k < form.licence.length; k++) 
	  {
	 form.licence[k].disabled=false;
	  }
	}
	 else
	{
	  for (var j = 0; j < form.businesstype.length; j++) 
	  {
		  form.businesstype[j].checked=false;
	 form.businesstype[j].disabled=true;
	 
	  }
	  for (var k = 0; k < form.licence.length; k++) 
	  {
		   form.licence[k].checked=false;
	 form.licence[k].disabled=true;
	 
	  }
	}
 }

 function chk_reg_entries1(form) 
 {
	for (var i = 0; i < form.newsletters.length; i++) 
	{
        if (form.newsletters[i].checked)
		{
            break
        }
    }
    if(form.newsletters[i].value=="Yes")
	{
	  for (var j = 0; j < form.newsletterstype.length; j++) 
	  {
	 form.newsletterstype[j].disabled=false;
	  }
	}
	 else
	{
	  for (var j = 0; j < form.newsletterstype.length; j++) 
	  {
		  form.newsletterstype[j].checked=false;
	 form.newsletterstype[j].disabled=true;
	 
	  }
	  
	}
 }

	  
	  function checkUserEditProfile(frm)
	{
		function LTrim(value)
		{
        	var re = /\s*((\S+\s*)*)/;
	   		return value.replace(re, "$1");
     	}
       // Removes ending whitespaces
     	function RTrim(value)
 		{
    		var re = /((\s*\S+)*)\s*/;
    		return value.replace(re, "$1");
  		}// Removes leading and ending whitespaces
    	function trim(value)
		{
        	return LTrim(RTrim(value));
		}
		error=false
		errormsg="Following Errors Occurs while editing your profile..."
		address=trim(frm.address.value)
		city=trim(frm.city.value)
		country=trim(frm.country.value)
		postcode=trim(frm.postcode.value)
		phonenumber=trim(frm.phonenumber.value)
		mobile=trim(frm.mobile.value)
		password=frm.password.value
		shippingaddress=trim(frm.shipping_address.value)
		shippingcity=trim(frm.shipping_city.value)
		shippingcountry=trim(frm.shipping_country.value)
		shippingpostcode=trim(frm.shipping_postcode.value)
		shippingphonenumber=trim(frm.shipping_phonenumber.value)
		shippingmobile=trim(frm.shipping_mobile.value)
					
		
		if(address=="")
			{
				errormsg+="\n\t Address is Empty..."
				error=true
			}
			
		if(city=="")
			{
				errormsg+="\n\t City is Empty..."
				error=true
			}
		if(country=="")
			{
				errormsg+="\n\t Country is Empty..."
				error=true
			}			
		if(postcode=="")
			{
				errormsg+="\n\t Postcode is Empty..."
				error=true
			}
			
		if((phonenumber=="") && (mobile==""))
			{
				errormsg+="\n\t Please fill atleast one contact no..."
				error=true
			}
			
		
		if(password=="")	
			{
				errormsg+=" \n\t Please enter the Passwords"
				error=true
			}
				
		if(shippingaddress=="")
			{
				errormsg+="\n\t Shipping Address is Empty..."
				error=true
			}
		if(shippingcity=="")
			{
				errormsg+="\n\t Shipping City is Empty..."
				error=true
			}
		if(shippingcountry=="")
			{
				errormsg+="\n\t Shipping Country is Empty..."
				error=true
			}			
		if(shippingpostcode=="")
			{
				errormsg+="\n\t Shipping Postcode is Empty..."
				error=true
			}
			
			if((shippingphonenumber=="") && (shippingmobile==""))
			{
				errormsg+="\n\t Please fill atleast one shipping contact no..."
				error=true
			}
			
		if(error)
			{
				alert(errormsg)
				return false
			}
		
}

function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/dropshipment.jpg"
myimages[2]="images/wholesale.gif"

//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="contact-us.php?val=drop"
imagelinks[2]="contact-us.php?val=wholesale"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<div align="center" class="conbackground1"><a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a></div>')
}

function customized(size,pid)
{
     if(size=='other')
	 {
	    document.getElementById('rsize'+pid).innerHTML='<div class="r_size">Customized <input type="text" name="cust_ring_size" value=""  size="5" class="textbox17"></div>'
	 }
	 else
	 {
		 document.getElementById('rsize'+pid).innerHTML=''
	 }

}
/******************************************    */
function check_min(qty,id,avail_qty)
	{
	  
	  var val=document.getElementById('text'+id).value;	
	    if(avail_qty!=0)
		{
            
		   if(parseInt(val) >parseInt(avail_qty))
			{
				

				text= "Maximum Order Quantity is "+ avail_qty+". Please order "+ avail_qty+" or less quantity of product. You have entered "+ val
  				alert(text)
				document.getElementById('text'+id).value=qty

				return false

			}
            if(avail_qty<1)
		    {
				text= "We have no quanity available for this  product"
				alert(text)
				document.getElementById('text'+id).value=qty
				return false
	    	}
			
		}
		else 
		{    
			 alert("Sorry There is No Product available in stock!!")
				return false
		}
		
		var val=document.getElementById('text'+id).value;	
		if(isNaN(val))
			{
				alert("Please enter proper value for quantity")
				document.getElementById('text'+id).value=qty
				return false
			}
		if(qty.length ==val.length)
		{
		
		if(val < qty)
			{
		
				text= "Minimum Order Quantity is "+ qty +". Please order "+ qty +" or more quantity of product. You have entered "+ val
				alert(text)
				document.getElementById('text'+id).value=qty
				return false
			}
		}
	}
	
function checklinkexchange(frm)
{
		error=false
		errormsg=""
	if(frm.name.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter your Name\t\n"
			
		}
		
		if(frm.email.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter your email address\t\n"
		}
	else
		{
			email=frm.email.value
			if(email.indexOf("@")==-1 || email.indexOf(".")==-1 || email.length<5)
				{
					error=true
					errormsg+="Please enter the proper email address..."
				}
		}
		if(frm.url_cust.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter Url On which you apply our link exchange code\t\n"
			
		}
		if(frm.title.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter Title of your code\t\n"
			
		}
		if(frm.description.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter Description of your code\t\n"
			
		}
		if(frm.url.value=="")
		{
			error=true
			errormsg+="\n\tPlease enter Url of your site for link exchange\t\n"
			
		}
		if(frm.match_text.value!=frm.random_string.value)
	{
			error=true
			errormsg+="\n\tGiven String does not match...\t\n"
		
	}
		if(error)	
		{
			alert(errormsg)
			return false
		}
}
function show_form(frm)
{
		var text_small = new Array("MOUS.jpg", "HOPE.jpg", "AXEY.jpg", "WOXE.jpg", "BRVU.jpg", "AXMR.jpg", "BONE.jpg", "ARNM.jpg", "WCUQ.jpg", "RBJS.jpg", "NRHK.jpg", "SPQB.jpg", "WNXT.jpg", "ZRNQ.jpg", "SPWF.jpg", "AQXP.jpg", "ESLD.jpg", "HSAP.jpg", "XYWZ.jpg", "ISWR.jpg", "VIAR.jpg", "SPEN.jpg", "WXOB.jpg", "MDWX.jpg", "ZQAP.jpg", "RCYW.jpg", "MRDV.jpg", "QBTK.jpg", "AQXP.jpg", "ZRFK.jpg", "TREA.jpg", "MCRP.jpg", "BSRK.jpg", "AXQH.jpg", "WXPE.jpg", "NDRP.jpg","AYXZ.jpg","BLTD.jpg","XWOH.jpg");

	
	var text_small_length = text_small.length;
	var rnd_small = Math.round((text_small_length-1)*Math.random());
	
	var txt_small=text_small[rnd_small];
	
	var random_number=txt_small.substr(0,4);
		
	var round_no=Math.round(Math.random(-10)*100);
	var img_path="images/security/small/";
	var random_number_img=img_path+txt_small;
	
	
	document.getElementById('linkexchfrm').innerHTML='<form action="send_link_request.php" method="post" onSubmit="return checklinkexchange(this);"><table width="92%" border="0" class="solid5"><tr class="bg1"><td colspan="3" class="body21">Link Exchange Form </td></tr><tr><td width="33%" class="category">Name *</td><td width="5%" class="category">:</td><td width="62%"><input name="name" type="text" class="textfill" size="20" value=""/></td></tr><tr><td class="category">E-mail ID *</td><td class="category">:</td><td><input name="email" type="text" class="textfill" size="20" value=""/></td></tr><tr><td class="category">Url On which you apply our link exchange code *</td><td class="category">:</td><td><input name="url_cust" type="text" class="textfill" id="url_cust" size="20" value=""/></td></tr><tr><td class="category">Title *</td><td class="category">:</td><td><input name="title" type="text" class="textfill" id="title" size="20" value=""/></td></tr><tr><td class="category">Description *</td><td class="category">:</td><td><textarea name="description" cols="30" rows="3" class="textfill"></textarea></td></tr><tr><td class="category">Url of your site for link exchange *</td><td class="category">:</td><td><input name="url" type="text" class="textfill" id="url" size="20" value=""/></td></tr><tr><td class="category">Comments</td><td class="category">:</td><td><textarea name="comments" cols="30" rows="3" class="textfill"></textarea></td></tr><tr><td colspan="3"><div align="center"><img src="'+random_number_img+'" alt="Security Image" border="0" hspace="0" name="securityimage"><input name="random_string" type="hidden" size="5" maxlength="8" class="textfill" value="'+random_number+'" readonly="True"><span class="category" style="text-align:center;"> Match given text (Case Sensitive) </span><input name="match_text" type="text" class="textfill" size="7" /></div></td></tr><tr><td colspan="3"><input name="submit" type="submit" class="category1" value="Send Request"></td></tr></table></form>'
}

<!--  bookmark script


	
function checkprice(dropdown,weightchange,sizechange,frm)
{
   
    var myindex  = dropdown.selectedIndex
	var length  =  dropdown.length
	//for checking is this is coming from customise
	var p_id=frm.products_id.value;
	frm.price_index.value=myindex;
	for(var count=0; count<length; count++)
	{
	  
		   document.getElementById(p_id+'market_price'+count).style.display="none"; 
		   //alert(document.getElementById(p_id+'market_price'+count).style.display);
		   document.getElementById(p_id+'wholesale_price'+count).style.display="none"; 
	}
	  document.getElementById(p_id+'market_price'+myindex).style.display="inline"; 
	  document.getElementById(p_id+'wholesale_price'+myindex).style.display="inline"; 
	
	with (dropdown){
	//alert(myindex);
	options[myindex].selected=true
	//alert('marketprice'+myindex);
	//alert("mohit"+products_price);
	}
	if(weightchange!=undefined)
	{
	with (weightchange){
	options[myindex].selected=true
	}
	
	}
	
	
	
	if(sizechange!=undefined)
	{
	with (sizechange){
	options[myindex].selected=true
	}
	}
	
	/*with (marketpricechange){
	options[myindex].selected=true
	}*/
	
	
 }





function checkweight(dropdown,weightchange,sizechange,frm)
{
   
   
   
    var myindex  = weightchange.selectedIndex
	// alert("hellooomani"+myindex);
	var length  =  dropdown.length
	frm.price_index.value=myindex;
	//alert(frm.price_index.value);
	var p_id=frm.products_id.value;
	//alert("product"+p_id);
	for(var count=0; count<length; count++)
	{
	  
		   document.getElementById(p_id+'market_price'+count).style.display="none"; 
		  // alert(document.getElementById(p_id+'market_price'+count).style.display);
		   document.getElementById(p_id+'wholesale_price'+count).style.display="none"; 
	}
	  document.getElementById(p_id+'market_price'+myindex).style.display="inline"; 
	  document.getElementById(p_id+'wholesale_price'+myindex).style.display="inline";        //alert("priya"+myindex );
    with (dropdown){
	options[myindex].selected=true
	//this.products_price.value=options[myindex].value;
	}
	
	if(weightchange!=undefined)
	{
	with (weightchange){
	options[myindex].selected=true
	}
	}
	
	
	if(sizechange!=undefined)
	{
	with (sizechange){
	options[myindex].selected=true
	}
	}
	 
}

function checksize(dropdown,weightchange,sizechange,frm)
{
   
    var myindex  = sizechange.selectedIndex
	var length  =  dropdown.length
	frm.price_index.value=myindex;
	var p_id=frm.products_id.value;
	//alert("product"+p_id);
	for(var count=0; count<length; count++)
	{
	  
		   document.getElementById(p_id+'market_price'+count).style.display="none"; 
		  // alert(document.getElementById(p_id+'market_price'+count).style.display);
		   document.getElementById(p_id+'wholesale_price'+count).style.display="none"; 
	}
	  document.getElementById(p_id+'market_price'+myindex).style.display="inline"; 
	  document.getElementById(p_id+'wholesale_price'+myindex).style.display="inline"; 
    with (dropdown){
	options[myindex].selected=true
	}
	
	if(weightchange!=undefined)
	{
	with (weightchange){
	options[myindex].selected=true
	}
	}
	
	if(sizechange!=undefined)
	{
	with (sizechange){
	options[myindex].selected=true
	}
	}
	 
}

	
function checkprice_custom(dropdown,weightchange,sizechange,frm)
{
   
    var myindex  = dropdown.selectedIndex
	var length  =  dropdown.length
	//for checking is this is coming from customise
	
	     var srcElm = event.srcElement.id; 
		//  var selindex=srcElm.sourceIndex-srcElm.form.sourceIndex;
		 var p_id=srcElm;
		
		 //alert(event.srcElement.form.elements[selindex]);   
		// alert("i got"+srcElm.sourceIndex - srcElm.form.sourceIndex); 
         
    
	
	for(var count=0; count<length; count++)
	{
	  
		   document.getElementById(p_id+'market_price'+count).style.display="none"; 
		   //alert(document.getElementById(p_id+'market_price'+count).style.display);
		   document.getElementById(p_id+'wholesale_price'+count).style.display="none"; 
	}
	  document.getElementById(p_id+'market_price'+myindex).style.display="inline"; 
	  document.getElementById(p_id+'wholesale_price'+myindex).style.display="inline"; 
	
	with (dropdown){
	//alert(myindex);
	options[myindex].selected=true
	//alert('marketprice'+myindex);
	//alert("mohit"+products_price);
	}
	if(weightchange!=undefined)
	{
	with (weightchange){
	options[myindex].selected=true
	}
	
	}
	
	
	
	if(sizechange!=undefined)
	{
	with (sizechange){
	options[myindex].selected=true
	}
	}
	
	/*with (marketpricechange){
	options[myindex].selected=true
	}*/
	
	
 }

function checkweight_custom(dropdown,weightchange,sizechange,frm)
{
   
   
   
    var myindex  = weightchange.selectedIndex
	// alert("hellooomani"+myindex);
	var length  =  dropdown.length
	//frm.price_index.value=myindex;
	//alert(frm.price_index.value);
	//var p_id=frm.products_id.value;
	 var srcElm = event.srcElement.id; 
		//  var selindex=srcElm.sourceIndex-srcElm.form.sourceIndex;
	 var p_id=srcElm;
	
	
	//alert("product"+p_id);
	for(var count=0; count<length; count++)
	{
	  
		   document.getElementById(p_id+'market_price'+count).style.display="none"; 
		  // alert(document.getElementById(p_id+'market_price'+count).style.display);
		   document.getElementById(p_id+'wholesale_price'+count).style.display="none"; 
	}
	  document.getElementById(p_id+'market_price'+myindex).style.display="inline"; 
	  document.getElementById(p_id+'wholesale_price'+myindex).style.display="inline";        //alert("priya"+myindex );
    with (dropdown){
	options[myindex].selected=true
	//this.products_price.value=options[myindex].value;
	}
	
	if(weightchange!=undefined)
	{
	with (weightchange){
	options[myindex].selected=true
	}
	}
	
	
	if(sizechange!=undefined)
	{
	with (sizechange){
	options[myindex].selected=true
	}
	}
	 
}

function checksize_custom(dropdown,weightchange,sizechange,frm)
{
   
    var myindex  = sizechange.selectedIndex
	var length  =  dropdown.length
	//frm.price_index.value=myindex;
	//var p_id=frm.products_id.value;
	var srcElm = event.srcElement.id; 
		//  var selindex=srcElm.sourceIndex-srcElm.form.sourceIndex;
	var p_id=srcElm;
	//alert("product"+p_id);
	for(var count=0; count<length; count++)
	{
	  
		   document.getElementById(p_id+'market_price'+count).style.display="none"; 
		  // alert(document.getElementById(p_id+'market_price'+count).style.display);
		   document.getElementById(p_id+'wholesale_price'+count).style.display="none"; 
	}
	  document.getElementById(p_id+'market_price'+myindex).style.display="inline"; 
	  document.getElementById(p_id+'wholesale_price'+myindex).style.display="inline"; 
    with (dropdown){
	options[myindex].selected=true
	}
	
	if(weightchange!=undefined)
	{
	with (weightchange){
	options[myindex].selected=true
	}
	}
	
	if(sizechange!=undefined)
	{
	with (sizechange){
	options[myindex].selected=true
	}
	}
	 
}