Java script CDATA
//
function validate(f)
{
var regex = /\W+/;
var str = "";
if (f.title.value == "")
{
str += "\nThe title field is blank.";
}
if (f.pathnew.value == "")
{
str += "\nThe file path is blank.";
}
if (str == "")
{
f.submit();
}
else
{
alert(str);
return false;
}
} //]]>
function validate(f)
{
var regex = /\W+/;
var str = "";
if (f.title.value == "")
{
str += "\nThe title field is blank.";
}
if (f.pathnew.value == "")
{
str += "\nThe file path is blank.";
}
if (str == "")
{
f.submit();
}
else
{
alert(str);
return false;
}
} //]]>