//window.open("http://www.india-crafts.com/pop-cc.html","win1","menubar=0, location=0, status=no, directories=no, toolbar=0, scrollbars=0,width=400 height=400,resizable=no,alwaysRaised=yes,cen,cen")
//window.open("http://www.india-crafts.com/pop-cc.html","win1","menubar=0, location=0, status=no, directories=no, toolbar=0, scrollbars=0,width=400 height=400,resizable=no,alwaysRaised=yes,cen,cen");
function shipment()
{
	document.write(' <ul>			<li> Free Shipping Worldwide.<li>Previous Shipment :: 7.30 AM EST Wednesday 18 January, 2006. <li> Next Shipment :: 7.30 AM EST Thursday 19 January, 2006. </li>                             </ul>');
}

function Dsply()
{
	if (window.document.frm1.SndAsGft.checked)
	{
		window.document.all.giftpannel.style.display='inline';
	}
	else
	{
		window.document.all.giftpannel.style.display='none';
	}
return true;
}
function doSameAs(){
	if (window.document.frm1.sameAs.checked){
		window.document.frm1.selTitle.value	=			window.document.frm1.selSenderTitle.value;
		window.document.frm1.txiName.value	=			window.document.frm1.txiSenderName.value;
		//window.document.frm1.txiDesignation.value	=		window.document.frm1.txiSenderDesignation.value;
		//window.document.frm1.txiCompany.value	=		window.document.frm1.txiSenderCompany.value;
		
		window.document.frm1.txaAddress.value	=		window.document.frm1.txaSenderAddress.value;
		window.document.frm1.txiCity.value	=		window.document.frm1.txiSenderCity.value;
		window.document.frm1.txiState.value	=		window.document.frm1.txiSenderState.value;
		window.document.frm1.txiZipcode.value	=		window.document.frm1.txiSenderZipcode.value;
		window.document.frm1.selCountry.value	=		window.document.frm1.selSenderCountry.value;
		window.document.frm1.txiPhone.value	=		window.document.frm1.txiSenderPhone.value;
		window.document.frm1.txiEmail.value	=		window.document.frm1.txiSenderEmail.value;
		window.document.frm1.txaRemarks.value	=		window.document.frm1.txaSenderRemarks.value;
	}else{
		window.document.frm1.selTitle.value	= "";
		window.document.frm1.txiName.value	= "";
		//window.document.frm1.txiDesignation.value	= "";
		//window.document.frm1.txiCompany.value	= "";
		window.document.frm1.txaAddress.value	= "";
		window.document.frm1.txiCity.value	= "";
		window.document.frm1.txiState.value	= "";
		window.document.frm1.txiZipcode.value	= "";
		window.document.frm1.selCountry.value	= "";
		window.document.frm1.txiPhone.value	= "";
		window.document.frm1.txiEmail.value	= "";
		window.document.frm1.txaRemarks.value	= "";
	}
return true;
}
function showFullCard(imageObj){
var a=imageObj.src.split("/");
var aa=a[a.length-1];
var b=aa.split(".");
var bb = b[0] + "F." + b[1];
var title=new String();
//var bb = b[0] + "." + b[1];
//alert(bb);
fullimage = "../images/"+bb;

	if (bb=="seasonsF.jpg"){
			newW=window.open("","win","width=339,height=472");
			title="Seasons Greetings Card :: CraftsInIndia.com";
	}
	else if (bb=="holi1F.jpg"){
			newW=window.open("","win","width=360,height=536");
			title="Holi Greetings Card :: CraftsInIndia.com";
	}
	else if (bb=="holi2F.jpg"){
			newW=window.open("","win","width=360,height=536");
			title="Holi Greetings Card :: CraftsInIndia.com";
	}
	else if (bb=="birthdayF.jpg"){
			newW=window.open("","win","width=360,height=536");
			title="Birthday Greetings Card :: CraftsInIndia.com";
	}else if (bb=="thankyouF.jpg"){
			newW=window.open("","win","width=244,height=360");
			title="Thankyou Card :: CraftsInIndia.com";
	}else if (bb=="newyearF.jpg"){
			newW=window.open("","win","width=360,height=506");
			title="New Year Greetings Card :: CraftsInIndia.com";
	}else if (bb=="christmasF.jpg"){
			newW=window.open("","win","width=360,height=506");
			title="Christmas Greetings Card :: CraftsInIndia.com";
	}else if (bb=="iloveuF.jpg"){
			newW=window.open("","win","width=360,height=506");
			title="Valentine Greetings Card :: CraftsInIndia.com";
	}else if (bb=="myloveF.jpg"){
			newW=window.open("","win","width=360,height=506");
			title="Valentine Greetings Card :: CraftsInIndia.com";
	}

newW.document.open();
newW.document.write("<html><head><title>"+title+"</title><body topmargin=0 leftmargin=0><img src="+fullimage+"></body></html>");


}



adsmap = new Array('<A HREF="http://craftsinindia.com/home-decor/index.html" target="_blank"><IMG SRC="http://www.craftsinindia.com/images/banners/decor.gif" ALT="Home Decor" border=0></A>',

'<A HREF="http://craftsinindia.com/miniature-paintings/index.html" target="_blank"><IMG SRC="http://www.craftsinindia.com/images/banners/minitures.gif" ALT="" border=0></A>',

'<A HREF="http://craftsinindia.com/glass-paintings/index.html" target="_blank"><IMG SRC="http://www.craftsinindia.com/images/banners/Paintings.gif" ALT="" border=0></A>',                                                                                                                                                  '<A HREF="http://craftsinindia.com/sculptures/index.html" target="_blank"><IMG SRC="http://www.craftsinindia.com/images/banners/Sculpture.gif" ALT="" border=0></A>',

'<A HREF="http://craftsinindia.com/valentine-gifts/index.html" target="_blank"><IMG SRC="http://www.craftsinindia.com/images/banners/banner_valentine.jpg" ALT="" border=0></A>',

'<A HREF="http://craftsinindia.com/wholesale-query/index.html" target="_blank"><IMG SRC="http://www.craftsinindia.com/images/banners/banner_wholesale.gif" ALT="" border=0></A>')

