var viewportwidth;
 var viewportheight;
 
window.innerWidth = window.innerWidth
 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
 
 if (typeof window.innerWidth == 'undefined')
 {
 	var oBody = (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0) ? 
     document.documentElement : 
     document.getElementsByTagName('body')[0];
     
 	window.innerWidth = oBody.clientWidth ;
 	window.innerHeight = oBody.clientHeight ;
}

function removeImageBase(sInput, sDivImage)
{
	document.forms["frmEdit"].elements[sInput].value = '';
	document.getElementById(sDivImage).style.display = 'none';
}


function restrictLength(oObject, iMaxLength)
{
	if(oObject.value)
	{
		oObject.value = oObject.value.substring(0, iMaxLength);
	}
}

var init = function (){};
