<!-- vers 1.0.3.3   14/7/2010 -->function getProductInfo(prodCode) {	switch (prodCode) {		case 'ALIDA-HINTS':return new Array(10.00,0,0,0,"No Tax","Alida Hints",0.00,0.00,0.00,0.00,0,0);		case 'ALIDA-PC':return new Array(29.90,10,10,0,"GST","Alida for PC",8.00,8.00,20.00,0.00,0,0);		case 'ALIDA-MAC':return new Array(29.90,10,10,0,"GST","Alida for MAC",8.00,8.00,20.00,0.00,0,0);			}	return null;}function getShopsData(shopData) {	switch (shopData) {		case 'clientRandName':return "ALIDA3857335412";		case 'clientTaxesLabels':return new Array("NSW Prices","Australian Prices","International Prices");		case 'showInShop':return 2;		case 'defaultPricing':return 2;		case 'clientCountry':return "Australia";		case 'freightType':return 2;		case 'freightBasicCharge':return new Array(0.00,0.00,0.00);				case 'freightTax':return new Array(0,0,0);		case 'discountArray':return new Array(0,1,10,0.00,"1:1:2009",0.00,1,"","");	}	return null;}function searchRealm(searchKey) {	//clear display	document.getElementById('searchresultsarea').innerHTML = "&nbsp;";	//validate searchKey first	if (searchKey == "") {		alert('The search key field is empty. Please enter text to search.');		document.searchIt.searchKey.focus();		document.searchIt.searchKey.select();		return false;	}	if (/^[\w ]+$/.test(searchKey) == false) {		alert('The search key field has characters that cannot be processed. Please enter alphanumeric characters only.');		document.searchIt.searchKey.focus();		document.searchIt.searchKey.select();		return false;	}	//search thru the populated database below	var $searchBankA = new Array("Alida Hints:::On-line hints for the game Alida For a small price, you can have access to all of Alida's hints and walkthrough.","Alida for PC:::Adventure game for PC Five years in the making, the Alida world will captivate you with meticulous graphics, unique locations, intriguing puzzles, bizarre transportation machines, ornate objects, electronic imagery, tactile contraptions, massive constructions, animated natural elements and original music score.","Alida for MAC:::Adventure game for MAC Five years in the making, the Alida world will captivate you with meticulous graphics, unique locations, intriguing puzzles, bizarre transportation machines, ornate objects, electronic imagery, tactile contraptions, massive constructions, animated natural elements and original music score.");	var $searchBankB = new Array("prodALIDA-HINTS.html","prodALIDA-PC.html","prodALIDA-MAC.html");	var $searchResult = '';	var $finalResult = '';	var $quant = 0;	var $searchPattern = new RegExp(searchKey,"i");	var $lineCompile = '';	for (var s=0; s<$searchBankA.length; s++) {		//remove all tags NOW so that $searchLoc remains pointing to correct pos		$searchBankA[s] = $searchBankA[s].replace(/<[^>]*>/g,' ');		var $searchLoc = $searchBankA[s].search($searchPattern);		if ($searchLoc != -1) {			//found a match!			//compile prior to searchkey			if ($searchLoc > 127) {				$lineCompile = "... "+$searchBankA[s].substring($searchLoc-127,$searchLoc);			} else {				$lineCompile = $searchBankA[s].substring(0,$searchLoc);			}			//compile searchkey, make it bold			var $endKey = $searchLoc+searchKey.length;			$lineCompile += "<b>"+$searchBankA[s].substring($searchLoc,$endKey)+"</b>";			//compile after the searchkey						if ($searchBankA[s].length - $endKey > 127) {				$lineCompile += $searchBankA[s].substring($endKey,$endKey+127)+" ...";			} else {				$lineCompile += $searchBankA[s].substring($endKey);			}					//get rid of our delimiter			$lineCompile = $lineCompile.replace(/:::/,' : ');			//get the product name			var $parts = $searchBankA[s].split(':::');						$searchResult += "<a href=\""+$searchBankB[s]+"\">"+$parts[0]+"</a><br />"+$lineCompile+"<br />";			$quant++;		}	}	if ($searchResult == '') {		$finalResult = 'No results were found.';	} else {		if ($quant == 1) {			var $info = " item found:<br /><br />";		} else {			var $info = " items found:<br /><br />";		}		$finalResult = $quant+$info+$searchResult;	}	//display results	document.getElementById('searchresultsarea').innerHTML = $finalResult;	return true;}