	function initArray() {
		  this.length = initArray.arguments.length;
		  for (var i = 0; i < this.length; i++)
			  this[i+1] = initArray.arguments[i];
	}

	function CheckSelect( target, cmt ) {
		if ( target[ target.selectedIndex ].value == '' ) {
			alert( 'Select ' + cmt + ', please.' );
			target.focus();
			return true;
		}
		return false;
	}

	function OpenPopUp(url) {
		var iPosX = screen.width - 625;
	
		popup = window.open(url, 'popup', 'scrollbars=yes,width=620,height=465,top=0,left='+iPosX);
		popup.focus();
	}

	function FilterForXSS (obj) {
		RemoveChar(obj,">");		
		RemoveChar(obj,"<");
		RemoveChar(obj,"(");
		RemoveChar(obj,")");
		RemoveChar(obj,",");
	}


	function RemoveChar (obj, c) {
	// Remove all occurences of c from the object 
		var i
		i = obj.value.indexOf(c)
		while (i > -1) 
			{
				if (i == 0 ){
					obj.value = obj.value.substr(1);
					}
				else if (i > 0) {
					obj.value = obj.value.substr(0,i) + obj.value.substr(i+1);
					}
				i = obj.value.indexOf(c);
			}
	}