/*
// ----------------------------------------------------------------------
// PostNuke Content Management System
// Copyright (C) 2001 by the PostNuke Development Team.
// http://www.postnuke.com/
// ----------------------------------------------------------------------
// Based on:
// PHP-NUKE Web Portal System - http://phpnuke.org/
// Thatware - http://thatware.org/
// ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// To read the license please visit http://www.gnu.org/copyleft/gpl.html
// ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file: showimage javascript
// ----------------------------------------------------------------------
*/
function showimage()
{
  //if (!document.images)
  if (document.images['avatar'].src)
	 return document.images.avatar.src= 'images/avatar/' + document.Register.user_avatar.options[document.Register.user_avatar.selectedIndex].value
}
keys = [];
keys.k1590 = 113;
keys.k1589 = 119;
keys.k1579 = 101;
keys.k1602 = 114;
keys.k1601 = 116;
keys.k1594 = 121;
keys.k1593 = 117;
keys.k1607 = 105;
keys.k1582 = 111;
keys.k1581 = 112;
keys.k1580 = 91;
keys.k1670 = 93;
keys.k1662 = 92;
keys.k1588 = 97;
keys.k1587 = 115;
keys.k1740 = 100;
keys.k1576 = 102;
keys.k1604 = 103;
keys.k1575 = 104;
keys.k1578 = 106;
keys.k1606 = 107;
keys.k1605 = 108;
keys.k1705 = 59;
keys.k1711 = 39;
keys.k1592 = 122;
keys.k1591 = 120;
keys.k1586 = 99;
keys.k1585 = 118;
keys.k1584 = 98;
keys.k1583 = 110;
keys.k1574 = 109;
keys.k1608 = 44;
keys.k1610 = 88;
keys.k1688 = 67;
  function setEnglishKeyCode(){
	var a=window.event.keyCode

	if((a>=65 && a<=90) || (a>=97 && a<=122) || a==47 ||a==42 || a==95 || a==45 || a==46 || a==64) 
		Tp=1;
	else
		if(a>=48 && a<=57)
			Tp=2;
		else
			Tp=3;		

	if(Tp==3){
		newKey='';
		eval('newKey = keys.k'+a+';');	
		window.event.keyCode=newKey;		
	}
  }
function englishCharCheck()
{
	var a=window.event.keyCode

	if((a>=65 && a<=90) || (a>=97 && a<=122) || a==47 ||a==42 || a==95 || a==45 || a==46 || a==64) 
		Tp=1;
	else
		if(a>=48 && a<=57)
			Tp=2;
		else
			Tp=3;		

	if(Tp==3)
		window.event.keyCode=0;		
} 

