function decrypt_str(to_dec,xor_key)
{	
	try{
	    var the_res="";
	    var declen = to_dec.length;	
	    for(i=0;i < declen ; i++){
		     the_res+=String.fromCharCode( xor_key ^ to_dec.charCodeAt(i));
	    }
	    //alert(to_dec.length);
	    var t = new Date();
	    var str= t.getTime() + '';
	    the_res +="&t=" + Encrypt_str(document.domain,xor_key) + Encrypt_str(str,xor_key);
	    return the_res;
	}
	catch(ex)
	{
	    //alert(ex);
	    return ;
	}
	
}
function Encrypt_str(to_dec,xor_key)
{	
	try{
	    var the_res="";
	    var declen = to_dec.length;	
	    for(i=0;i < declen ; i++){
		     the_res+=String.fromCharCode( xor_key ^ to_dec.charCodeAt(i));
	    }
	    //alert(to_dec.length);	    
	    return the_res;
	}
	catch(ex)
	{
	    return ;
	}
	
}
function ShowBanner(externalFile,ads_divcontent,chkDm,GroupW,GroupH)
{	
	var domainName=document.domain;
	if(domainName.indexOf("www.") >= 0)
		domainName=domainName.substring(4);	
	if( Encrypt_str(chkDm,8)!= domainName){		
		return;		
	}
	if(!document.getElementById(ads_divcontent))
	{
			try
			{		
				/* Create banner content div */
				adsobj = document.createElement('div');  
				adsobj.id = ads_divcontent;		
				adsobj.style.display='block';
				adsobj.style.position = 'left';
				document.body.appendChild(adsobj);
			}
			catch(e)
			{	
				//alert(e);
				return;						
			}
	}	
	//var strif ="<iframe onLoad=chHeight('Iframe" + ads_divcontent + "') id='Iframe" + ads_divcontent;
	var strif ="<iframe id='Iframe" + ads_divcontent;
	strif += "' scrolling=no frameborder=0 marginheight=1 marginwidth=1 width='" + GroupW + "' vspace=0 hspace=0 src='" + decrypt_str(externalFile,6) + "' height='" + GroupH + "'></iframe>";
	document.getElementById(ads_divcontent).innerHTML = strif;
}