
function checkAll(controlName, value) 
	{  
		var frm = document.forms[0];  
		var len = frm.elements.length;  
		for(var i=0;i<len;i++)    
			if (frm.elements[i].name.indexOf(controlName) > -1) frm.elements[i].checked = value;
	}
	
function newWindow(winURL,winw,winh)
	{
		window.open(winURL,"notifyWindow","toolbar=no,locationbar=no,scrollbars=no,width="+winw+",height="+winh+"");
	}
function newWindow2(winURL,winw,winh)
	{
		window.open(winURL,"notifyWindow","toolbar=no,locationbar=no,scrollbars=yes,menubar=yes,width="+winw+",height="+winh+"");
	}
	
function setFocus()
	{
		window.document.forms[0].search_contacts.focus();
	}
function goSearch()
	{
		window.document.forms[0].submit();
	}
function search_contacts_press()
	{
		if(event.keyCode == 13)
			{
				document.forms[0].SearchReturn.value = 1;
				window.document.forms[0].search_contacts.click();
			}
	}
