
function addBookmark(title,url)
	{

	if (window.sidebar)
		{
		window.sidebar.addPanel("Indian Industry", url,"www.yahoo.com");
		//return false;
	}
	else if( document.all ) 
		{
		window.external.AddFavorite( url, "Indian Industry");
		//return false;
	}
	else if(navigator.appName == 'Netscape') 
		{
		alert('Press (CTRL-D) to bookmark this page.');
		//return false;
	}
	return false;
}
function chk_count()
{	var checkbox_choices = 0;
	for (counter = 0; counter < document.form1.elements.length; counter++)
	{
		var e = document.form1.elements[counter];

		 if (  (e.type=='checkbox') && (e.checked) ) {
      			checkbox_choices = checkbox_choices + 1;
    		}
		if (checkbox_choices >15)
		{
			e.checked=false;
			alert('You can select only 15 companies at a time to send enquiry.');
			return false;
		}

	}
}

function submit_search(chk)
{
	if(chk)
	{
	var gp1='Chk_comp_'+chk;
	document.form1.elements[gp1].checked='true';
	}
	var checkbox_choices = 0;

	for (counter = 0; counter < document.form1.elements.length; counter++)
	{
		var e = document.form1.elements[counter];

		 if (  (e.type=='checkbox') && (e.checked) ) {
      			checkbox_choices = checkbox_choices + 1;
    		}

	}
	
	if (checkbox_choices > 0 && checkbox_choices < 16)
	{
		document.form1.submit();
	}
	else if (checkbox_choices >15)
	{
		alert('You can select only 15 companies at a time to send enquiry.');
	}
	else
	{
		alert('Please Check at least one company');
	}

}



function CheckDataSearch(Form)
{
 	Form.ss.value = Form.ss.value.replace(/^\s+/g, '').replace(/\s+$/g, '');

	if (Form.ss.value.length < 3)
	{
		alert("Enter at least three characters for search.");
		Form.ss.focus();
		return false;
	}
	else
	{
		return true;

	}

}

function openchild(thisurl){

        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=600,height=400,left=0,top=0');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}

