
	function strGiveImageSrcBack(strImageID)
	{
		strImageSrc = document.getElementById(strImageID).src;
		return strImageSrc;
	}
	
function DrowImage(img)
		{
			strImage= new Image();
			strImage.src=(img);
			CheckImage(img);
		}
function CheckImage(img)
		{
			if((strImage.width!=0)&&(strImage.height!=0))
				{
					viewFoto(img);
				}
			else
				{
					strFunction="CheckImage('"+img+"')";
					strIntervall=setTimeout(strFunction,20);
				}
		}
function viewFoto(img)
		{
			strWindowWidth=strImage.width+20;
			strWindowHeight=strImage.height+20;
			strParameters="width="+strWindowWidth+",height="+strWindowHeight;
			strWindow=window.open(img,"",strParameters);
		}

	function maximize()
	{
		window.moveTo(0,0);
		resizeTo(screen.availWidth, screen.availHeight);
	}
	function objPopUpWindow(strURL, strWindowName,strParameter)
	{
		//strParameter= "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=500;" 
		var strPrpperties = strParameter
		window.open(strURL,strWindowName,strPrpperties);
	}


	function strChangeImageSrc(obElement,strNewSrc)
	  	{
			var myObj = document.getElementById(obElement);
			myObj.src=strNewSrc;
		}
	function UnCryptMailto(s) {	//
	var n=0;
	var r="";
	for(var i=0; i < s.length; i++) {
	n=s.charCodeAt(i);
	if (n>=8364) {n = 128;}
	r += String.fromCharCode(n-(2));
	}
	return r;
	}
	// JS function for uncrypting spam-protected emails:
	function linkTo_UnCryptMailto(s)	{	//
	location.href=UnCryptMailto(s);
	}

	function strHighLightBG(strID,strClass){ 
		if(document.getElementById(strID)){
			var td = document.getElementById(strID);
			td.className = strClass;
		}
	}
	
	// To hide and unhide an element
	function strChangeVisibility(itemID)
{
	if (document.getElementById(itemID).style.display  == "")
	{
		document.getElementById(itemID).style.display  = "none";
		
	}
	else
	{
		document.getElementById(itemID).style.display  = "";
	}
}

