function TitleSearchResults(vIndex) {
	document.write('<table border="0" width="80%" height="30" cellspacing="1" cellpadding="3" class="LightTableColor">');
	document.write('	<tr align=center>');
	document.write('		<td>');
	if (vIndex=='other' || vIndex=='OTHER'){
		document.write('Special case: ' + vIndex);
	}else{
		document.write('Show titles beginning with ' + vIndex + '.');
	}
	document.write('		</td>');
	document.write('	</tr>');
	document.write('</table>');

}

function SubjectSearchResults(vIndex) {
	document.write('<table border="0" width="80%" height="30" cellspacing="1" cellpadding="3" class="LightTableColor">');
	document.write('	<tr align=center>');
	document.write('		<td>');
	if (vIndex=='other' || vIndex=='OTHER'){
		document.write('Special case: ' + vIndex);
	}else{
		document.write('Show subjects beginning with ' + vIndex + '.');
	}
	document.write('		</td>');
	document.write('	</tr>');
	document.write('</table>');

	
}

function CheckEmail(e)
{
	// E-mail-Validation by Henrik Petersen / NetKontoret
	// Explained at www.netkontoret.dk/jsforms.htm
	// Please do not remove the this line and the two lines above.
	
	apos=e.indexOf("@"); 
	dotpos=e.lastIndexOf(".");
	lastpos=e.length-1;
		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
			{return false;}
		else {return true;}
}

function CheckFloat(e){
	if (isNaN(e)){
		//alert('bad');
		return false;
	}
	//alert('good!');
	return true;
}



function CheckMoney(e){
	return CheckFloat(e);
}

function CheckInt(e){
	// check to see if this is a Float at least
	if (CheckFloat(e)){

		// check for periods
		if (e.indexOf(".") > 0){
			//alert('bad');
			return false;
		}
		//alert('good');
		return true;

	}else {
		return false;
	}
}