<!--

window.defaultStatus="QRS-Inc.com © Quality Resource Systems, Inc.";

// DO NOT LOAD IN ANOTHER SITES FRAMES
if (parent.frames.length > 0) { parent.location.href = location.href; }

// SETFOCUS FUNCTIONS
function sf_login_password(){ document.loginform.u_password.focus(); }
function sf_login_email(){ document.loginform.u_email.focus(); }

function checkMaxInput(inputArea, maxLen, remLen ) {
// CHECK MAXIMUM NUMBER OF CHARACTERS ALLOWED IN THE TEXTAREA
// inputArea is the Text area to be checked.
// maxLen is the maximum character count.
// remLen displays the max length.
//
// Usage in form:
//
//  <textarea cols="100" rows="15" name="message" wrap="physical" 
//    onBlur="checkMaxInput(this, 1500, remmessage);" 
//    onKeyDown="checkMaxInput(this, 1500, remmessage);" 
//    onKeyUp="checkMaxInput(this, 1500, remmessage);">
//  </textarea><br />
//    up to 1500 characters:
//  <input readonly type=text name="remmessage" size="5" maxlength="4" value="1500">
//    characters left<br />
//
	if (inputArea.value.length > maxLen){ // IF TOO LONG IT WILL TRUNCATE TEXT

		inputArea.value = inputArea.value.substring(0, maxLen);
		remLen.value = maxLen - inputArea.value.length;
		inputArea.focus();
		alert("Maximum limit of " + maxLen +" characters for this field is reached, Excess characters truncated");
		inputArea.focus();

		// IF LESS THAN MAXLENGTH UPDATE THE CHARACTER COUNTER
		}
	else
		remLen.value = maxLen - inputArea.value.length;
}

//-->
