//var ppccs_chk_url = document.location.href;
//if(ppccs_chk_url.match('cap/fut/alg/')) {
document.writeln('<center><a href="http://www.oilgae.com/ref/report/co2_capture/co2_capture.html"><img src="http://www.oilgae.com/adv/algae_cs.jpg"></a></center><br/>');
//}

/*document.writeln('<link href="http://www.cleantick.com/banner/css/cleantech_bnr_css.css" type="text/css" rel="stylesheet" />');
function rand ()
{
  return ( Math.floor ( Math.random ( ) * 2 + 1 ) );
}

var rand_nm = rand ();

if(rand_nm == 1) {
document.writeln('<div id="CT_reg_form" class="bg_1" align="left" style="margin-left:50px;"><div class="form"><input type="text" name="email" value="Enter your Email ID" id="email" onClick="Empty_this(this);"><input type="button" name="reg_btn" value="JOIN"  id="join_btn" onClick="reg_CT();"><p class="one_stp_reg">* One step registration</p></div><a href="http://www.cleantick.com/register/em" class="CT_link"><img src="http://www.oilgae.com/adv/Cleantick_gif_link.gif" id="CT_logo"/></a></div>');
}
else {
document.writeln('<div id="CT_reg_form" class="bg_2" align="left" style="margin-left:50px;"><div class="form"><input type="text" name="email" value="Enter your Email ID" id="email" onClick="Empty_this(this);"><input type="button" name="reg_btn" value="JOIN"  id="join_btn" onClick="reg_CT();"><p class="one_stp_reg">* One step registration</p></div><a href="http://www.cleantick.com/register/em" class="CT_link"><img src="http://www.oilgae.com/adv/Cleantick_gif_link.gif" id="CT_logo"/></a></div>');
}

function Empty_this(Obj) {
     
      if(Obj.value == 'Enter your Email ID') {
	Obj.value='';
     }
}

function reg_CT() {
	var e_ID = document.getElementById('email').value;
	//alert(e_ID);
	
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	if(reg.test(e_ID) == false) {
		alert('Invalid Email Address');
		return false;
	} else 
		{
			var url_e_ID = encodeBase64(e_ID);
			//alert(url_e_ID);
			var CT_reg_url = encodeBase64(window.location.href);

			window.location.href='http://www.cleantick.com/register/em/'+url_e_ID+'/'+CT_reg_url;
		}
}

var END_OF_INPUT = -1;

var base64Chars = new Array(
    'A','B','C','D','E','F','G','H',
    'I','J','K','L','M','N','O','P',
    'Q','R','S','T','U','V','W','X',
    'Y','Z','a','b','c','d','e','f',
    'g','h','i','j','k','l','m','n',
    'o','p','q','r','s','t','u','v',
    'w','x','y','z','0','1','2','3',
    '4','5','6','7','8','9','+','/'
);

var reverseBase64Chars = new Array();
for (var i=0; i < base64Chars.length; i++){
    reverseBase64Chars[base64Chars[i]] = i;
}

var base64Str;
var base64Count;
function setBase64Str(str){
    base64Str = str;
    base64Count = 0;
}
function readBase64(){    
    if (!base64Str) return END_OF_INPUT;
    if (base64Count >= base64Str.length) return END_OF_INPUT;
    var c = base64Str.charCodeAt(base64Count) & 0xff;
    base64Count++;
    return c;
}
function encodeBase64(str){
    setBase64Str(str);
    var result = '';
    var inBuffer = new Array(3);
    var lineCount = 0;
    var done = false;
    while (!done && (inBuffer[0] = readBase64()) != END_OF_INPUT){
        inBuffer[1] = readBase64();
        inBuffer[2] = readBase64();
        result += (base64Chars[ inBuffer[0] >> 2 ]);
        if (inBuffer[1] != END_OF_INPUT){
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30) | (inBuffer[1] >> 4) ]);
            if (inBuffer[2] != END_OF_INPUT){
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c) | (inBuffer[2] >> 6) ]);
                result += (base64Chars [inBuffer[2] & 0x3F]);
            } else {
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c)]);
                result += ('=');
                done = true;
            }
        } else {
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30)]);
            result += ('=');
            result += ('=');
            done = true;
        }
        lineCount += 4;
        if (lineCount >= 76){
            result += ('\n');
            lineCount = 0;
        }
    }
    return result;
}
function readReverseBase64(){   
    if (!base64Str) return END_OF_INPUT;
    while (true){      
        if (base64Count >= base64Str.length) return END_OF_INPUT;
        var nextCharacter = base64Str.charAt(base64Count);
        base64Count++;
        if (reverseBase64Chars[nextCharacter]){
            return reverseBase64Chars[nextCharacter];
        }
        if (nextCharacter == 'A') return 0;
    }
    return END_OF_INPUT;
}

function ntos(n){
    n=n.toString(16);
    if (n.length == 1) n="0"+n;
    n="%"+n;
    return unescape(n);
}

function decodeBase64(str){
    setBase64Str(str);
    var result = "";
    var inBuffer = new Array(4);
    var done = false;
    while (!done && (inBuffer[0] = readReverseBase64()) != END_OF_INPUT
        && (inBuffer[1] = readReverseBase64()) != END_OF_INPUT){
        inBuffer[2] = readReverseBase64();
        inBuffer[3] = readReverseBase64();
        result += ntos((((inBuffer[0] << 2) & 0xff)| inBuffer[1] >> 4));
        if (inBuffer[2] != END_OF_INPUT){
            result +=  ntos((((inBuffer[1] << 4) & 0xff)| inBuffer[2] >> 2));
            if (inBuffer[3] != END_OF_INPUT){
                result +=  ntos((((inBuffer[2] << 6)  & 0xff) | inBuffer[3]));
            } else {
                done = true;
            }
        } else {
            done = true;
        }
    }
    return result;
} */
