function fncCountChar(){
var fr = document.forms[0];
var detail_length = fr.description.value.length;
alert(detail_length);
alert(fr.hd_sp.value);
}
function fncDetailChange(){
var fr = document.forms[0];
var detail_length = fr.description.value.length;
if(detail_length > 150){alert("150 characters max");
fr.description.value = fr.description.value.substr(0,150);
detail_length = 150;
}
document.getElementById("div_leng").innerHTML = detail_length;
//alert(detail_length);
}
function check_form(fr)
{
if(document.fr.name.value=="" )
{alert("Please enter Name !");
document.fr.name.focus();
return (false);
}
if(document.fr.company.value=="" )
{alert("Please enter Company Name !");
document.fr.company.focus();
return (false);
}
if(document.fr.email.value=="" || document.fr.email.value.indexOf('@', 0) != -1)
{alert("Please enter your email!");
document.fr.email.focus();
return (false);
}
if(document.fr.email2.value=="" || document.fr.email2.value.indexOf('.', 0) == -1 || document.fr.email2.value.indexOf('@', 0) != -1)
{alert("Please correct your email address!");
document.fr.email2.focus();
return (false);
}
if(document.fr.url.value=="" || document.fr.url.value=="http://")
{alert("Please enter your url !");
document.fr.url.focus();
return (false);
}
if(document.fr.anchortxt.value=="" )
{alert("Please enter your Anchor!");
document.fr.anchortxt.focus();
return (false);
}
if(document.fr.category.value=="" )
{alert("Please enter Category!");
document.fr.category.focus();
return (false);
}
if(document.fr.description.value=="" )
{alert("Please enter your description");
document.fr.description.focus();
return (false);
}
if(document.fr.chk1.checked == false)
{alert('Please check the box to help us fight spam');
document.fr.chk1.focus();
return (false);
}
return (true);
}