function insertmaps_ad() 
{
 val = Math.round(Math.random()*(adsmap.length-1))
 document.write(adsmap[val])
}




///////////////////////////////////////////////////////////////////////////////
function changeCard(selCardObj){
//alert(selCardObj.value);
var newimagesrc=new String();
newimagesrc="../images/"+selCardObj.value+".jpg";
//alert( newimagesrc );
window.document.getElementById("cardImage").src = newimagesrc;
}
////////////////////////////////////////////////COMMON FUNCTIONS/////////////////////////////////////////////////////////////////////
//THIS FUNTION CHECK FOR A VALID  EMAIL ADDRESS.
function isValidEmail(emailid) {
if (emailid == ""){
	return false; // because  it is not optional 
}
else{
		var eid=emailid;

		if (eid.indexOf(' ')!= -1){
			return false ; // no spaces
		} 
		if (eid.length < 6 ){
			return false ; // at least j.a@in
		}
		at=eid.indexOf('@', 0); //check from first position ---- 
		if ( at == -1 || at == 0){ //should not be at first place
			return false ;
		}else{
				var at1=eid.indexOf('@', (at + 1)); //looking for another at one place ahead
				if ( at1 == -1 ) // ie only one at is there
				{
					var dot=eid.indexOf('.',(at + 1));//looking for just next value
					if(dot == (at + 1)|| dot== -1){ //if dot is not there or in the next place
						return false ;	
						}
					else{
						 if ( (dot + 2 ) < eid.length )
							return true ;
						 else{
							return false ;
						}
					}
				}
				else // two @ are there
				{
					return false;
				}
			}	
	return false ;
	}		
}
//////////////////THIS FUNCTION CHECK ANY GIVEN PHONE NO.
function isValidPhone(phoneid){
var numstr="1234567890+-, ";
var intctr,intLen;
    intLen=phoneid.length;
        for(intCtr=0;intCtr <= intLen && numstr.indexOf(phoneid.charAt(intCtr))>=0 ;intCtr++);
        if(intCtr > intLen)
              return true;
        else
              return false;
      
}

function trim(str1){
// This function trims any given field value for blank spaces.
        var intCtr=0
        for(intCtr=0;str1.charAt(intCtr)==" ";intCtr++);
        str1=str1.substring(intCtr,str1.length);
        return str1;    
}
function checkforchar(strdate){
//This function checks for string values
var validdate = ".abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var strlength = strdate.length;
	for(var i=0; i<=strlength; i++)
	{
		var unitstr = strdate.substr(i,1);
		if (validdate.indexOf(unitstr)==-1)
		{
			return false;
		}
	}
	return true;
}
function isAllNumeric(str1){
//This function checks for numeric values
        var numstr="1234567890 ,-";
        var intctr,intLen;
            intLen=str1.length;
        for(intCtr=0;intCtr <= intLen && numstr.indexOf(str1.charAt(intCtr))>=0 ;intCtr++);
        if(intCtr > intLen)
        {
                return 1;
        }
        else
        {
        return 0;
        }
}

function goBack() { 
history.back();   
}

function checkFormLogin(frm)
{
	if ( trim(frm.username.value).length <= 0 ){
			alert("Login - Name is missing!");
			frm.username.focus();
			return false;
	}
	if ( trim(frm.password.value).length <= 0 ){
			alert("Password - Name is missing!");
			frm.password.focus();
			return false;
	}
	else
	{
		return true;
	}

}

