<!--


function validate_frmRMCConnectClientAddEdit(theform)
{

var function_name, testingmode
function_name = 'validate_frmRMCConnectClientAddEdit';
testingmode = false;

if (testingmode)
{
alert('In ' + function_name);
}

try 
{

if (theform.companyname.value == '')
{
alert('Please enter a company name for this entry.');
theform.companyname.focus();
return false
}

if (theform.companycode.value == '')
{
alert('Please enter at least one company login code for this entry.');
theform.companycode.focus();
return false
}

if (theform.productid.value == 0)
{
alert('Please select a product type for this client.');
theform.productid[0].focus();
return false
}


if (theform.homepagetemplateid.value == 0)
{
alert('Please select the home page template for this client.');
theform.homepagetemplateid[0].focus();
return false
}




return true;

}
catch(error) 
{
//Catch the error thrown and do something with it.
alert('JavaScript Error In Function:\n' + function_name + '\n\nError:\n' + error.description + '\n\n');
return false;
}


}//validate_frmQualityComplaintsAddEdit

function validate_frmRMCConnectPageTemplateAddEdit(theform)
{

var function_name, testingmode
function_name = 'validate_frmQualityComplaintsAddEdit';
testingmode = false;

if (testingmode)
{
alert('In ' + function_name);
}

try 
{

if (theform.pagetemplatecat.value == '')
{
alert('Please enter a catagory for the new template.');
theform.pagetemplatecat[0].focus();
return false
}

if (theform.pagetemplatename.value == '')
{
alert('You have entered a blank name for this template, this is not allowed.');
theform.pagetemplatecat[0].focus();
return false
}

return true;

}
catch(error) 
{
//Catch the error thrown and do something with it.
alert('JavaScript Error In Function:\n' + function_name + '\n\nError:\n' + error.description + '\n\n');
return false;
}


}//validate_frmQualityComplaintsAddEdit


//-->