/*
 * Creditors Recovery Systems, Inc.
 *
 * Language: JavaScript
 *
 * Created by: Dean Jensen
 * Created on: 20-NOVEMBER-00
 *
 */

// Set focus to the first field
	function setFocus()
	 {
		document.frmClaim.txtCreditor.focus();
	 }

// Redirect back to the results page
	function doRedirect (where,id,user)
	 {
		window.location = "results.asp?CreditorID=" + id +"&username=" + user;
		return true;
	 }

// Open a new window to show the Creditor notes
	function showCreditorComments(lngDebtorID)
	 {
		var strURL;
		strURL = "CreditorComments.asp?ID=" + lngDebtorID;
		newWindow=window.open(strURL,'newWin',',,,,,,,,width=500,height=235,scrollbars=yes,top=20,left=20');
	 }

// Open a new window to show the CRS notes
	function showCRSComments(lngDebtorID)
	 {
		var strURL;
		strURL = "CRSComments.asp?ID=" + lngDebtorID;
		newWindow=window.open(strURL,'newWin',',,,,,,,,width=500,height=235,scrollbars=yes,top=20,left=20');
	 }

// Open a new window to show the CRS notes have been read
	function MarkCommentsRead(lngDebtorID)
	 {
		var strURL;
		strURL = "MarkAsRead.asp?DebtorID=" + lngDebtorID;
		newWindow=window.open(strURL,'newWin',',,,,,,,,width=500,height=235,scrollbars=yes,top=20,left=20');
	 }


// Verify the form
	function doVerify (form,what)
	 {
		if (form.txtUpdateCreditorComments.value == "")
		 {
			alert ("You cannot place a blank note.");
			form.txtUpdateCreditorComments.focus();
			return false;
		 }
		else
		 {
			form.submit();
			return true;
		 }
	 }

// EOF