function checkForm(frm){
//////////////////////////////////////////////////sender address validations.///////////////////////////////////////////////////
//check for name
	if ( trim(frm.txiSenderName.value).length <= 0 ){
			alert("Billing - Name is missing!");
			frm.txiSenderName.focus();
			return false;
	}
//check name for chars only.
	if ( !checkforchar(trim(frm.txiSenderName.value) )){
		alert("Sorry! Billing - Name has character(s) that are not allowed for name!");
		frm.txiSenderName.focus();
		return false;
	}

//check for address
	if ( trim(frm.txaSenderAddress.value).length <= 0 ){
			alert("Billing  - Address is missing!");
			frm.txaSenderAddress.focus();
			return false;
	}

//check for city
	if ( trim(frm.txiSenderCity.value).length <= 0 ){
			alert("Billing - City is missing!");
			frm.txiSenderCity.focus();
			return false;
	}
//check for state
	//Comented by Akshay on 19th Feb to make state field optional
	//if ( trim(frm.txiSenderState.value).length <= 0 ){
	//		alert("Billing - State is missing!");
	//		frm.txiSenderState.focus();
	//		return false;
	//}

//check for ZipCOde
	if ( trim(frm.txiSenderZipcode.value).length <= 0 ){
			alert("Billing - Zip code is missing!");
			frm.txiSenderZipcode.focus();
			return false;
	}

//check for country
	if ( trim(frm.selSenderCountry.value).toUpperCase() == "NA" ){
			alert("Billing - Country is missing!");
			frm.selSenderCountry.focus();
			return false;
	}
if ( trim(frm.selSenderCountry.value).toUpperCase() == "" ){
			alert("Billing - Country is missing!");
			frm.selSenderCountry.focus();
			return false;
	}
//check for phone
	if ( trim(frm.txiSenderPhone.value).length <= 0 ){
			alert("Billing - Phone is missing!");
			frm.txiSenderPhone.focus();
			return false;
	}
//check for phone validity.
	if ( !isValidPhone(trim(frm.txiSenderPhone.value)) ) {
			alert("Billing - Phone no is not correct!");
			frm.txiSenderPhone.focus();
			return false;
	}


//check for email
	if ( trim(frm.txiSenderEmail.value).length <= 0 ){
			alert("Billing -  Email is missing!");
			frm.txiSenderEmail.focus();
			return false;
	}

//check for email validity.
	if ( !isValidEmail(trim(frm.txiSenderEmail.value)) ) {
			alert("Billing - Email is not correct!");
			frm.txiSenderEmail.focus();
			return false;
	}


//////////////////////////////////////////////////delivery address validations.///////////////////////////////////////////////////
//check for name
	if ( trim(frm.txiName.value).length <= 0 ){
			alert("Delivery - Name is missing!");
			frm.txiName.focus();
			return false;
	}
//check name for chars only.
	if ( !checkforchar(trim(frm.txiName.value) )){
		alert("Sorry! Delivery - Name has character(s) that are not allowed for name!");
		frm.txiName.focus();
		return false;
	}


//check for address
	if ( trim(frm.txaAddress.value).length <= 0 ){
			alert("Delivery  - Address is missing!");
			frm.txaAddress.focus();
			return false;
	}

//check for city
	if ( trim(frm.txiCity.value).length <= 0 ){
			alert("Delivery - City is missing!");
			frm.txiCity.focus();
			return false;
	}
//check for state ***
	//Comented by Akshay on 19th Feb to kake state field optional
	//if ( trim(frm.txiState.value).length <= 0 ){
	//		alert("Delivery - State is missing!");
	//		frm.txiState.focus();
	//		return false;
	//}

//check for ZipCOde
	if ( trim(frm.txiZipcode.value).length <= 0 ){
			alert("Delivery - Zip code is missing!");
			frm.txiZipcode.focus();
			return false;
	}

//check for country
	if ( trim(frm.selCountry.value).toUpperCase() == "NA" ){
			alert("Delivery - Country is missing!");
			frm.selCountry.focus();
			return false;
	}
if ( trim(frm.selCountry.value).toUpperCase() == "" ){
			alert("Delivery - Country is missing!");
			frm.selCountry.focus();
			return false;
	}
//check for phone
	if ( trim(frm.txiPhone.value).length <= 0 ){
			alert("Delivery - Phone is missing!");
			frm.txiPhone.focus();
			return false;
	}
//check for phone validity.
	if ( !isValidPhone(trim(frm.txiPhone.value)) ) {
			alert("Delivery - Phone no is not correct!");
			frm.txiPhone.focus();
			return false;
	}


//check for email
	if ( trim(frm.txiEmail.value).length <= 0 ){
			alert("Delivery -  Email is missing!");
			frm.txiEmail.focus();
			return false;
	}

//check for email validity.
	if ( !isValidEmail(trim(frm.txiEmail.value)) ) {
			alert("Delivery - Email is not correct!");
			frm.txiEmail.focus();
			return false;
	}


	if ( frm.txaMsg.value.length > 100 ){
		alert("Gift message is greater than the maximum chars limit(100).\n");
		frm.txaMsg.focus();
		return false;

	}



//if all fields are valid then
	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 IsNumeric()
{

var sFieldValue=frm1.quantity.value
var checkOK = "0123456789";
var checkStr = sFieldValue;
var allValid = true;
var allNum = "";

if (trim(checkStr)=="" || trim(checkStr)==0)
{ 
    alert("Please enter Product Quantity");
	frm1.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");
		frm1.quantity.focus();
		allValid = false;
		break;
}
if (ch != ",")
{
	allNum += ch;
}
if (!allValid)
{
	allValid =false;
}
  	}
    	return(allValid);
}

function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
bw=new verifyCompatibleBrowser() 
  
var speed=30 
var loop, timer 
 
function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.' 
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
    this.up=MoveAreaUp;this.down=MoveAreaDown; 
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y  
} 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".down("+move+")",speed) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 
function PerformScroll(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0) objScroller.down(speed) 
		else objScroller.up(speed) 
	} 
} 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 
function InitialiseScrollableArea(){ 
    objContainer=new ConstructObject('divContainer') 
    objScroller=new ConstructObject('divContent','divContainer') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 
} 

function displayStatusMsg(msgStr) { 
  status=msgStr;
  document.returnValue = true;
}

