    function down()
    {
	alert("Search is down due to reconstruction of the site.");
	return false;
    }

    function is_empty(e, msg)
    {
	if (e.value == "")	return msg;
	else			return '';
    }
    
    function is_valid_length(obj, len, field)
    {
	if (obj.value.length < len)
	{
	    return '- The length of \'' + field + '\' is incorrect. ' + len + ' characters is required.\n';
	}
	return '';
    }
    
    function check_signup()
    {
	var obj = document.signup;
	var msg = '';
	msg += is_empty(obj.email, "- What email you use.\n");
	msg += is_empty(obj.country, "- what country you live in.\n");
	if (msg)		alert("You did not fill out the following: \n\n" + msg);
	else			obj.submit();
    }

    function check_rma()
    {
	var obj = document.rma;
	var test = 1;
	var msg = '';
	msg += is_empty(obj.contact, "- The name of the contact person in (pickup address).\n");
	msg += is_empty(obj.address, "- The address in (pickup address).\n");
	msg += is_empty(obj.zip, "- The zip in (pickup address).\n");
	msg += is_empty(obj.city, "- The city in (pickup address).\n");
	if (home_used) test=0;
	msg += is_empty(obj.id_country[test], "- The name of your country in (pickup address).\n");
	msg += is_empty(obj.phone1, "- Primary phone number in (pickup address).\n");
	msg += is_empty(obj.email1, "- What email you use in (pickup address).\n");
	
	if (home_used)
	{
    	    msg += is_empty(obj.contact3, "- The name of the contact person in (home address).\n");
	    msg += is_empty(obj.address3, "- The address in (home address).\n");
	    msg += is_empty(obj.zip3, "- The zip in (home address).\n");
	    msg += is_empty(obj.city3, "- The city in (home address).\n");
	    msg += is_empty(obj.id_country[1], "- The name of your country in (home address).\n");
	}
	
	msg += is_empty(obj.id_product, "- The model of the product.\n");
	msg += is_empty(obj.serial, "- The serial of the product.\n");
	msg += is_valid_length(obj.serial, 13, '13-digit serial');
	msg += is_empty(obj.pn, "- The product no. of the product.\n");
	msg += is_valid_length(obj.pn, 9, 'Product No.');
	msg += is_empty(obj.revision, "- The revision of the product.\n");
	msg += is_empty(obj.sn, "- The s/n of the product.\n");
	msg += is_valid_length(obj.sn, 5, 'S/N');
	msg += is_empty(obj.invoice_no, "- The invoice no. of the product.\n");
	msg += is_empty(obj.invoice_date, "- The invoice date of the product.\n");
	msg += is_empty(obj.problem, "- The description of the problem with the product.\n");
	msg += is_valid_length(obj.problem, 30, 'Problem');
	
	if (msg)		alert("You did not fill out the following: \n\n" + msg);
	else			obj.submit();
    }
