function validate()
{
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.frm.email.value)))
	{
		alert("Invalid E-mail Address! Please re-enter.")
		document.frm.email.focus();
		//frm.email.value="";		
		return false;
	}
	
		if(document.frm.title.value == '')
	{
		alert('Please Enter Title');
		document.frm.title.focus();
		return false;
	}
	
	if (!(/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(document.frm.urlLink.value)))
	{
		alert('Invalid URL Address! Please re-enter.');
		document.frm.urlLink.focus();
		return false;
	}
	
	if(document.frm.category.value == 'Choose...')
	{
		alert('Please Select Category');
		document.frm.category.focus();
		return false;
	}
	
	if(document.frm.subcategory.value == 'Choose...')
	{
		alert('Please Select Sub Category');
		document.frm.subcategory.focus();
		return false;
	}

	if(document.frm.thumb.value=='')
	{
		alert('Please Select Your Image');
		document.frm.thumb.focus();
		return false;
	}
	
   if((document.frm.thumbnail.value.lastIndexOf(".gif")==-1) && 
      (document.frm.thumbnail.value.lastIndexOf(".jpg")==-1) && 
      (document.frm.thumbnail.value.lastIndexOf(".jpeg")==-1) && 
      (document.frm.thumbnail.value.lastIndexOf(".png")==-1) && 
      (document.frm.thumbnail.value.lastIndexOf(".JPG")==-1) && 
      (document.frm.thumbnail.value.lastIndexOf(".JPEG")==-1) && 
      (document.frm.thumbnail.value.lastIndexOf(".GIF")==-1))
		{
			alert("You can upload only JPEG, GIF and PNG extension file's")
			return false
		}
		
  var minChar = 10;
  var maxChar = 250;
  
  if (document.frm.descrip.value.length < minChar )
   {
	   alert('Minimum Character ' + minChar );
	   return false;
   }
   
    if (document.frm.descrip.value.length > maxChar )
   {
	   alert('Maximum Character ' + maxChar );
	   return false;
   }
	 
return true;
}