//auto generates by the storecreator and templates
var storeName='Pete`s Luminous Creations';
var mainPage='intro.html';
var totalItems=47;
var ir = new Array(totalItems);
var mAlignStr='<Center>';
A(0, 'NSAC', 'Basic NightSky Kit and Accessories', 99.00, 'NightSky Mural Illusion Painting Kit1) Tutorial Video1) Select the format below2) MPEG (Play on computer)3) DVD (Play on DVD Player)2) 8" Electrical UV Light (220v1) Not required2) Required3) Sticker Stencil Kit1) Save $$ when you order now2) Add Sticker Stencil Kit4) Extra Paint1) Select Below2) Extra NS paint (1 litre)');
A(1, 'UV-LIGHT-MINI', 'Battery operated mini UV light', 8.00, 'UV Lamp, Light & Bulb');
A(2, 'GPTS-CAT', 'Cat`s Eye Glow in the Dark Paint - (Sample Size) ', 12.00, 'Glow in the Dark Paint Select the Size1) Select the required size below2) 15ml (1/2 fl.oz)3) 30ml (1 fl.oz)3) 60ml (2 fl.oz) ');
A(3, 'GTDCG', 'Glow in the Dark Ceramic Glaze (1 kg pack)', 140.00, 'Glow in the Dark Ceramic Glaze 8" Electrical UV Light (220v)1) Not Required2) RequiredProduct Code1) Select Below2) FDY-2S (Blue glow)2a) FDY-2B (Blue-green glow)2b) FDY-2O (Yellow-green glow)2c) FDY-2R (Orange glow)3) ZGS-2-010 (Blue Glow)3a) ZGB-2-010 (Blue-green Glow)3b) ZGB-2-011 (Blue-green Glow)3c) ZGO-2-011 (Yellow-green G');
A(4, 'GLSIGN1', 'Glow in the Dark EXIT Sign', 9.50, 'Ready Made Glow in the Dark Signages');
A(5, 'GST', 'Glow in the Dark Films / Sticker (Sample Sheet) (Low Glow)', 30.00, 'Glow in the Dark Films / Board');
A(6, 'GLSIGN2', 'Glow in the Dark FIRE Sign', 12.00, 'Ready Made Glow in the Dark Signages');
A(7, 'GLSIGN3', 'Glow in the Dark NO SMOKING BY LAW Sign', 9.50, 'Ready Made Glow in the Dark Signages');
A(8, 'GLSIGN4', 'Glow in the Dark NO SMOKING Sign', 12.00, 'Ready Made Glow in the Dark Signages');
A(9, 'GP', 'Glow in the Dark Paper (1 meter square)', 68.00, 'Glow in the Dark Paper1) Product Code1) Low Glow2) Medium Glow3) High Glow2) Required Size1) Select Below2) A4 (16 pieces)3) A3 (8 pieces)');
A(10, 'GPMP-PS', 'Glow Plastic Master Batch Pellets (PS Series) 1 kg ', 78.00, 'Glow Plastic Master Batch Pellets PS Series1) Select Below2) PS7D-503) PS6D-504) PS4D-50');
A(11, 'NSKINK', 'NightSky Glow Ink (1 Litre)', 99.00, 'Glow in the Dark Inks ');
A(12, 'THERMINK', 'Pre-Mixed Thermo Chromic Printing Inks (3 kg pack)', 270.00, 'Glow in the Dark Inks 2) Select the printing method1) Select below10) Offset Dry11) Metal Deco2) Silk Screen Plastisol based3) Silk Screen Water based4) Silk Screen Solvent based5) Flexo Water based6) Flexo Solvent based7) Gravure Water based8) Gravure Solvent based 9) Offset Wet3) 8" Electrical UV Light (220v1) Not required2) Required');
A(13, 'TWGPK', 'Twilight Glow Painting Kit', 79.00, 'Twilight Glow Painting Kit ');
A(14, 'UV-LPT', 'UV Phosphorus Paint (1 litre Pack) (33fl.ounces)', 95.00, 'UV Phosphorus Powder 1) Product Code1) Select Below10) UVYG (White / Yellow-Green)2) UVB (White / Blue)3) UVP (White / Purple)4) UVG (Green / Green)5) UVW (White / White)6) UVY (White / Yellow) 7) UVO (White / Orange)8) UVR (White / Red)9) UVBG (White / Blue-Green)2) 8" Electrical UV Light (220v1) Not Required2) Required');
A(15, 'UV-LP', 'UV Phosphorus Powder (1 kg Pack) (2.2 pounds)', 300.00, 'UV Phosphorus Powder 1) Product Code1) Select Below10) UVYG (White / Yellow-Green)2) UVB (White / Blue)3) UVP (White / Purple)4) UVG (Green / Green)5) UVW (White / White)6) UVY (White / Yellow) 7) UVO (White / Orange)8) UVR (White / Red)9) UVBG (White / Blue-Green)2) 8" Electrical UV Light (220v1) Not Required2) Required');
A(16, 'UV-LIGHT-1FOOT', '1 foot Electrical UV light with casing ', 28.00, 'UV Lamp, Light & Bulb');
A(17, 'CATGLP', 'Cat`s Eye Glow Paint', 12.00, 'Samples of Glow Products Size1) Select Below2) 15ml (0.5 fl. oz)3) 30ml (1 fl. oz) 4) 60ml (2 fl. oz)');
A(18, 'GRT', 'Glow in the Dark Reflective Tape', 14.00, 'Glow in the Dark Films / Board1) Required Length1) Select Below2) 0.5 meters (20")3) 1 meter (39")');
A(19, 'GSP', 'Glow in the Dark Spray Paint (12 Cans)', 228.00, 'Glow in the Dark Paint ');
A(20, 'GPMP-PP', 'Glow Plastic Master Batch Pellets (PP Series) 1 kg', 58.00, 'Glow Plastic Master Batch Pellets PP Series1) Select Below2) PP6-103) PP6-204) PP7D-505) PP6D-50');
A(21, 'NSSK', 'NightSky Sticker Stencil Kit', 49.00, 'NightSky Mural Illusion Painting Kit1) Glow in the dark paint1) Ultra Green2) Ultra Blue3) Invisible Purple4) Invisible Blue5) Invisible Orange6) Invisible White');
A(22, 'PT1', 'Photo Luminescent Thread ( 1 kg)', 109.00, 'Glow in the Dark Thread and Fibre Thread Type1) Select Below2) PT-W (White/YellowGreen)3) PT-O (Orange/Red)4) PT-Y (Yellow/Yellow)5) PT-G (Green/Green)6) PT-B (Blue/Blue) ');
A(23, 'UV-LIGHT-2FFEET', '2 feet electrical UV flourscent light ', 38.00, 'UV Lamp, Light & BulbFlourscent Tube Casing 240Volts1) Select below2) Not required3) Required');
A(24, 'GPMP-ABS', 'Glow Plastic Master Batch Pellets (ABS Series) 1 kg ', 63.00, 'Glow Plastic Master Batch Pellets ABS Series1) Select Below2) ABS6D-103) ABS6D-204) ABS7D-505) ABS6D-50');
A(25, 'PLDGRS', 'Photo Luminous Dual Glow in the Dark Rigid Signage', 350.00, 'Glow in the Dark Films / Board1) Glow Color1) Select Below2) Green Glow3) Blue Glow2) Plastic Type1) Acrylic3) Thickness1) Select Below2) 3 mm3) 5 mm');
A(26, 'OFFINK', 'Pre-Mixed Glow in the Dark Inks (2 kg pack)', 340.00, 'Glow in the Dark Inks 2) Select the printing method1) Select below2) Silk Screen3) Offset Wet4) Offset Dry5) Flexo6) Metal Deco3) 8" Electrical UV Light (220v1) Not required2) Required');
A(27, 'PMGP', 'Pre-Mixed Glow Paint (200ml)', 50.00, 'Glow in the Dark Paint 1) Paint Type1) Select Below2) ZS-2 (YellowGreen/Green)3) CGR (Red/Red)4) Ultra Green5) Ultra Blue6) CGG (Green/Green)7) CGB (Blue/Blue)8) CGY(Yellow/Yellow)9) CGP (Pink/Pink)2) 8" Electrical UV Light (220v1) Not required2) Required');
A(28, 'UV-LIGHT-4FFEET', '4 feet electrical UV flourscent light ', 48.00, 'UV Lamp, Light & BulbFlourscent Tube Casing 240Volts1) Select below2) Not required3) Required');
A(29, 'GPTS-SP', 'Glow Paint / Epoxy Paint Samples (Un-Mixed) ', 60.00, 'Samples of Glow Products 1) Powder Type1) Baby Green2) Crimson Red3) Soothing Violet4) Baby Blue5) Ultra Green2) UV Light1) Not required2) Required');
A(30, 'GPMP-AS', 'Glow Plastic Master Batch Pellets (AS Series) 1 kg ', 122.00, 'Glow Plastic Master Batch Pellets AS Series1) Select Below2) AS7D-503) AS6D-50');
A(31, 'GPLG-GRP', 'Glow Powder Pigment (SLG Group) (Ultra Green) ', 96.00, 'Glow in the Dark Powder (1 kg) 8" Electrical UV Light (220v)1) Not Required2) UV Light RequiredPowder Type1) Select from list2) SLG-13)  SLG-24) SLG-35) SLG-46) SLG-2W');
A(32, 'PLFSQM', 'Photo Luminescent Film (1 square meter)', 145.00, 'Glow in the Dark Films / Board1) Product Code1) Select Below6) PLFGH-100 (Super High Glow)2) Adhesive Backing1) Required2) Not Required');
A(33, 'PMGLP', 'Pre-mixed Glow in the Dark Paint (1 litre)', 108.00, 'Glow in the Dark Paint 1) Paint Type1) Select Below10) Deep Orange11) Invisible Blue12) Invisible Purple13) Invisible Orange14) Invisible White2) Ultra Green3) Ultra Blue4) Cool Blue5) Cool Green6) Cool Pink7) Cool Orange8) Cool Yellow9) Deep Red2) Epoxy Protector1) Not Required2) Required3) 8" Electrical UV Light (220v1) Not Required2) Required');
A(34, 'GEPR', 'Gloss Epoxy Protector', 95.00, 'Glow in the Dark Paint ');
A(35, 'GPMP-PE', 'Glow Plastic Master Batch Pellets (PE Series) 1 kg ', 58.00, 'Glow Plastic Master Batch Pellets PP Series1) Select Below2) PE6-103) PE6-204) PE7D-505) PE6D-50');
A(36, 'GPS-SPK', 'Glow Powder Pigment (Sample Pack)', 50.00, 'Samples of Glow Products 8" Electrical UV Light (220v)1) Not required2) Required');
A(37, 'GPLB-GRP', 'Glow Powder Pigment (SLB Group) (Baby Blue) ', 96.00, 'Glow in the Dark Powder (1 kg) 8" Electrical UV Light (220v)1) Not Required2) UV Light RequiredPowder Type1) Select from list2) SLB-13) SLB-24) SLB-35) SLB-46) SLB-2W');
A(38, 'PLBSQM', 'Photo Luminescent Board (1 square meter) ', 150.00, 'Glow in the Dark Films / Board1) Product Code1) Select below10) PLB-Yellow (Mid Glow)2) PLBGL-15 (low Glow)3) PLBGM-20 (Mid Glow) 4) PLBGH-25 (High Glow5) PLBGH-45 (Super Glow)6) PLBGH-100 (Super High Glow)7) PLB-Green (Mid Glow)8) PLB-Blue (Mid Glow)9) PLB-Red (Mid Glow)');
A(39, 'GPMP-PC', 'Glow Plastic Master Batch Pellets (PC Series) 1 kg ', 113.00, 'Glow Plastic Master Batch Pellets PC Series1) Select Below2) PC7D-503) PC7D-304) PC7D-20');
A(40, 'GPR-GRP', 'Glow Powder Pigment (Color Group) ', 156.00, 'Glow in the Dark Powder (1 kg) 8" Electrical UV Light (220v)1) Not Required2) UV Light RequiredPowder Type1) Select from list10) REO-OR (White/Orange)2) CGY (Yellow/Yellow)3) CGO (Orange/Orange)4) CGR (Red/Red)5) CGRO (Red/Orange)6) REO-B (White/Blue)7) REO-P (White/Purple)8) REO-W (White/White)9) REO-R (White/Red)');
A(41, 'UV-SP', 'UV Light Sensitive Phosphorus Powder (Sample Pack)', 50.00, 'Samples of Glow Products 8" Electrical UV Light (220v)1) Not required2) Required');
A(42, 'GPEL-SP', 'Glow Master Batch Pellets (Sample Pack)', 50.00, 'Samples of Glow Products 8" Electrical UV Light (220v)1) Not required2) Required');
A(43, 'GRK', 'Glow in the Dark Rocks (Sample Pack)', 50.00, 'Samples of Glow Products 8" Electrical UV Light (220v)1) Not required2) Required');
A(44, 'UPMB-UMB', 'Universal Plastic Master Batch Pellets (1 kg) ', 123.00, 'Glow Plastic Master Batch Pellets Model1) Select Below2) UG7D-70 (Cream/Green)3) UG7-50 (Cream/Green)4) UG6-50 (Green/Green)5)UB6-50 (Blue/Blue)6) UR6-50 (Red/Red)7) UY6-50 (Yellow/Yellow)');
A(45, 'GEPROCK', 'Glow in the Dark Plastic Rocks (1 kg)', 70.00, 'Glow Plastic Master Batch Pellets Model1) Select Below2) P-G-25 (Green/Green)3) P-R-25 (Red/Red)4) P-A-25 (Aqua/Aqua)5) P-B-25 (Blue/Blue)6) P-P-25 (Purple / Purple)');
A(46, 'DSP', 'Distributor Sample Pack', 150.00, 'Samples of Glow Products Glow in the Dark Paint1) Select Glow Paint below2) NOT Required.GLOW Paint Required.');
var disFont = "<font face='Arial, Helvetica, sans-serif'>";
var andSearch = 1;
function A(i, id, s, p, c)
{
	ir[i] = new RECORD();
	ir[i].itemID = id; 
	ir[i].catalog=c;
	ir[i].itemName = s; 
	ir[i].price = p;
}

