

function fPopup(pPage,pWidth,pHeight,pOptions) {

	var vOptions='' ;
	if ( pWidth ) {
		vOptions += ',width='+pWidth ;
	}
	
	if ( pHeight ) {
		vOptions += ',height='+pHeight ;
	}
	
	vOptions += ',resizable=yes' ;
	vOptions += ',scrollbars=yes' ;

	if ( vOptions != '' ) {
		vOptions = vOptions.substring(1) ;
	}
	
	window.open(pPage,'PopupWindow',vOptions) ;

}

function fPopPiccie( pEvent,pImage,pAlt ) {

	fGetMousePos(pEvent) ;

	var vDiv = document.getElementById('PiccieDiv') ;
	if ( vDiv ) {
		var vPiccie = document.getElementById('PiccieImg') ;

	} else {

		var vBody = document.getElementsByTagName('body')[0] ;
		vDiv = document.createElement('div') ;
		vDiv.setAttribute('id','PiccieDiv') ;
		vDiv.style.background = 'white' ;
		vDiv.style.border = '3px solid #F09030' ;

		var vDiv2 = document.createElement('div') ;
		vDiv2.style.background = 'white' ;
		vDiv2.style.border = '2px solid white' ;
		vDiv2.style.font = '0px/0px Arial' ;

		var vPiccie = document.createElement('img') ;
		vPiccie.setAttribute('id','PiccieImg') ;

		vDiv2.appendChild(vPiccie) ;
		vDiv.appendChild(vDiv2) ;
		vBody.appendChild(vDiv) ;

	}

	vPiccie.src = "" ;

	vDiv.style.position = 'absolute' ;
	vDiv.style.top = (vPosY-100) + 'px' ;
	vDiv.style.left = (vPosX+20) + 'px' ;
	vDiv.style.display = 'block' ;

	vPiccie.src = pImage ;
	if ( pAlt != '' ) vPiccie.alt = pAlt ;

}


