/*Signature={FCABC03D-4DA16F99-C74FD8E8-8E1819FE-6DDA85B4-C5EA2591}*/
/** FILE:ppcripts.js
 *
 * Description:
 * this file includes the following functions:
 * - c_GetObj
 * - c_IsObject
 * - c_IsFunction
 * - c_GetActiveImagePath
 * - c_GetInactiveImagePath
 * - c_IsImageActive
 * - c_OnOverImage
 * - c_OnOutImage
 * - c_OnToggleImage
 * - c_OnClickImage
 * - c_OnResetLastImage
 * - c_FindPosX
 * - c_FindPosY
 * - c_CheckAll
 * - c_OnTrOver
 * - c_OnTrOut
 * - c_OnShowImage
 * - c_OnHideImage
 * - c_OnSort
 * - c_OnSubmitWithAction
 * - c_BrowserWidth
 * - c_BrowserHeight
 * - c_OnRefreshPage
 * 
 * Design & Implementation by Peter Lange
 * Copyright (C) 2008 NT-ware Systemprg. GmbH
 * 
 *  Helix:    	V1
 * Version:		$Revision:$
 * Modified:	$Modtime:$
 * Author:		$Author:$
 * Archive:		$Archive:$
 */

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_GetObj()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function searchs the object with the given name/id.
 *
 * @param   n	--> the name/id of the object
 * @param   d --> the name of the document
 *
 * @return  object
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_GetObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=c_GetObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
 }

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_IsObject()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function checks, whether the given parameter is a object or not.
 *
 * @param   a --> the parameter to check
 *
 * @return  bool, the result
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_IsObject(a) {
	return (a && typeof a == 'object') || c_IsFunction(a);
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_IsFunction()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function checks, whether the given parameter is a object or not.
 *
 * @param   a --> the parameter to check
 *
 * @return  bool, the result
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_IsFunction(a) {
	return typeof a == 'function';
}


var objLastOverImage; 
var objLastActiveImage;

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_GetActiveImagePath()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function returns the path to the 'active' image.
 *
 * @param   objImage	--> the image object
 *
 * @return  string, the path
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_GetActiveImagePath(objImage)
{
	var strPath = objImage.src;
	var aPath = strPath.split("/");
	var strImageName = aPath[aPath.length-1];
	var strNewPath = strPath.substring(0,(strPath.length-strImageName.length)) + strImageName.substring(0,1) + "_on" + strImageName.substring(4,strImageName.length);
	return strNewPath;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_GetInactiveImagePath()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function returns the path to the 'inactive' image.
 *
 * @param   objImage	--> the image object
 *
 * @return  string, the path
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_GetInactiveImagePath(objImage)
{
	var strPath = objImage.src;
	var aPath = strPath.split("/");
	var strImageName = aPath[aPath.length-1];
	var strNewPath = strPath.substring(0,(strPath.length-strImageName.length)) + strImageName.substring(0,1) + "_of" + strImageName.substring(4,strImageName.length);
	return strNewPath;
}


/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_IsImageActive()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function checks if the image has an active status at the moment.
 *
 * @param   objImage	--> the image object
 *
 * @return  bool, the result
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_IsImageActive(objImage)
{
	if(objImage == objLastActiveImage)
		return true;
	else
		return false;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnOverImage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function changes the image temporarily for the onMouseOver effect on 
 * the tab images.
 *
 * @param   objTabImage	--> the image object of the tab
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnOverImage(objImage)
{
	objLastOverImage = objImage;
	if(!c_IsImageActive(objImage))
	{
		objImage.src = c_GetActiveImagePath(objImage);
	}
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnOutImage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function changes the image temporarily for the onMouseOut effect on the 
 * tab images.
 *
 * @param   objTabImage	--> the image object of the tab
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnOutImage(objImage)
{
	if(!c_IsImageActive(objImage))
	{
		objImage.src = c_GetInactiveImagePath(objImage);
	}
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnToggleImage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function toggles the last image that was recognized by its over event,
 * Or uses the parameter - object to toggle this:
 * If it is not active at the momnet, it will be set to active
 * If it was active, it will be set to over, than the onMouseOut event will 
 * turn it to status normal later automatically.
 *
 * @param   objTabImage	--> the image object of the tab
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnToggleImage(objImage)
{
	//If somebody uses this function with the object of the image...
	if(c_IsObject(objImage))
	{
			objLastOverImage = objImage;
	}

	var objThisImage = objLastOverImage;
	if(objThisImage)
	{
		if(!c_IsImageActive(objThisImage))
		{
			//It is not active, so it must be in over status and we have to set it to active status
			var strNewImagePath = c_GetActiveImagePath(objThisImage);
			//Now we set the last active button inactive:
			c_OnOutImage(objLastActiveImage);
			//And store this one as the new, last active button
			objLastActiveImage = objThisImage;
		}
		else
		{
			//It is active, so we set it to over status:
			var strNewImagePath = c_GetInactiveImagePath(objThisImage);
			objLastActiveImage = new Object();
		}
		objThisImage.src = strNewImagePath;
	}
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnClickImage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function activates the last image that was recognized by its over event
 * or activates the paramter - object.
 *
 * @param   objImage	--> the image object
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnClickImage(objImage)
{
	//If somebody uses this function with the object of the image...
	if(c_IsObject(objImage))
	{
			objLastOverImage = objImage;
	}

	var objThisImage = objLastOverImage;
	if(objThisImage)
	{
			var strNewImagePath = c_GetActiveImagePath(objThisImage);
			//Now we set the last active button inactive:
			c_OnResetLastImage();
			//And store this one as the new, last active button
			objLastActiveImage = objThisImage;
			objThisImage.src = strNewImagePath;
	}
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnResetLastImage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function resets the last clicked image to inactive status.
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnResetLastImage()
{
	if(c_IsObject(objLastActiveImage))
	{
		objLastActiveImage.src = c_GetInactiveImagePath(objLastActiveImage);
		objLastActiveImage = "";
	}
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_FindPosX()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function returns the left offset position of the given object.
 *
 * @param		obj	--> the HTML object
 *
 * @return  integer, the left offset position of the object
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_FindPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_FindPosY()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function returns the top offset position of the given object.
 *
 * @param		obj	--> the HTML object
 *
 * @return  integer, the top offset position of the object
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_FindPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_CheckAll()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to check all checkboxes.
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_CheckAll()
{
	var objDoc = c_GetObj("frmMain");
	var alleC = c_GetObj("checkAll").checked;
	for (var i=0;i<objDoc.elements.length;i++)
	{
		var e = objDoc.elements[i];
 		  	if(e.name.substr(0,4) == 'Sel_')
				e.checked = alleC;
   	}
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnTrOver()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to highlight one row while the mouseover event.
 *
 * @param		objTR	--> the DOM object of the target row
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

var strLastClass = "";
function c_OnTrOver(objTr){
	if(objTr.className != "trSelected"){
		strLastClass = objTr.className;
		objTr.className = "trOver";
	}	
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnTrOut()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to unhighlight one row while the mouseover event.
 *
 * @param		objTR	--> the DOM object of the target row
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnTrOut(objTr)
{
	if(strLastClass != "" && objTr.className != "trSelected")
		objTr.className = strLastClass;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnShowImage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to show the arrow image while mouseover event for the 
 * column.
 *
 * @param		strImageName	--> the name of the image to be shown
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnShowImage(strImageName)
{
	var objImg = c_GetObj(strImageName);
	objImg.style.visibility = 'visible';
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnHideImage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to hide the arrow image while mouseover event for the 
 * column.
 *
 * @param		strImageName	--> the name of the image to be hidden
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnHideImage(strImageName)
{
	var objImg = c_GetObj(strImageName);
	objImg.style.visibility = 'hidden';
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnSort()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to store the parameters for sorting and submits the 
 * form.
 *
 * @param		strOrderBy	--> the "orderBy" criteria
 * @param		strAscDesc	--> defines ascending or descending
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnSort(strOrderBy,strAscDesc)
{
	c_GetObj("AscDesc").value = strAscDesc;
	c_GetObj("OrderBy").value = strOrderBy;
	c_OnSubmitWithAction("sort");
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnSubmitWithAction()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to submit the form and store the action method.
 *
 * @param		strActionMethod			--> the action method
 * @param		strNextActionMethod	--> the next action method
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnSubmitWithAction(strActionMethod,strNextActionMethod){

	if(strActionMethod)
			c_GetObj("theAction").value=strActionMethod;
	c_GetObj("thenextAction").value=strNextActionMethod;
	c_GetObj("frmMain").submit();	
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_BrowserWidth()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function calculates the width of the browser.
 *
 * @return  interger, the width
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_BrowserWidth()
{
	if (window.innerWidth) return window.innerWidth;
	else if (document.documentElement && document.documentElement.clientWidth) return document.documentElement.clientWidth;
	else if (document.body) return document.body.clientWidth;
	else return 0;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_BrowserHeight()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function calculates the height of the browser.
 *
 * @return  interger, the height
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_BrowserHeight()
{
	if (window.innerHeight) return window.innerHeight;
	else if (document.documentElement && document.documentElement.clientHeight) return document.documentElement.clientHeight;
	else if (document.body) return document.body.clientHeight;
	else return 0;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnRefreshPage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to reload the displayed form.
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_OnRefreshPage()
{
	if (document.frmMain)
	{
		document.frmMain.submit();
	}
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_OnSetDecimal()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function replaces the entered colons with a dot.
 *
 * @param 	strFieldName	--> the name of the visible text field
 * @param 	strHiddenName	--> the name of the hidden field
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */
	
	function c_OnSetDecimal(strName){
	
		objText = c_GetObj(strName);
		
		if(objText){
			objText.value = objText.value.replace(/ /g,"")
			if(objText.value != ""){
				objText.value = objText.value.replace(/,/g,".");
			}
			else{
				objText.value = 0;
			}			
		}
	
	}
	
/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_ShowSaveMessage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function will popup a error or save message.
 *
 * @param   strValue  --> string with 'yes'(= display msg) or 'no'
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_ShowSaveMessage(strValue)
{

  var objSaveMsg = document.getElementById("iframeSave");

 /* objSaveMsg.style.width= 400;
  objSaveMsg.style.height= 85;
  // set the message iframe size
  objSaveMsg.style.left = ((c_BrowserWidth() / 2 )- ((objSaveMsg.offsetWidth ) / 2));
  objSaveMsg.style.top =  ((c_BrowserHeight() / 2 )- (objSaveMsg.offsetHeight / 2)); */
  // set the location (in the center of the website) of the iframe

  if (strValue == "yes"){
    strMsg = c_GetObj("SaveMsg").value;
    var objMsg = MySaveMsg.document.getElementById("SaveMessage");
    if(objMsg){
      objMsg.innerHTML = strMsg;
      objSaveMsg.style.visibility = "visible";
		  window.setTimeout("c_ShowSaveMessage('no')", 3000);
		}
		// hide the message iframe after 3 sec
	}
	else{
		objSaveMsg.style.visibility = "hidden";
  }
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_ShowWorkingMsg()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function displays the working message.
 *
 * @param   strMsg  --> the value, that should be displayed
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_ShowWorkingMsg(strMsg){

 	var objSaveMsg = document.getElementById("iframeSave");

	if(objSaveMsg){ 
	  objSaveMsg.style.width= 400;
	  objSaveMsg.style.height= 85;
	  objSaveMsg.style.left = ((c_BrowserWidth() / 2 )- ((objSaveMsg.offsetWidth ) / 2));
	  objSaveMsg.style.top =  ((c_BrowserHeight() / 2 )- (objSaveMsg.offsetHeight / 2));
	  var objMsg = MySaveMsg.document.getElementById("SaveMessage");
	  if(objMsg){
	    objMsg.innerHTML = strMsg;
	    objSaveMsg.style.visibility = "visible";
	  }
	} 
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 * Function: c_AlertStringHandling (str) (by YakovG)
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function is used to handle the Strings of an Alert Message to 
 * bring them to correct syntax
 *
 * @return  void
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */
 
function c_AlertStringHandling (str){
	
	var alertString = str.replace(/%5Cn/g,"%0A");
	alertString = alertString.replace(/%5Cr/g,"%0D");
	alertString = alertString.replace(/%5Ct/g,"%09");
	
	return alertString;
}

/**
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *  Function: c_ShowMessage()
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 *
 * This function will popup a error or save message.
 *
 * @param   strDisplay	--> string with 'yes'(= display msg) or 'no'
 * @param   strMsg			--> the message to display
 *
 * @return  void
 *
 * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */

function c_ShowMessage(strDisplay, strMsg){

  var objSaveMsg = document.getElementById("iframeSave");
	
	if(objSaveMsg){
	  objSaveMsg.style.width= 400;
	  objSaveMsg.style.height= 85;
	  // set the message iframe size
	  objSaveMsg.style.left = ((c_BrowserWidth() / 2 )- ((objSaveMsg.offsetWidth ) / 2));
	  objSaveMsg.style.top =  ((c_BrowserHeight() / 2 )- (objSaveMsg.offsetHeight / 2));
	  // set the location (in the center of the website) of the iframe
	
	  if (strDisplay == "yes"){
	    var objMsg = MySaveMsg.document.getElementById("SaveMessage");
	    if(objMsg){
	      objMsg.innerHTML = strMsg;
	      objSaveMsg.style.visibility = "visible";
			  window.setTimeout("c_ShowMessage('no')", 3000);
			}
			// hide the message iframe after 3 sec
		}
		else{
			objSaveMsg.style.visibility = "hidden";
	  }
	}
}