function MakeArray(n) {
      this.length = n;
      for(var i = 0; i < n; i++){
            this[i] = 0;
      }
      return this;
}

function Currency(money)
{
	money =  parseFloat(money);
	money += 0.005;
	money +=  "";           
	var monLen = money.length;
	var digPos = money.indexOf(".");
	if(digPos == -1) {
		if (money <=0) {
			money ="0.00";
		} else {
			money += ".00";
		}
		return money;
	} else {
		if (digPos + 3 > monLen) {
			money += "0";
		} else if (digPos + 3 != monLen) {
			money = money.substring(0, digPos+3);
		} 
		return money;
	}     
}
function RECORD()
{
	this.itemID = 0;
	this.itemName="";
	this.price=0;
	this.match=0;
	this.catalog="";
	return this;
}



function CompareMatch(a, b) {
   return a.match < b.match;
}

function Search()
{
	Search_Start(parent.frames["cart"].document.forms[0]);
}

function NewSearch(theForm)
{
	Search_Start(theForm);
}


function Search_Start(theForm)
{
	var searchStr = theForm.keywords.value;
     searchStr=searchStr.toLowerCase();
	var space = " ";
	var searchWords = searchStr.split(space);

	searchWords.sort();
	var searchStart =0;

	
	for (var i=0; i < searchWords.length; i++) {
		if (searchWords[i].length == 0) {
			searchStart++;
		} else {
			break;
		}
	}
	var totalSearchWord = searchWords.length - searchStart;
	if (totalSearchWord <= 0) {
		return;
	}
	var totalFound=0;
	var j;

	for (j=0;j<totalItems;j++) {
		var totalMatch=0;
		var str = ir[j].itemName.toLowerCase();
		var sid=ir[j].itemID.toLowerCase();
		var c= ir[j].catalog.toLowerCase();
		for (var i=searchStart; i < searchWords.length; i++) {
			if (str.search(searchWords[i])>=0) totalMatch++; 
			else 
			if (c.search(searchWords[i])>=0) totalMatch++; 
			else 
			if (sid.search(searchWords[i])>=0) totalMatch++; 
		}
		if (andSearch) {
			if (totalMatch != searchWords.length - searchStart) {
				totalMatch=0;
			}
		} 
		if (totalMatch>0) totalFound++;
		ir[j].match=totalMatch;
	}
	ir.sort(CompareMatch);
	
	var cWin=parent.frames["shop"].document;
	
	cWin.open();
	cWin.write("<HTML><HEAD><TITLE> Zilron StoreCreator v5.x Shopping Cart Viewer</TITLE></HEAD>");
	cWin.write("<BODY BACKGROUND='"+parent.mCartBGImage+"' Text='"+parent.mCartText+"' BGCOLOR='"+parent.mCartBGColor+"' LINK='"+parent.mCartALink+"' VLINK='"+parent.mCartLink+"'  ALINK='"+parent.mCartALink+"' valign=top>");
	cWin.write(" "+mAlignStr+"<TABLE width=600 border=1 CELLSPACING=0 CELLPADDING=0>");
	cWin.write("<tr><td width=600 bgcolor=#666699 height=24><p align='center'><big><font color=#FFFFFF size=6><strong>"+disFont+parent.storeName+"</strong></font></big></td></tr>");
	cWin.write("<tr><td width=600 bgcolor=#ffffff><font color=#333333 size=2>"+disFont+"<strong>Contact Address:</strong><BLOCKQUOTE><font color=#333333 size=2>"+disFont+parent.storeContactAddress+"</font></td></tr>");
	cWin.write("<tr><td width=600 bgcolor=#666699><center><Strong><font color=#ffffff>"+disFont+"Search results are as shown in the following table:["+totalFound+"]</td></tr>");
	cWin.write("<tr><td width=600>");
	cWin.write("<TABLE width=600 border=2 CELLSPACING=0 CELLPADDING=0>");
	cWin.write("<tr bgcolor='"+parent.mCartTableHeaderBGColor+"'><td width=10%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>Match#</center></td><td width=10%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>ItemID</center></td><td width=50%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>Item Name</center></td><td width=10%><b><strong><font size=2 color='"+parent.mCartTableHeaderColor+"'>"+disFont+"<center>Price</center></td></tr>");
	for (j=0;j<ir.length;j++) {
		if (ir[j].match>0) {
			cWin.write("<tr bgcolor='"+parent.mCartTableBodyBGColor+"'><td valign=top><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><center>"+ir[j].match+"</strong></td><td valign=top><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><center>"+ir[j].itemID+"</strong></td><td valign=top><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><center><a href='item"+ir[j].itemID.toLowerCase()+".html'  target=shop>"+ir[j].itemName+"</a></strong></td><td align=right><font size=2 color='"+parent.mCartTableBodyColor+"'>"+disFont+"<strong><right>"+Currency(ir[j].price)+"</strong></td></tr>");
		}
	}
	cWin.write("</table></td></tr></table></body></html>");
	cWin.close();	
}


function PrintSearchPage()
{
	var cWin=parent.frames["shop"].document;
	cWin.open();
	cWin.write("<HTML><HEAD><TITLE> Zilron StoreCreator v5.x Shopping Cart Viewer</TITLE></HEAD>");
	cWin.write("<BODY Text=#000000 BGCOLOR=#ffffff LINK=#ff0000 VLINK=#ff0000 alink=#222222 valign=top OnLoad='document.forms[0].elements[0].focus()'>");
	cWin.write("<table border=0> <tr><td><a href='"+mainPage+"'>"+disFont+"<Strong>Main Page</strong></a></td><td>"+disFont+"<a href='"+parent.returnHtmlPath+"'><Strong>Back</strong></a></td></tr></table><hr size=1 width=50%>");
	cWin.write("<input type=button size=40 value='Submit' onClick='parent.frames[\"cart\"].Search()'>");
	cWin.write("</form></td></tr></table>");
	cWin.write("</body></html>");
	cWin.close();	
}


//===============================================================================================================================================
// Last Upgrade: 11 June 2001
//===============================================================================================================================================
