var transparentImage = "images/transparent.gif";

function fixTrans()
{
	if (typeof document.body.style.maxHeight == 'undefined') {

	var imgs = document.getElementsByTagName("img");
	
	for (i = 0; i < imgs.length; i++)
	{	
		if (imgs[i].src.indexOf(transparentImage) != -1)
		{
			return;
		}

		if (imgs[i].src.indexOf(".png") != -1)
			{
				var src = imgs[i].src;
				imgs[i].src = transparentImage;
				imgs[i].runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
			}
		}	
	}
}

if (document.all && !window.opera)
	attachEvent("onload", fixTrans);
	
function checkLen(x,y)
{
	if (y.length==x.maxLength)
    {
    	var next=x.nextSibling.nextSibling;

   		if (next)
        {
            next.focus()
        }
    }
}

function showHelp(extraPath, params){
	window.open(extraPath + "help.jsp" + params, "_popup", 'resizable=no,scrollbars=yes,status=no,titlebar=no,width=800,height=600'); 
}

function showCustomerSupport(extraPath, params){
	window.open(extraPath + "customerSupport.jsp" + params, "_popup", 'resizable=no,scrollbars=no,status=no,titlebar=no,width=450,height=200');
}


function showTermsAndConditions(extraPath, params){
	window.open(extraPath + "termsConditions.jsp" + params, "_popup", 'resizable=no,scrollbars=yes,status=no,titlebar=no,width=800,height=600'); 
}

function showPrivacyAndPolicy(extraPath, params){
	window.open(extraPath + "privacyPolicy.jsp" + params, "_popup", 'resizable=no,scrollbars=yes,status=no,titlebar=no,width=800,height=480'); 
}

function show24_7Help(extraPath, params){
	window.open(extraPath + "24_7help.jsp" + params, "_popup", 'resizable=no,scrollbars=no,status=no,titlebar=no,width=450,height=200');
}

function showPopUp(filePath, params){
	window.open(filePath + params, "_popup", 'resizable=no,scrollbars=yes,status=no,titlebar=no,width=800,height=600'); 
}

function simpleSubmit(formName){
	eval("document." + formName + ".submit()");
}


	