function preloadImages() { 
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function swapImgRestore() { 
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function findObj(n, d) { 
  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=findObj(n,d.layers[i].document); return x;
}

function swapImage() { 
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function GetDay(nDay)
{
	var Days = new Array("Sunday","Monday","Tuesday","Wednesday",
	                     "Thursday","Friday","Saturday");
	return Days[nDay]
}

function GetMonth(nMonth)
{
	var Months = new Array("January","February","March","April","May","June",
	                       "July","August","September","October","November","December");
	return Months[nMonth] 	  	 
}

 function time7(page)
 {
	 
	var thetime=new Date(); 
	var nhours=thetime.getHours(); 
	var ndayno=thetime.getDay(); 
	var nday=thetime.getDate(); 
	var nmonth=thetime.getMonth(); 
	var nyear=thetime.getYear(); 
	//alert(nhours)
	if(nhours >= 19)
	{
		nextday = nday + 1
		preday = nday 
		pdays = (ndayno)%7
		ndays = ndayno + 1
		if(ndayno == 6)
		{
			nextday = nextday + 1
			ndays = 1	
		}
	}
	else
	{
		nextday = nday
		preday = nday - 1
		pdays = (ndayno -1 )%7
		ndays = ndayno
	}

	if(ndayno == 0)
	{
		nextday = nday + 1
		preday = nday -1
		pdays = 6
		ndays = 1
	}
	
	if(ndayno == 1 && nhours >= 19)
	{
		nextday = nday + 1
		preday = nday 
		pdays = 1
		ndays = 2
	}
	else if(ndayno == 1 && nhours < 19) 
	{
		nextday = nday 
		preday = nday -2
		pdays = 6
		ndays = 1
	}

	if (page == 0)
	{
		document.write("<font color=#7b2117>Previous Shipment </b>:: 7 PM IST "+GetDay(pdays)+" "+preday+" "+GetMonth(nmonth)+", "+nyear+". ")
		document.write("<font color=#7b2117>Next Shipment </b>:: 7 PM IST "+GetDay(ndays)+" "+(nextday)+" "+GetMonth(nmonth)+", "+nyear+"</font>")
	}
	else if (page == 1)
	{
		document.write("<font color=#d55000>Previous Shipment </b>:: 7 PM IST "+GetDay(pdays)+" "+preday+" "+GetMonth(nmonth)+", "+nyear)
	}
	else
	 {
		document.write("<font color=#7b2117>Next Shipment </b>:: 7 PM IST "+GetDay(ndays)+" "+(nextday)+" "+GetMonth(nmonth)+", "+nyear)
	 }
	
}

function display_date(day_variant)
{
	
        s_date = new Date();

        if(!isNaN(day_variant))
		{
			with (s_date) setDate(getDate() + day_variant);
		}

		var weekDay = "";

        selectMonth = new Array(12);
                selectMonth[0] = "Jan";
                selectMonth[1] = "Feb";
                selectMonth[2] = "Mar";
                selectMonth[3] = "Apr";
                selectMonth[4] = "May";
                selectMonth[5] = "Jun";
                selectMonth[6] = "Jul";
                selectMonth[7] = "Aug";
                selectMonth[8] = "Sep";
                selectMonth[9] = "Oct";
                selectMonth[10] = "Nov";
                selectMonth[11] = "Dec";

        if(s_date.getDay() == 1){
                weekDay = "Monday";
        }
        if(s_date.getDay() == 2){
                weekDay = "Tuesday";
        }
        if(s_date.getDay() == 3){
                weekDay = "Wednesday";
        }
        if(s_date.getDay() == 4){
                weekDay = "Thursday";
        }
        if(s_date.getDay() == 5){
                weekDay = "Friday";
        }
        if(s_date.getDay() == 6){
                weekDay = "Saturday";
        }
        if(s_date.getDay() == 7){
                weekDay = "Sunday";
        }
        if(s_date.getDay() == 0){
                weekDay = "Sunday";
        }


        var setYear = s_date.getYear();

	 var BName = navigator.appName;

	 if(BName == "Netscape"){
			 var setYear = s_date.getYear() + 1900;
	}

	return (weekDay + ", " + selectMonth[s_date.getMonth()] + " " + s_date.getDate() + ", " + setYear);

//	return " to-date";
}

function rem(frm){
	document.frm.txtPrdNme1.value="";
}
function wrt(frm){
	if (document.frm.txtPrdNme1.value==""){
		document.frm.txtPrdNme1.value="Product Name...";
	}
}

function track()
{
	window.open("http://www.craftsinindia.com/track_order.asp?action=form",'NewWin','Width=400,height=550,scrollbars=no,location=no,status=no,resizable=no,top=20, left=50');
}


function checkFrm(frm)
{
	//check for name
	if ( trim(frm1.txiName.value).length <= 0 ){
			alert("Delivery - Name is missing!");
			frm1.txiName.focus();
			return false;
	}
//check name for chars only.
	if ( !checkforchar(trim(frm1.txiName.value) )){
		alert("Sorry! Delivery - Name has character(s) that are not allowed for name!");
		frm1.txiName.focus();
		return false;
	}


//check for address
	if ( trim(frm1.txaAddress.value).length <= 0 ){
			alert("Delivery  - Address is missing!");
			frm1.txaAddress.focus();
			return false;
	}

//check for city
	if ( trim(frm1.txiCity.value).length <= 0 ){
			alert("Delivery - City is missing!");
			frm1.txiCity.focus();
			return false;
	}
//check for state ***
	//Comented by Akshay on 19th Feb to kake state field optional
	//if ( trim(frm1.txiState.value).length <= 0 ){
	//		alert("Delivery - State is missing!");
	//		frm1.txiState.focus();
	//		return false;
	//}

//check for ZipCOde
	if ( trim(frm1.txiZipcode.value).length <= 0 ){
			alert("Delivery - Zip code is missing!");
			frm1.txiZipcode.focus();
			return false;
	}

//check for country
	if ( trim(frm1.selCountry.value).toUpperCase() == "NA" ){
			alert("Delivery - Country is missing!");
			frm1.selCountry.focus();
			return false;
	}
	if ( trim(frm1.selCountry.value).toUpperCase() == "" ){
			alert("Delivery - Country is missing!");
			frm1.selCountry.focus();
			return false;
	}

//check for phone
	if ( trim(frm1.txiPhone.value).length <= 0 ){
			alert("Delivery - Phone is missing!");
			frm1.txiPhone.focus();
			return false;
	}
//check for phone validity.
	if ( !isValidPhone(trim(frm1.txiPhone.value)) ) {
			alert("Delivery - Phone no is not correct!");
			frm1.txiPhone.focus();
			return false;
	}


//check for email
	if ( trim(frm1.txiEmail.value).length <= 0 ){
			alert("Delivery -  Email is missing!");
			frm1.txiEmail.focus();
			return false;
	}

//check for email validity.
	if ( !isValidEmail(trim(frm1.txiEmail.value)) ) {
			alert("Delivery - Email is not correct!");
			frm1.txiEmail.focus();
			return false;
	}


	if ( frm1.txaMsg.value.length > 100 ){
		alert("Gift message is greater than the maximum chars limit(100).\n");
		frm1.txaMsg.focus();
		return false;

	}



//if all fields are valid then
	return true;

}

function header()
{
	document.write('<table width="780" border="0" cellspacing="0" cellpadding="0">        <tr>           <td align="left" valign="top" width="260"><img src="http://www.craftsinindia.com/homeimages/top_01.jpg" width="260" height="125"></td>          <td align="left" valign="top" width="267"><img src="http://www.craftsinindia.com/homeimages/top_02.jpg" width="267" height="125"></td>          <td align="left" valign="top">			 <img src="http://www.craftsinindia.com/homeimages/top_03.jpg" width="253" height="125"></td>        </tr></table>');
}

function footer()
{
	document.write('<table width="780"><tr bgcolor="#000000">                 <td  colspan="4" align="left" valign="top" height="5"></td>              </tr>              <tr>                <td  colspan="4" align="left" valign="top">                  <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#103478">                    <tr>                       <td width="65"><img src="http://www.craftsinindia.com/newimages/logo.gif" width="59" height="111"></td>                      <td valign="bottom" align="left" class="bott-text" width="52%">e-Business                         of<br>                        Craftsinindia.com (P) Ltd<br>                        C-62, Community Center, Janakpuri, New Delhi-58 (India)<br>                        Tel : +91-11-51588012, 51588013, 25542045<br>                        Fax : +91-11-25547264<br>                        Mobile : +91- 9871399021<br>                        This site is a part of <a href="http://allwonders.com" class="bott-text" target="_blank">Allwonders.com</a><br>                        &copy; Copyright - Craftsinindia.com Pvt Ltd. 1998-2005, All Rights                         Reserved.</td>                      <td valign="top">                         <table width="100%" border="0" cellspacing="7" cellpadding="7">                          <tr>                             <td background="http://www.craftsinindia.com/homeimages/bottom_girls.jpg" height="63">&nbsp;</td>                          </tr>                        </table>                      </td>                                         </tr>                  </table>                </td>              </tr></table>');
}

function getBuyer(sele){
	if (sele.value == "Other" ){
		alert("Please specify your buyer type in the next text box...!");
			window.document.forms[0].txiBuyer.value ="";
		window.document.forms[0].txiBuyer.disabled = false;
		window.document.forms[0].txiBuyer.focus();
	}else{
		window.document.forms[0].txiBuyer.value ="Not Applicable";
		window.document.forms[0].txiBuyer.disabled = true;
//		window.document.forms[0].txiBuyer.focus();
	}
	
}

function form_bottom()
{
document.write('<form action="http://www.craftsinindia.com/query_new.asp" method="post" onsubmit="return checkMe(this)"><table align="center" cellspacing=0 cellpadding=2 width="40%" border=0   style="{font-family:verdana;font-size:10px;font-weight:normal;color:#ffffff;border-bottom:1 solid black;border-top:1 solid black;border-left:1 solid black;border-right:1 solid black;}">  <TR>    <TD bgColor=#D08E6B colSpan=2 style="{border-bottom:1 outset #ffffff;color:#000000;}">      <P align=center><FONT size=+1 ><STRONG>Put Your Query</STRONG> </FONT></P></TD></TR>		<tr><td colspan="2" bgcolor="#D08E6B" style="{border-bottom:1 outset #ffffff;color:#000000;}">      <P align=center>All fields marked with <FONT       color=#ff0000><STRONG>* </STRONG></FONT>     are mandatory       to fill while putting your query so that we can get back to you       easily...!                           </P></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">Name :</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}">      <P><input name="txiName" size="31" ><font color="#ff0000" size="3"><b>*</b></font></P></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">Company :</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}"><input name="txiCompany" size="31"  ></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">Address :</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}"><input name="txiAddress" size="31"  ><FONT color=black size=3><B><FONT color=#ff0000     size=3><B>*</B></FONT></B></FONT></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">City :</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}"><input name="txiCity"  size="31" ><FONT color=black size=3><B><FONT color=#ff0000     size=3><B>*</B></FONT></B></FONT></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">Country :</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}"><SELECT name=selCountry size=1> <OPTION selected value="">Select Your Country of Residence<OPTION value=Afghanistan>Afghanistan<OPTION value=Albania>Albania<OPTION value=Algeria>Algeria<OPTION value="American Samoa">American Samoa<OPTION value=Andorra>Andorra<OPTION value=Angola>Angola<OPTION value=Anguilla>Anguilla<OPTION value=Anguilla>Antarctica<OPTION value="Antigua and Barbuda">Antigua and Barbuda<OPTION value=Argentina>Argentina<OPTION value=Armenia>Armenia<OPTION value=Aruba>Aruba<OPTION value=Australia>Australia<OPTION value=Austria>Austria<OPTION value=Azerbaijan>Azerbaijan<OPTION       value=Bahamas>Bahamas<OPTION value=Bahrain>Bahrain<OPTION value=Bangladesh>Bangladesh<OPTION value=Barbados>Barbados<OPTION value=Belarus>Belarus<OPTION value=Belgium>Belgium<OPTION   value=Belize>Belize<OPTION value=Benin>Benin<OPTION value=Bermuda>Bermuda<OPTION value=Bhutan>Bhutan<OPTION   value=Bolivia>Bolivia<OPTION value="Bosnia and Herzegovina">Bosnia and Herzegovina<OPTION value=Botswana>Botswana<OPTION value=Brazil>Brazil<OPTION value="British Indian Ocean Territory">British Indian Ocean Territory<OPTION value="British Virgin Islands">British Virgin Islands<OPTION value=Brunei>Brunei<OPTION value=Bulgaria>Bulgaria<OPTION value="Burkina Faso">Burkina Faso<OPTION value=Burundi>Burundi<OPTION value=Cambodia>Cambodia<OPTION value=Cameroon>Cameroon<OPTION value=Canada>Canada<OPTION value="Cape Verde">Cape Verde<OPTION value="Cayman Islands">Cayman Islands<OPTION value="Central African Republic">Central African Republic<OPTION value=Chad>Chad<OPTION value=Chile>Chile<OPTION value=China>China<OPTION value="Christmas Island">Christmas Island<OPTION value="Cocos Islands">Cocos Islands<OPTION value=Colombia>Colombia<OPTION value=Comoros>Comoros<OPTION value=Congo>Congo<OPTION value="Cook Islands">Cook Islands<OPTION   value="Costa Rica">Costa Rica<OPTION value=Croatia>Croatia<OPTION value=Cuba>Cuba<OPTION value=Cyprus>Cyprus<OPTION value="Czech Republic">Czech Republic<OPTION value=Denmark>Denmark<OPTION value=Djibouti>Djibouti<OPTION value=Dominica>Dominica<OPTION value="Dominican Republic">Dominican   Republic<OPTION value="East Timor">East Timor<OPTION value=Ecuador>Ecuador<OPTION value=Egypt>Egypt<OPTION  value="El Salvador">El Salvador<OPTION value="Equatorial Guinea">Equatorial Guinea<OPTION   value=Eritrea>Eritrea<OPTION value=Estonia>Estonia<OPTION value=Ethiopia>Ethiopia<OPTION value="Falkland Islands">Falkland Islands<OPTION value="Faroe Islands">Faroe Islands<OPTION value=Fiji>Fiji<OPTION value=Finland>Finland<OPTION value=France>France<OPTION value="French Guiana">French Guiana<OPTION  value="French Polynesia">French Polynesia<OPTION value="French Southern Territories">French Southern Territories<OPTION value=Gabon>Gabon<OPTION value=Gambia>Gambia<OPTION value=Georgia>Georgia<OPTION value=Germany>Germany<OPTION value=Ghana>Ghana<OPTION value=Gibraltar>Gibraltar<OPTION   value=Greece>Greece<OPTION value=Greenland>Greenland<OPTION value=Grenada>Grenada<OPTION value=Guadeloupe>Guadeloupe<OPTION value=Guam>Guam<OPTION value=Guatemala>Guatemala<OPTION   value=Guinea>Guinea<OPTION value=Guinea-Bissau>Guinea-Bissau<OPTION value=Guyana>Guyana<OPTION value=Haiti>Haiti<OPTION value="Heard and McDonald Islands">Heard and McDonald Islands<OPTION     value=Honduras>Honduras<OPTION value="Hong Kong">Hong Kong<OPTION value=Hungary>Hungary<OPTION value=Iceland>Iceland<OPTION value=India>India<OPTION value=Indonesia>Indonesia<OPTION   value=Iran>Iran<OPTION value=Iraq>Iraq<OPTION value=Ireland>Ireland<OPTION value=Israel>Israel<OPTION   value=Italy>Italy<OPTION value="Ivory Coast">Ivory Coast<OPTION value=Jamaica>Jamaica<OPTION value=Japan>Japan<OPTION value=Jordan>Jordan<OPTION value=Kazakhstan>Kazakhstan<OPTION   value=Kenya>Kenya<OPTION value=Kiribati>Kiribati<OPTION value="Korea, North">Korea, North<OPTION value="Korea, South">Korea, South<OPTION value=Kuwait>Kuwait<OPTION value=Kyrgyzstan>Kyrgyzstan<OPTION value=Laos>Laos<OPTION   value=Latvia>Latvia<OPTION value=Lebanon>Lebanon<OPTION value=Lesotho>Lesotho<OPTION value=Liberia>Liberia<OPTION   value=Libya>Libya<OPTION value=Liechtenstein>Liechtenstein<OPTION value=Lithuania>Lithuania<OPTION value=Luxembourg>Luxembourg<OPTION value=Macau>Macau<OPTION value=Madagascar>Madagascar<OPTION  value=Malawi>Malawi<OPTION value=Malaysia>Malaysia<OPTION value=Maldives>Maldives<OPTION value=Mali>Mali<OPTION   value=Malta>Malta<OPTION value="Marshall Islands">Marshall Islands<OPTION value=Martinique>Martinique<OPTION   value=Mauritania>Mauritania<OPTION value=Mauritius>Mauritius<OPTION value=Mayotte>Mayotte<OPTION value=Mexico>Mexico<OPTION value="Micronesia, Federated States of">Micronesia, Federated States   of,<OPTION value=Moldova>Moldova<OPTION value=Monaco>Monaco<OPTION value=Mongolia>Mongolia<OPTION value=Montserrat>Montserrat<OPTION value=Morocco>Morocco<OPTION value=Mozambique>Mozambique<OPTION   value=Myanmar>Myanmar<OPTION value=Namibia>Namibia<OPTION value=Nauru>Nauru<OPTION value=Nepal>Nepal<OPTION   value=Netherlands>Netherlands<OPTION value="Netherlands Antilles">Netherlands Antilles<OPTION value="New Caledonia">New Caledonia<OPTION value="New Zealand">New Zealand<OPTION value=Nicaragua>Nicaragua<OPTION value=Niger>Niger<OPTION value=Nigeria>Nigeria<OPTION value=Niue>Niue<OPTION value="Norfolk Island">Norfolk Island<OPTION value="Northern Mariana Islands">Northern Mariana Islands<OPTION value=Norway>Norway<OPTION value=Oman>Oman<OPTION value=Pakistan>Pakistan<OPTION value=Palau>Palau<OPTION value=Panama>Panama<OPTION value="Papua New Guinea">Papua New Guinea<OPTION value=Paraguay>Paraguay<OPTION value=Peru>Peru<OPTION value=Philippines>Philippines<OPTION value="Pitcairn Island">Pitcairn Island<OPTION value=Poland>Poland<OPTION value=Portugal>Portugal<OPTION value="Puerto Rico">Puerto Rico<OPTION value=Qatar>Qatar<OPTION value=Reunion>Reunion<OPTION value=Romania>Romania<OPTION   value=Russia>Russia<OPTION value=Rwanda>Rwanda<OPTION value="S. Georgia and S. Sandwich Isls.">S. Georgia and S. Sandwich Isls<OPTION value="Saint Kitts &amp; Nevis">Saint Kitts &amp; Nevis<OPTION value="Saint Lucia">Saint Lucia<OPTION value="Saint Vincent and The Grenadines">Saint Vincent and The Grenadines<OPTION value=Samoa>Samoa<OPTION value="San Marino">San Marino<OPTION value="Sao Tome and Principe">Sao Tome and Principe<OPTION value="Saudi Arabia">Saudi Arabia<OPTION value=Senegal>Senegal<OPTION   value=Seychelles>Seychelles<OPTION value=Seychelles>Seychelles<OPTION value=Singapore>Singapore<OPTION value=Slovakia>Slovakia<OPTION value=Slovenia>Slovenia<OPTION value=Somalia>Somalia<OPTION value="South Africa">South Africa<OPTION value=Spain>Spain<OPTION value="Sri Lanka">Sri Lanka<OPTION value="St. Helena">St. Helena<OPTION value="St. Pierre and Miquelon">St. Pierre and Miquelon<OPTION value=Sudan>Sudan<OPTION value=Suriname>Suriname<OPTION value="Svalbard and Jan Mayen Islands">Svalbard and Jan Mayen  Islands<OPTION value=Swaziland>Swaziland<OPTION value=Sweden>Sweden<OPTION value=Switzerland>Switzerland<OPTION   value=Syria>Syria<OPTION value=Taiwan>Taiwan<OPTION value=Tajikistan>Tajikistan<OPTION value=Tanzania>Tanzania<OPTION value=Thailand>Thailand<OPTION value=Togo>Togo<OPTION   value=Tokelau>Tokelau<OPTION value=Tonga>Tonga<OPTION value="Trinidad and Tobago">Trinidad and Tobago<OPTION   value=Tunisia>Tunisia<OPTION value=Turkey>Turkey<OPTION value=Turkmenistan>Turkmenistan<OPTION              value="Turks and Caicos Islands">Turks and Caicos Islands<OPTION value=Tuvalu>Tuvalu<OPTION value="U.S. Minor Outlying Islands">U.S. Minor Outlying Islands<OPTION value=Uganda>Uganda<OPTION           value=Ukraine>Ukraine<OPTION value="United Arab Emirates">United Arab Emirates<OPTION value="United Kingdom">United Kingdom<OPTION value="United States of America">United States of America<OPTION value=Uruguay>Uruguay<OPTION value=Uzbekistan>Uzbekistan<OPTION value=Vanuatu>Vanuatu<OPTION value="Vatican City">Vatican City<OPTION value=Venezuela>Venezuela<OPTION value=Vietnam>Vietnam<OPTION value="Virgin Islands">Virgin Islands<OPTION value="Wallis and Futuna Islands">Wallis and Futuna Islands<OPTION   value="Western Sahara">Western Sahara<OPTION value=Yemen>Yemen<OPTION value="Yugoslavia (Former)">Yugoslavia (Former)<OPTION value=Zaire>Zaire<OPTION value=Zambia>Zambia<OPTION  value=Zimbabwe>Zimbabwe</OPTION></SELECT><FONT color=black size=3><B><FONT color=#ff0000       size=3><B>*</B></FONT></B></FONT></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">Telephone/Fax/Mobile :</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}"><input name="txiPhone"  size="9" ><FONT color=black size=3><input name="txiFax"  size="8" ><FONT color=black size=3><input name="txiMobile"  size="10" ><FONT color=black size=3><B><FONT color=#ff0000     size=3><B>*</B></FONT></B></FONT></td></tr>  <TR bgcolor="#F9E0C1">    <TD height=20 style="{border-bottom:1 outset #ffffff;color:#000000;}">Email Address :</TD>    <TD style="{border-bottom:1 outset #ffffff;color:#000000;}"><INPUT name="txiEmailAddress" size=31><FONT color=black size=3><B><FONT color=#ff0000     size=3><B>*</B></FONT></B></FONT></TD></TR>			<tr bgcolor="#F9E0C1"><td  valign="top" style="{border-bottom:1 outset #ffffff;color:#000000;}">&nbsp;Buyer :</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}">      <select name="selBuyer" onchange="getBuyer(this)">	<option value="Individual" selected>Individual	<option value="Wholesaler">Wholesaler	<option value="Chain Store">Chain Store	 <option value="Mail Order Co.">Mail Order Co.	  <option value="Online Shop">Online Shop    <option value="Hotels">Hotels	 <option value="Other">Any         Other</option> </select><input name="txiBuyer" size=14 disabled value="Not Applicable">       <FONT color=black size=3><B><FONT color=#ff0000       size=3><B>*</B></FONT></B></FONT></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">Quantity Interested in buying </td><td><select name="selQty">			<option value="" selected>[---- Please select the quantity ----]</option>			<option value="1-10">1-10</option>			<option value="10-100">10-100</option>			<option value="100-1000">100-1000</option>			<option value="1000-5000">1000-5000</option>			<option value="5000-n-above">5000 n above</option>			</select> <FONT color=black   size=3><B><FONT color=#ff0000       size=3><B>*</B></FONT></B></FONT></td></tr>			<tr bgcolor="#F9E0C1"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">Product Information and Other Specifications required</td>			<td style="{border-bottom:1 outset #ffffff;color:#000000;}"><TEXTAREA cols=26 name=txaQuery rows=5></TEXTAREA><FONT       color=black size=3><B></B></FONT></td>			</tr>			<tr bgcolor="#F9E0C1" height="40"><td style="{border-bottom:1 outset #ffffff;color:#000000;}">&nbsp;</td><td style="{border-bottom:1 outset #ffffff;color:#000000;}"><input type="submit" value="submit" style="{background-color:#D08E6B;color:#ffffff;border-bottom:2 inset #FFFFFF;border-top:0 solid black;border-left:0 solid black;border-right:2 inset #FFFFFF;}">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" style="{background-color:#D08E6B;color:#ffffff;border-bottom:2 inset #FFFFFF;border-top:0 solid black;border-left:0 solid black;border-right:2 inset #FFFFFF;}" value=Reset></td></tr></table></dir></dir></dir></form><br>')
}

function checkMe(frm){
/*	for ( var i=0 ; i < window.document.forms[0].elements.length - 1; i++){
		alert(window.document.forms[0].elements[i].name);
	}*/
	var buyer ="";
	var errorMessage ="";
	//////////////////////////////Name////////////////////////////////////
	if (  frm.txiName.value.length <= 0 ) {
			errorMessage = "The following(s) fields input is not valid!\n";
			errorMessage += "Your Name\n";
	}
	//////////////////////////Company//////////////////////////////////////
	/*if ( frm.txiCompany.value.length <= 0 ) {
			errorMessage += "Your Company Name\n";
	}*/
	///////////////////////////Address/////////////////////////////////////
	if ( frm.txiAddress.value.length <= 0 ) {
			errorMessage += "Your Address\n";
	}
	///////////////////////////City/////////////////////////////////////
	if ( frm.txiCity.value.length <= 0)  {
			errorMessage += "Your City\n";
	}
	///////////////////////////Country/////////////////////////////////////
	if ( frm.selCountry.value.length <= 0 ) {
			errorMessage += "Your Country\n";
	}
	///////////////////////////Telephone/////////////////////////////////////
	if ( frm.txiPhone.value.length <= 0 ) {
			errorMessage += "Your Telephone/Fax/Mobile No.\n";
	}
	///////////////////////////Email/////////////////////////////////////
	if ( frm.txiEmailAddress.value.length <= 0 ) {
			errorMessage += "Your Email Address\n";
	}
	
	if ( frm.selBuyer.value == "Other" ){
		if ( frm.txiBuyer.value.length <= 0){
			errorMessage += "Your Buyer Type\n";
		}else{
			buyer = frm.txiBuyer.value;
		}

	
	}else{
		buyer = frm.selBuyer.value;
	}

		if ( buyer == ""){
			errorMessage += "Your Buyer Type\n";
		}

		
		if ( frm.selQty.value.length <= 0 ){
		
				errorMessage += "Quantity Interested in Buying\n";
		}
		//if ( frm.txaQuery.value.length <= 0 ){
		//		errorMessage += "Required Information.\n";
		//}
						
	if ( errorMessage != "" ){
		alert(errorMessage);
		return false;
	}								
	
return true;	
}


function check_query_form()
{
	var buyer ="";
	var errorMessage ="";
	//////////////////////////////Name////////////////////////////////////
	if (  form_query.txtName.value.length <= 0 ) {
			errorMessage = "The following(s) fields input is not valid!\n";
			errorMessage += "Your Name\n";
	}
	///////////////////////////Email/////////////////////////////////////
	if ( form_query.txtemail.value.length <= 0 ) {
			errorMessage += "Your Email Address\n";
	}
	///////////////////////////Country/////////////////////////////////////
	if ( form_query.selCountry.value== "NA") {
			errorMessage += "Your Country\n";
	}
	///////////////////////////Query/////////////////////////////////////
	if ( form_query.query.value.length <= 0 ) {
			errorMessage += "Your Query\n";
	}
	if ( errorMessage != "" ){
		alert(errorMessage);
		return false;
	}								
	
return true;	

}
function painting(path)
{
if(path==null)
	{
		path="./" ;
	}	
document.write (' <table width="100%" border="0" cellspacing="3" cellpadding="3"><tr><td valign=top  align=left><form name="frm1" method="post" action="'+path+'cart/addcart.asp"><input type=hidden name=pro_code value="miniature_painting_raga_bhaskar"><table cellpadding=1 cellspacing=1 border=0 align=left width="100%"><tr><td valign=top width="25%" align=left><a href="'+path+'products/miniature_painting_raga_bhaskar.html"><img src="'+path+'newimages/paintg_01.jpg" border=0></td><td valign="bottom" align=left></a><br><span class=price1>Price :<br> US $ 90</span><br><input type="image" src="'+path+'homeimages/buy_now.gif" name="add_cart"></td></tr></table></form></td>')
document.write('<td valign=top  align=left><form name="frm1" method="post" action="'+path+'cart/addcart.asp"><input type=hidden name=pro_code value="miniature_painting_raga_panchama"><table cellpadding=1 cellspacing=1 border=0 align=left width="100%"><tr><td valign=top width="25%" align=left><a href="'+path+'products/miniature_painting_raga_panchama.html"><img src="'+path+'newimages/paintg_02.jpg" border=0></td><td valign="bottom" align=left></a><br><span class=price1>Price :<br> US $ 90</span><br><input type="image" src="'+path+'homeimages/buy_now.gif" name="add_cart"></td></tr></table></form></td>')
document.write('<td valign=top  align=left><form name="frm1" method="post" action="'+path+'cart/addcart.asp"><input type=hidden name=pro_code value="miniature_painting_raga_kalinga"><table cellpadding=1 cellspacing=1 border=0 align=left width="100%"><tr><td valign=top width="25%" align=left><a href="'+path+'products/miniature_painting_raga_kalinga.html"><img src="'+path+'newimages/paintg_03.jpg" border=0></td><td valign="bottom" align=left></a><br><span class=price1>Price :<br> US $ 90</span><br><input type="image" src="'+path+'homeimages/buy_now.gif" name="add_cart"></td></tr></table></form></td></tr>')
document.write('<tr><td valign=top colspan=2 align=left><form name="frm1" method="post" action="'+path+'cart/addcart.asp"><input type=hidden name=pro_code value="sitar_painting_gold_and_green_work"><table cellpadding=1 cellspacing=1 border=0 align=left width="100%"><tr><td valign=top width="25%" align=left><a href="'+path+'products/sitar_painting_gold_and_green_work.html"><img src="'+path+'newimages/paintg_04.jpg" border=0></td><td valign="bottom" align=left></a><br><span class=price1>Price :<br> US $ 75</span><br><input type="image" src="'+path+'homeimages/buy_now.gif" name="add_cart"></td></tr></table></form></td>')
//document.write('<td valign=top  align=left><form name="frm1" method="post" action="'+path+'cart/addcart.asp"><input type=hidden name=pro_code value="miniature_painting_raga_gujari_kangra_school"><table cellpadding=1 cellspacing=1 border=0 align=left width="100%"><tr><td valign=top width="25%" align=left><a href="'+path+'products/miniature_painting_kangra.html"><img src="'+path+'newimages/paintg_01.jpg" border=0></td><td valign="bottom" align=left></a><br><span class=price1>Price : US $ 170</span><br><input type="image" src="'+path+'homeimages/buy_now.gif" name="add_cart"></td></tr></table></form></td>')
document.write('<td valign=top  align=left><form name="frm1" method="post" action="'+path+'cart/addcart.asp"><input type=hidden name=pro_code value="miniature_painting_raga_gambhira"><table cellpadding=1 cellspacing=1 border=0 align=left width="100%"><tr><td valign=top width="25%" align=left><a href="'+path+'products/miniature_painting_raga_gambhira.html"><img src="'+path+'newimages/paintg_05.jpg" border=0></td><td valign="bottom" align=left></a><br><span class=price1>Price :<br> US $ 90</span><br><input type="image" src="'+path+'homeimages/buy_now.gif" name="add_cart"></td></tr></table></form></td></tr>                        </table>')
}