<script>

     function fun_popClose()
        {
        alert("oi");
        alert(createCookie('param',1,60));
    createCookie('param',1,60);
    window.location.href=window.location.href;
        }


   function createCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";



}


function readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return
c.substring(nameEQ.length,c.length);
    }
    return null;


}

function load()
{
if(readCookie('param'))
 GB_showCenter('Create','URL',200,500,'');

alert("kl");
}




</script>

<body bgcolor="white" style="height:400px" onload ="function load()" >

<a href="" onclick="fun_popClose()" >Show first page in page_set</a>


this is how i have mention this code.is this correct? Now i getting
error undefined.

Where to call to these functions.

function readCookie(name),function createCookie(name,value,days)


URGENT

Regards
Indu




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to