function validateData(pds,vsn)
{
var chkstring=pds.case_no.value;
var casefld=pds.case_no;
var strptnPBLS=/[PpDd]-\d{5}-\d{5}/;
var strptnPLC=/[AaCc]-\d{5}-\d{5}/;
var str="T"
var len=chkstring.length
if (vsn=='PBLS'){
	if  ((strptnPBLS.test(chkstring)==true)||(len>13)) {
		return true;
	}
	 else if ((chkstring.indexOf(str)!=-1)) 
	{
		alert("            This system does not supply status for T-Cases. " +"\n" + " Please enter a 'D' or 'P' prefix depending on your geographical location. ")
		casefld.focus()
		return false
	}
	else if ((pds.case_no.value=="")) 
	{
		alert("Please enter the case number with all dashes.                      " +"\n" + "Where the # represents a number (e.g. #####-#####).  ")
		casefld.focus()
		return false
	}
	else{ 
		alert(" You have entered an invalid Case Number.  ");
		return false;
	};
}
else if (vsn=='PLC'){
	if  ((strptnPLC.test(chkstring)==true)||(len>13)) {
		return true;
	}
	 else if ((chkstring.indexOf(str)!=-1)) 
	{
		alert("            This system does not supply status for T-Cases. " +"\n" + " Please enter a 'A' or 'C' prefix depending on your geographical location. ")
		casefld.focus()
		return false
	}
	else if ((pds.case_no.value=="")) 
	{
		alert("Please enter the case number with all dashes.                      " +"\n" + "Where the # represents a number (e.g. #####-#####).  ")
		casefld.focus()
		return false
	}
	else{ 
		alert(" You have entered an invalid Case Number.  ");
		return false;
	};
	}
}

function test(obj, value)
    {
       obj.value = value;
 }
