function btnShow() {
	obj = document.getElementById('stopBnt');
	if (obj != null) obj.style.visibility='visible';
	document.getElementById('submitBnt').style.visibility='visible';
	obj = document.getElementById('langSelect');
	if (obj != null) obj.style.visibility='visible';
  document.getElementById('procWait').style.visibility='hidden';
  return true
}

function btnHide() {
	document.getElementById('submitBnt').style.visibility='hidden';
	obj = document.getElementById('stopBnt');
	if (obj != null) obj.style.visibility='hidden';
	obj = document.getElementById('langSelect');
	if (obj != null) obj.style.visibility='hidden';
	document.getElementById('procWait').style.visibility='visible';
  return true
}

function specSymbol(obj) {
	var specS = "#%&*^|\'\""
	for(var i=0; i<specS.length; i++) {
		while (obj.value.indexOf(specS.charAt(i)) != -1) {
			obj.value=obj.value.substring(0, obj.value.indexOf(specS.charAt(i)))
				+ obj.value.substring(obj.value.indexOf(specS.charAt(i))+1, obj.value.length)
		}
	}
	return obj.value
}

function trim(obj) {
	obj.value = specSymbol(obj)
	while (obj.value.indexOf('  ') != -1) {
		obj.value=obj.value.substring(0, obj.value.indexOf('  '))
			+ obj.value.substring(obj.value.indexOf('  ')+1, obj.value.length)
	}
	while (obj.value.charAt(0) == ' ') {
		obj.value=obj.value.substring(1, obj.value.length)
	}
	while (obj.value.charAt(obj.value.length-1) == ' ') {
		obj.value=obj.value.substring(0, obj.value.length-1)
	}
	return obj.value
}

function upValue(obj) {
	obj.value = trim(obj)
//	obj.value=obj.value.toUpperCase()
}

altered = true;

function checkAltered(){
	if(altered){
 		window.open("http://www.incredimail.com/purchase_handler.asp?cause=userAbort" ,"purchase_handler","top= 400, left= 0 , width=0, height=0, scrollbars=0, menubar=0, toolbar=0, status=0, location=0, resizable=0, directories=0");
	}
 		return true;
}

