function header(path){
if(path==null)path='./';
document.write('<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD COLSPAN=3  ALIGN=CENTER background="'+path+'homeimages/top.jpg" HEIGHT="98"  ></TD></TR></TABLE>');
}

function footer(path){
if(path==null)path='./';
document.write('	<TABLE WIDTH=100% bgcolor=black>		<TR>			<TD ALIGN=CENTER>	<a HREF="'+path+'index.html" class="one"><font color=white >Home</a> |</font> 				<a HREF="'+path+'about-us.html" class="one"><font color=white >About Us</a> |</font> 			<a HREF="'+path+'disclaimer.html" class="one"><font color=white >Disclaimer</a> |</font> 			<a HREF="'+path+'return-policy.html" class="one"><font color=white >Return Policy</a> |</font> 			<a HREF="'+path+'security.html" class="one"><font color=white >Security</a> |</font> 			<a HREF="'+path+'shipping.html" class="one"><font color=white >Shipping Policy</a> |</font> 			<a HREF="'+path+'terms-conditions.html" class="one"><font color=white >Terms and Conditions</a> |</font> 			<a href="'+path+'feedback-form.html" class="one"><font color=white >Feedback</a> |</font> 			<a href="'+path+'contactus.html" class="one"><font color=white >Contact Us</font></a>  			</TD>		</TR>	</TABLE><table width="100%">	<tr><td COLSPAN=3 ALIGN=CENTER><font color=#0011A7 size=3><B><br>STATEMENT OF CONFIDENCE</B></font><P ALIGN=JUSTIFY>Our payment gateway for your online financial transaction is fully secured with 128-bit encryption facility. Your sensitive financial information is not stored on our server and it is free from any human intervention. The gateway server is assigned a server ID and authenticated by Verisign, one of the leading certifying authorities. It may be noted that Payseal can be adapted to support SET.</td></tr>	<tr><td  ALIGN=CENTER><IMG SRC="'+path+'images/master.gif" WIDTH="86" HEIGHT="45" BORDER="0" ALT="Master Card"></TD><TD  ALIGN=CENTER><IMG SRC="'+path+'images/payseal.gif" WIDTH="123" HEIGHT="104" BORDER="0" ALT="PaySeal - ICICI Payment Gateway"></TD><TD  ALIGN=CENTER><IMG SRC="'+path+'images/visa.gif" WIDTH="86" HEIGHT="45" BORDER="0" ALT="Visa Card"></TD></TR>		<TR><TD COLSPAN=3><P ALIGN=JUSTIFY><b>Chesssetstore.com</b> is a part of Craftsinindia.com Pvt. Ltd., a company registered under the Companies Act 1956 with its registered office at New Delhi. The Company deals in all aspects of the Crafts including Handicrafts, embroidered textiles,handmade paper, etc. The Company sources and sells products through the Internet and also holds exhibitions. The Company has built an impressive network of vendors and artisans through whom all its products are sourced. It is a conscious policy to keep the interest of the buyer the uppermost. We have partnered with ICICI Bank and use authentication by Verisign for the secure online transaction through Credit Cards.<br><br>All the Gift orders are shipped by courier. In case the domestic courier i.e. for delivery within India we use the services of Blue Dart and for international courier i.e. delivery outside India we use the services of UPS. If services of our courier company are not available for any delivery location, the orders are shipped by National Postal Services.<BR><BR><B>Customs duties in the country of destination:</B> In the event that the customs authorities in the customer\'s country of residence, levy any charges on an incoming parcel, these charges are to be borne by the customer, and are not included in the price and shipping charges of the product as displayed on the site.</P>		</TD></TR>		<tr>		<td align="middle" colspan="3"><hr color="#00008B" width="100%" size="3">		<table width="100%" border="0" style="{font-family: verdana; font-size:11px;}" bgcolor="#ffffff" align="center">		<tr><td colspan="2"></td></tr><tr><td width="100%" valign="bottom" class="footStyle" colspan="2"><a HREF="http://www.infobase.co.in"><img src="'+path+'images/comparelogo.gif" border="0" alt="allwonders.com" align="right" WIDTH="74" HEIGHT="87"></a>e-Business of<br> Compare Infobase (P) Ltd<br>C-62, Community Center, Janakpuri, New Delhi-58 (India)<br>Tel : +91-11- 55453565, 55453566, 25542045, 51588013, 51588014<br>Fax : + 91-11-25547264   &nbsp;&nbsp;Mobile : +91(0) 9871399000<br>This site is a part of <a HREF="http://www.allwonders.com">Allwonders.com</a><br>© Copyright &nbsp;&nbsp;- Craftsinindia.com Pvt Ltd. &nbsp;&nbsp;All Rights Reserved.<br>We host with <a href="http://www.serversindia.net">Serversindia.net Pvt. Ltd.</a>&nbsp;&nbsp;Best viewed in 1024 x 768 resolution setting.</td><td width="325" align="right"></td></tr></table>		</td></tr></table></td></tr>		</td>		</tr>		</table>');
}

