function showTip(item,title,text) {
	createTip(item, title, text);
}
	
function createAjaxTip(item,title,myUrl, myWidth) {
	if(myWidth==null)
		myWidth=600;
		
	new Tip(item, {
		title: title,
		style: 'getupdated',
		hideOn: { element: 'closeButton', event: 'click'},
		hideOthers: true,
		closeButton: true,
		width:myWidth,
		tip: 'topLeft',
	  	ajax: {
	    	url: myUrl,
	    		options: {
	      		method: 'get'
	    	}
	  	}
	});
}

function createTip(item,title,text) {
	new Tip(item, text, {
		title: title,
		style: 'getupdated',
		hideOthers: true,
		closeButton: true,
		width:400,
	});
}

function showHide(name) {
	if(document.getElementById(name).style.display == 'none') {
		document.getElementById(name).style.display = 'block';
	}	else {
		document.getElementById(name).style.display = 'none';	
	}
	
	return false;
}

function checkAll(theForm, box) {
   var n = theForm.length;
  	for (var i = 0; i < n; i++) {
  		if (box.checked) {
      		theForm[i].checked = true;
      	} else {
      		theForm[i].checked = false;
      	}
  	}
}