function TestData()
{
  if (ObjectExists("PRIORITY"))
  {
	if (document.forms[0].PRIORITY.value=="testpromo") 
	{
	if (document.forms[0].FNAME.value=="") {
		document.forms[0].FNAME.value = "Fname";}
	if (document.forms[0].LNAME.value=="") {
		document.forms[0].LNAME.value = "Lname";}
	if (document.forms[0].COMPANY.value=="") {
		document.forms[0].COMPANY.value = "Company";}
	if (document.forms[0].TITLE.value=="") {
		document.forms[0].TITLE.value = "Title";}
	if (document.forms[0].CITY.value=="") {
		document.forms[0].CITY.value = "City";}
	if (document.forms[0].ADDRESS1.value=="") {
		document.forms[0].ADDRESS1.value = "Address1";}
	if (document.forms[0].ADDRESS2.value=="") {
		document.forms[0].ADDRESS2.value = "Address2";}
	if (document.forms[0].STATE.selectedIndex==0) {
		document.forms[0].STATE.selectedIndex = 10;}
	if (document.forms[0].ZIPCODE.value=="") {
		document.forms[0].ZIPCODE.value = "12345";}
	if (document.forms[0].EMAIL_ADDRESS.value=="") {
		document.forms[0].EMAIL_ADDRESS.value = "vcherchenko@omeda.com";}

	document.forms[0].RECEIVE_YES_NO[0].checked = true;
	document.forms[0].PERSONAL_ID.selectedIndex = 4;
	document.forms[0].RESPONSIBLE[0].checked = true;
 	document.forms[0].PROJECTS[2].checked = true;
	document.forms[0].JOB_TITLE[2].checked = true;
 	document.forms[0].BUSINESS[3].checked = true;
	document.forms[0].ORG_INET_SOFTWARE[7].checked = true;
	document.forms[0].ORG_APP_SOFTWARE[7].checked = true;
	document.forms[0].ORG_HARDWARE[7].checked = true;
	document.forms[0].ORG_NETWORK[7].checked = true;
	document.forms[0].ORG_STORAGE_DATA[7].checked = true;
	document.forms[0].ORG_SECURITY[7].checked = true;
	document.forms[0].ORG_CONSULT_STAFF[7].checked = true;
	document.forms[0].BUDGET[2].checked = true;	
	document.getElementById("PURCH_AUTHORITY-6").checked = true;	
 	document.forms[0].EMPLOYEES[2].checked = true;
 	document.forms[0].REVENUE[2].checked = true;
	document.forms[0].REQUESTED_VERSION[0].checked = true;
	}
  }
}

function ObjectExists(fieldname)
{
	for ( i=0; i < document.forms[0].elements.length; i++)
	{
		if (document.forms[0].elements[i].name == fieldname)
		{
			return true;
		}
	}
	return false;
}
