
function deleteRegistration(company)
	{
		var r= confirm("Are you sure you want to delete  the registration of  : "+company )
		if(r==true)
		{
			document.thisform.submit();
		}
		else
		{
			return false;
		}
	}
	
	
	
	function check(shiptek_form)
	{	
		
				
			if(shiptek_form.name.value=='')
			{
				alert("Please Enter Your  Name");
				shiptek_form.name.focus();
				return false;
			}
			
			if(shiptek_form.company.value=='')
			{
				alert("Please Enter your Company Name");
				shiptek_form.company.focus();
				return false;
			}
			
				if(shiptek_form.website.value!='')
				{
					if(checkURL(shiptek_form.website)==false)
					{
						return false;
					}				
				}
			
			if(shiptek_form.email.value=='')
			{
				
				alert("Please Enter your email id");
				shiptek_form.email.focus();
				return false;
			}
			
			if(award_form.category.value==0)
			{
				alert("Please Select an Award Category");
				shiptek_form.category.focus();
				return false;
			}
			if(award_form.video.value=='')
			{
				alert("Please Enter the Video URL");
				shiptek_form.video.focus();
				return false;
			}
					
	}	


	
	
	function checkURL(field)
	{
		if (!isURL(field.value))
		{
			alert('Please enter the correct website address!');
			field.focus();
			field.select();
			return false;
		}
	}
	function isURL(url)
	{
		var urlPattern = /^(?:(?:ftp|https?):\/\/)?(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+(?:com|edu|biz|org|gov|int|info|mil|net|name|museum|coop|aero|[a-z][a-z])\b(?:\d+)?(?:\/[^;"'<>()\[\]{}\s\x7f-\xff]*(?:[.,?]+[^;"'<>()\[\]{}\s\x7f-\xff]+)*)?/;
		return urlPattern.test(url.toLowerCase());
	}
	
