function startDownload(new_url,fileurl,analyticsCode,queryStr){
	   return writeAndDownload(new_url,fileurl,analyticsCode,queryStr);
	}
	
	function writeAndDownload(new_url,fileurl,analyticsCode,queryStr){
	    urchinTracker(analyticsCode); 

	   document.location.href = fileurl;
	   
		setTimeout(function(){
		   if(queryStr!=''){
			    document.location.href = new_url+queryStr;
		   }
		   document.location.href = new_url;
		           }, 6000);
	}
	
	function urchinTracker(page) {
		
		if(typeof pageTracker != 'undefined') {
			pageTracker._trackPageview(page);
		} else {
			_gaq.push(['_trackPageview',page]);
		}
		
      
   }
   
   
   function startDownloadIframe(new_url,fileurl,analyticsCode,queryStr){
	   return writeAndDownloadIframe(new_url,fileurl,analyticsCode,queryStr);
	}
	
	function writeAndDownloadIframe(new_url,fileurl,analyticsCode,queryStr){
	    urchinTracker(analyticsCode); 

	   window.location = fileurl;
	   
		setTimeout(function(){
		   if(queryStr!=''){
			    //window.location = new_url+queryStr;
		   }
		   //window.location = new_url;
		           }, 5000);
	}
	
	   function startDownloadIframe2(new_url,fileurl,analyticsCode,queryStr){
		   return writeAndDownloadIframe2(new_url,fileurl,analyticsCode,queryStr);
		}
		
		function writeAndDownloadIframe2(new_url,fileurl,analyticsCode,queryStr){
			//console.log(new_url);
		    urchinTracker(analyticsCode); 
		    parent.top.location = fileurl;
		   
		 if(typeof console != 'undefined') {
	    	console.log(new_url);
	    	console.log(fileurl);
	    	console.log(analyticsCode);
	    	console.log(queryStr);
	    }
		    
		    
			setTimeout(function(){
			   if(queryStr!=''){
				    //window.location = new_url+queryStr;
			   }
			   parent.top.location = new_url;
			           }, 5000);
		}
