defaultVal = 'Enter keyword';
function doSearch(frm) {
	with (document[frm]) {
		if(txtKeyword.value != defaultVal && txtKeyword.value) {
				submit();
		}
	}
	return false;
}

function doCart(action,id,price,size) {

	if (document.getElementById) {
		col = document.getElementById('cboColour'+id);
	} else if (document.all) {
		col = document.all['cboColour'+id];
	}

	if (col!=null) {
		col = col.options[col.options.selectedIndex].value;
	} else {
		col = "-1";
	}
	if (document.getElementById) {
		size = document.getElementById('cboSize'+id);
	} else if (document.all) {
		size = document.all['cboSize'+id];
	}

	if (size!=null) {
		size = size.options[size.options.selectedIndex].value;
	} else {
		size = "-1";
	}	
	if (action=='add') {
		self.location = '/cart/?action='+action+'&price='+price+'&id='+id+'&col='+col+'&size='+size;
	} else {
		self.location = '/cart/?action='+action;
	}
}

function printEmail(user,domain) {
	address = '<a href=\"mailto:' + user + '@' + domain + '\">' + user + '@' + domain + '<'+'/a>';
	document.write(address);
}

checkBrowser();