var ClearTextB=true;function ClearText()
{if(ClearTextB)
{document.getElementById('text').value='';
ClearTextB=false;}
}
function check() {
for(i = 0 ; i < document.form.length ; i++) {
with(document.form.elements[i]) {
if(value == "") {
alert("Please Enter YouTube Video URL");
focus();
return false;}
if(name == "text" && value.length > 42) {
alert("Txt Over..i" + value.length + "txtj");
focus();
return false;}
  }
 }
}
