/*
This file is part of phpMyMsgBox.

phpMyMsgBox is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

phpMyMsgBox 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.

You should have received a copy of the GNU General Public License
along with phpMyMsgBox; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

/*Javascript Dokument*/

<!--
function openWindow(url,name,opts) {
	window.open(url,name,opts);
}

function addSmilie(smilie) {
		var smilie; var msg;
		var curmsg = form1.msg.value;
        if(curmsg != 'msg...')
			msg = curmsg + smilie;
       	else
        	msg = smilie;
       form1.msg.value=msg;
	   form1.msg.focus();;
}

function addextSmilie(smilie) {
		var smilie; var msg;
		var curmsg = window.opener.document.form1.msg.value;
        if(curmsg != 'msg...')
			msg = curmsg + smilie;
       	else
        	msg = smilie;
       window.opener.document.form1.msg.value=msg;
}

//-->