<!-- Vignette StoryServer 4 Wed Mar 19 16:40:24 2003 -->
<!--
var useSecureImg = 0;
if (parent.frames.length != 0) {
	 for (var i=0; i < eval(parent.frames); i++) {
		var httpRequest = parent.frames[i].location.href;
		if (httpRequest.substring(0,5) == "https") var useSecureImg = 1
	}
} else {
	 var httpRequest = parent.location.href;
	if (httpRequest.substring(0,5) == "https") var useSecureImg = 1
}
if (useSecureImg == 0) {
	var searchImage = "http://image.iwon.com/images/search/isearch.gif";
	var googleLogo = "http://image.iwon.com/images/gg_snav.gif";
} else {
	var searchImage = "https://mycashpoints.iwon.com/cash_points/images/isearch.gif";
	var googleLogo = "https://mycashpoints.iwon.com/cash_points/images/gg_snav.gif";
}
function go(box) {
	var val = box.options[box.selectedIndex].value;
	if (val != "") top.location = val;
}

function pick(form, box) {
	var val = box.options[box.selectedIndex].value;
	if (val != "") form.submit();
}

function stripText(oldChar, newChar, str){
	if (str.indexOf(oldChar) > -1){
		var start = 0;
		var strLen = str.length;
		var oldCharLen = oldChar.length;
		var testRes = -1;
		var tempStr = "";
		var x = 0;
		while (x < 1) {
			oldCharIndex = str.indexOf(oldChar, start);
			if (start < strLen){
				if (tempStr != "") tempStr = tempStr + newChar;	
				if (oldCharIndex != -1)	tempStr = tempStr + str.substring(start, oldCharIndex);
				else  {
					tempStr = tempStr + str.substring(start, strLen);
					x = 1;
				}
				start = (oldCharIndex + oldCharLen);
			} else x = 1;
		}
		return tempStr;
	} else return str;
}

function gotoSearch_new() {
	var searchForm = document.iWon_glob_search;
	var searchType = searchForm.type;
	for (var i=0;i < searchType.length;i++) {
		if (searchType[i].checked) {
			if (i == 1) {
				searchForm.action = "http://search.iwon.com/commerce/multisearch.jsp?alias=/alias/search&PG=global&SEC=search";
				searchForm.glob_search_text.name = "searchfor";
			} else {
				top.location =  "http://www.iwon.com/bd.redir?redir=http://iwonshopping.dealtime.com/BannerIn/&linkin_id=1005663&nFormId=&path=/GS2/GS2Wrap&http://iwonshopping.dealtime.com/GS2/GS2Wrap/1,4677,,FF.html&nFormID=&nParentFormID=&NavigationGroupId=1&WeightGroupId=31&uid=&bid=70&Operator=2&keyword=" + escape(searchForm.glob_search_text.value) + "&alias=/external/dealtime&PG=global&SEC=search";
				return false;
			}
			return true;
		}
	}
	return false;
}

function gotoSearch() {
	var searchForm = document.iWon_glob_search;
	searchForm.action = "http://search.iwon.com/commerce/multisearch.jsp?alias=/alias/search";
	searchForm.glob_search_text.name = "searchfor";
	return true;
}

function globHtmlSearchBox() {
	var htmlSearhBox = '<td align=right>' +
		'<table border=0 cellpadding=4 cellspacing=0 width=100%>' +
		'<tr valign=top>' +
		'<td width=100% align=right>' +
		'<table width=100% cellpadding=0 cellspacing=0 border=0>' +
		'<tr valign=top>' +
		'<form name=iWon_glob_search method=get action=http://search.iwon.com/commerce/multisearch.jsp?alias=/alias/search&PG=global&SEC=search onSubmit="return gotoSearch();">' +
		'<td nowrap align=right><table cellpadding=2 cellspacing=0 border=0><tr><td align=right></td><td valign=bottom><input name=glob_search_text size=26 maxlen=245 style={height:24px}></input><input type=hidden name=alias value=/alias/search></input></td><td><input type=submit value=Search style={height:24px}></input><font size=1>&nbsp;</font></td></tr></table></td>' +
		'</tr>' +
		'<tr valign=top>' +
		'<td nowrap align=right>' +
		'<img src=' + googleLogo + ' border=0 width=99 height=13 valign=top vspace=2></input><font size=1>&nbsp;</font></td>' +
		'</td>' +
		'</form>' +
		'</tr>' +
		'</table>' +
		'</td>' +
		'</tr>' +
		'</table>' +
		'</td>' ;
	document.write(htmlSearhBox);
}

