<!--

/* Floating Messages */
var HelpTextBox=(document.getElementById('elemHelpFloatBox')) ? document.getElementById('elemHelpFloatBox') : null;
var HelpTextJar=(document.getElementById('elemHelpFloatJar')) ? document.getElementById('elemHelpFloatJar') : null;
function ActHelp(event,c)
{
	HelpTextBox.innerHTML=strings[c];
	HelpTextJar.style.left=event.clientX+9;
	HelpTextJar.style.top=(event.clientY-(HelpTextJar.offsetHeight/2)-40);
	HelpTextJar.style.visibility="visible";
}
function DeActHelp(event)
{
	HelpTextJar.style.visibility="hidden";
}
function SustainHelp(event)
{
	HelpTextJar.style.left=event.clientX+9;
	HelpTextJar.style.top=(event.clientY-(HelpTextJar.offsetHeight/2)-40);
}
function ActMsg(event,serverMsg)
{
	HelpTextBox.innerHTML = serverMsg;
	HelpTextJar.style.left=event.clientX+9;
	HelpTextJar.style.top=(event.clientY-(HelpTextJar.offsetHeight/2)-40);
	HelpTextJar.style.visibility="visible";
}

/* Error Message for Validations */
var theErrorPopUp, theErrorPopUpContent,mouseDown,moveLeftBuffer,moveTopBuffer;
theErrorPopUp = document.getElementById("elemPopUp");
theErrorPopUpMsg = document.getElementById("elemPopUpContent");				
function ShowErrorPopUp(theMsg)
{
	theErrorPopUpMsg.innerHTML = theMsg;
	PosErrorPopUp();
	document.body.onresize = PosErrorPopUp;
	theErrorPopUp.style.visibility = "visible";	
}
function HideErrorPopUp(event)
{
	theErrorPopUp.style.visibility = "hidden";	
}
function PosErrorPopUp()
{
	theErrorPopUp.style.left = PageLeft + theForm.offsetWidth/2 - theErrorPopUp.clientWidth/2;
	theErrorPopUp.style.top = PageTop + document.body.offsetHeight/2 - theErrorPopUp.clientHeight/2;
}
/* User Items Page */
var floatTimer;
var imgOptBox = document.getElementById('elemImgOptBox');
var theImg = document.getElementById('elemTheImg');
var editImgCaptionJar = document.getElementById("elemEditImgCaptionJar");
var imgDragHeader = document.getElementById("imgDragHeader");
function EditImgCaptionSubmit(event)
{
	theForm.subImg.value = theImg.src;	
	theForm.submit();
}
function EditImgCaption()
{
	if(editImgCaptionJar.style.visibility == "visible")
	{
		editImgCaptionJar.style.visibility = "hidden";
		return;
	}
	editImgCaptionJar.style.width = imgDragHeader.offsetWidth - ((IE) ? 0 : 9);	
	editImgCaptionJar.style.visibility = "visible";
}
function CloseEditImgCaption(event)
{
	if(typeof event=="undefined"){event=window.event;}
	var e=(event.toElement) ? event.toElement : (event.relatedTarget) ? event.relatedTarget : null;		
	if(!findParent(e,editImgCaptionJar))
	{
		editImgCaptionJar.style.visibility = "hidden";
	}		
}
function SusEditImgCaption(event)
{
	editImgCaptionJar.style.visibility = "visible";	
}
function ClickPopUpToMove(event,node)
{	
	if(typeof event=="undefined"){event=window.event;}
	var e=(event.srcElement) ? event.srcElement : (event.target) ? event.target : null;
	mouseDown = true;
	while(e.className != node.className)
	{
		e = e.parentNode;
	}
	moveLeftBuffer = event.clientX - findPos(e)[0];
	moveTopBuffer = event.clientY - findPos(e)[1];		
}
function UnClickPopUpToMove()
{
	mouseDown = false;
}
function DragPopUpToMove(event,node)
{
	if(mouseDown)
	{
		node.style.left = event.clientX - moveLeftBuffer;
		node.style.top = event.clientY - moveTopBuffer;
		node.blut();
	}
}
function ActImgOpt(event)
{	
	if(typeof event=="undefined"){event=window.event;}
	var node = (event.srcElement) ? event.srcElement : (event.target) ? event.target : null;	
	if(floatTimer){CnclImgOptBox();}
	imgOptBox.style.visibility = "hidden";
	theImg.src = node.src;
	imgOptBox.style.left=findPos(node)[0] + node.offsetWidth - 9;
	imgOptBox.style.top=findPos(node)[1] - imgOptBox.offsetHeight + 9;		
	imgOptBox.style.visibility = "visible";	
}
function ShdXImgOptBox()
{
	floatTimer = setTimeout("imgOptBox.style.visibility='hidden';", 194);
	editImgTimer = setTimeout("editImgCaptionJar.style.visibility='hidden';",194);
}
function DeActImgOpt(event){ShdXImgOptBox();}
function SusImgOpt(event){CnclImgOptBox();}
function DeSusImgOpt(event){	ShdXImgOptBox();}
function CnclImgOptBox(){
	clearTimeout(floatTimer);
	clearTimeout(editImgTimer);}
function DelPicAct(event)
{	
	if(confirm("Are You Sure?"))
	{
		theForm.elemThePicValue.value = theImg.src;
		theForm.submit();
	}
}

// -->