function checkForm(frm){

var sFieldValue	= frm.quantity.value;
var checkOK		= "0123456789";
var checkStr	= sFieldValue;
var allValid	= true;
var allNum		= "";

if (trim(checkStr)=="" || trim(checkStr)==0)
{ 
    alert("Please enter Product Quantity");
	frm.quantity.focus();
	return(false);
}
for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
/*if(i>1)
{
alert("Please Enter Only two digits number");
frm1.quantity.focus();
return false;
}*/
for (j = 0; j < checkOK.length; j++)
{
	if (ch == checkOK.charAt(j))
		break;
}
                                		
if (j == checkOK.length)
{       
        alert("Please enter Numeric Value");
		frm.quantity.focus();
		allValid = false;
		break;
}
if (ch != ",")
{
	allNum += ch;
}
if (!allValid)
{
	allValid =false;
}
  	}
    	return(allValid);
}


///////////////////////////////////////////////////////////////////////////////////////////////////


function checkSYPForm(frm){

//check your name
	if ( trim(frm.txiName.value).length <=0 ){
		alert("Please fill in your name!");
		frm.txiName.focus();
		return false;
	}
//check email
	if ( trim(frm.txiEmail.value).length <=0 ){
		alert("Please fill in your email!");
		frm.txiEmail.focus();
		return false;
	}

	if ( !IsvalidEmail(trim(frm.txiEmail.value))){
		alert("Email address is not correct!");
		frm.txiEmail.focus();
		return false;
	}

//check Query
	if ( trim(frm.txaQuery.value).length <=0 ){
		alert("Please fill in your Query.!");
		frm.txaQuery.focus();
		return false;
	}

return true;
}


function trim(inputString)
 {
   // Removes leading and trailing spaces from the passed string. Also removes
   // consecutive spaces and replaces it with one space. If something besides
   // a string is passed in (null, custom object, etc.) then return the input.

   if (typeof inputString != "string") { return inputString; }
   var retValue = inputString;
   var ch = retValue.substring(0, 1);
   while (ch == " ") { // Check for spaces at the beginning of the string
      retValue = retValue.substring(1, retValue.length);
      ch = retValue.substring(0, 1);
   }
   ch = retValue.substring(retValue.length-1, retValue.length);
   while (ch == " ") { // Check for spaces at the end of the string
      retValue = retValue.substring(0, retValue.length-1);
      ch = retValue.substring(retValue.length-1, retValue.length);
   }
   while (retValue.indexOf("  ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string
      retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); // Again, there are two spaces in each of the strings
   }
   return retValue; // Return the trimmed string back to the user
} // Ends the "trim" function


function IsvalidEmail(sFieldValue)
{

var REmail=/^\S+\@[\w-]+\.[\w\.-]+$/ ;
var str=sFieldValue;

	if(!str.match(REmail)) 
	{
		return false;
	}	
	else
	{
		return true;
	}	
}

function IsNumeric(sFieldValue)
{
var checkOK = "0123456789";
var checkStr = sFieldValue;
var allValid = true;
var allNum = "";
if (trim(checkStr)=="")
{
	return(false);
}

for (i = 0; i < checkStr.length; i++)
{
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
{
	if (ch == checkOK.charAt(j))
		break;
}
                                		
if (j == checkOK.length)
{
		allValid = false;
		break;
}
if (ch != ",")
{
	allNum += ch;
}
if (!allValid)
{
	allValid =false;
}
  	}
    	return(allValid);
}


function breakFrames(){
	if((top.location!=location)&&(String(location).toLowerCase().indexOf("feedback")==-1))top.location.href=document.location.href;
}
window.document.onload=breakFrames();