function globHtmlSelectBox() {
	document.write();
	var htmlSelectBox = '<td nowrap align=right>' +
	'<table border=0 cellpadding=0 cellspacing=0 width=100%>' +
	'<tr>' +
	'<form>' +
	'<td align=right>' +
	'<select name=featuredguides onChange=go(this) size=1 align=absmiddle>' +
		'<option value="">iWon Features' +
		'<option value="">---------------' +
		'<option value=http://autos.iwon.com/index.html>Autos' +
		'<option value=http://bargains.iwon.com/index.html>Bargains' +
		'<option value=http://calendar.iwon.com/servlet/com.iwon.ecal.Redirect2Ecal?return_url=http://ecapi.ecal.com/ecapi/iwon/iwonlogin.plex&must_register=true&lhost=http://www.iwon.com>Calendar' +
		'<option value=http://careers.iwon.com/index.html>Careers' +
		'<option value=http://games.iwon.com/casino/index.html>Casino' +
		'<option value=http://entertainment.iwon.com/celebgossip/index.html>Celebrity Gossip' +
		'<option value=http://communicate.iwon.com/index.html>Communicate' +
		'<option value=http://computers.iwon.com/index.html>Computers' +
		'<option value=http://www1.iwon.com/home/toolbar/copilot_overview/0,3755,,00.html>Co-Pilot' +
		'<option value=http://www.qksrv.net/click-249548-5463217?loc=http%3A//www.ebay.com>eBay&reg;' +
		'<option value=http://email.iwon.com>Email' +
		'<option value=http://entertainment.iwon.com/index.html>Entertainment' +
		'<option value=http://fashion.iwon.com/index.html>Fashion &amp; Beauty' +
		'<option value=http://food.iwon.com/index.html>Food &amp; Drink' +
		'<option value=http://games.iwon.com/index.html>Games' +
		'<option value=http://www1.iwon.com/bd.redir?redir=http://www.americangreetings.com/index.pd&source=iwon&PG=global&SEC=fd&alias=/external/americangreetings>Greeting Cards' +
		'<option value=http://health.iwon.com/index.html>Health' +
		'<option value=http://homegarden.iwon.com/index.html>Home & Garden' +
		'<option value=http://horoscopes.iwon.com/index.html>Horoscopes' +
		'<option value=http://lottery2.iwon.com/index.html>Lottery' +
		'<option value=http://local.iwon.com/maps/index.html>Maps/Directions' +
		'<option value=http://money.iwon.com/home.html?alias=/alias/money/cm/hm>Money' +
		'<option value=http://monthlyprizes.iwon.com/mp/overview.jsp?SEC=dd>Monthly Bonus' +
		'<option value=http://www1.iwon.com/home/movies/movies_home_index/0,11755,,00.html>Movies' +
		'<option value=http://www1.iwon.com/home/music/music_overview/0,16111,,00.html>Music' +
		'<option value=http://news1.iwon.com/index.html>News' +
		'<option value=http://parenting.iwon.com/index.html>Parenting' +
		'<option value=http://love.iwon.com/index.html>Personals' +
		'<option value=http://pick7.games.iwon.com/index.html>Pick 7' +
		'<option value=http://prizemachine.games.iwon.com/pm3_splash.html>Prize Machine' +
		'<option value=http://prizes.iwon.com/index.html>Prizes' +
		'<option value=http://www1.iwon.com/home/entertainment/iwon_radio/0,4009,,00.html>Radio' +
		'<option value=http://realestate.iwon.com/index.html>Real Estate' +
		'<option value=http://www1.iwon.com/home/search/search_simple/0,11747,,00.html>Search/Tools' +
		'<option value=http://shopping.iwon.com/index.html>Shopping' +
		'<option value=http://local.iwon.com/small_business/index.html>Small Business' +
		'<option value=http://sports.iwon.com>Sports' +
		'<option value=http://travel.iwon.com/index.html>Travel' +
		'<option value=http://tv.entertainment.iwon.com/index.html>TV' +
		'<option value=http://weather.iwon.com/index.html>Weather' +
		'<option value=http://winners.iwon.com/index.html>Winners' +
		'<option value=http://companyinfo.iwon.com/site_map/index.html>Site Map' + 
	'</select>' +
	'</td>' +
	'</form>' +
	'</tr>' +
	'</table>' +
	'</td>' ;
	document.write(htmlSelectBox);
}
//-->