function notice_getCookie( name )
{
        var nameOfCookie = name + "=";
        var x = 0;
        while ( x <= document.cookie.length )
        {
                var y = (x+nameOfCookie.length);
                if ( document.cookie.substring( x, y ) == nameOfCookie ) {
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                                endOfCookie = document.cookie.length;
                        return unescape( document.cookie.substring( y, endOfCookie ) );
                }
                x = document.cookie.indexOf( " ", x ) + 1;
                if ( x == 0 )
                        break;
        }
        return "";
}


function viewPopwindow(url1,url2)
{
	openPopWindow(url1);
	openPopWindow1(url2);

}

function viewPopwindow3(url1,url2,url3)
{
	openPopWindow1(url1);
	openPopWindow2(url2);
	openPopWindow(url3);
}

function viewPopwindow2(url1,url2)
{
	openPopWindow1(url1);
	openPopWindow2(url2);
}



function openPopWindow(theURL) { //v2.0
  var Cookie = getCookie("POPUP2");
  if(Cookie != "ON") {
	window.open(theURL,'','width=388,height=600,left=0,top=0');
  }
}

function openPopWindow1(theURL) { //v2.0
  var Cookie = getCookie("POPUP1");
  if(Cookie != "ON") {
	window.open(theURL,'','width=388,height=592,left=388,top=0');
  }
}

function openPopWindow2(theURL) { //v2.0
  var Cookie = getCookie("POPUP2");
  if(Cookie != "ON") {
	window.open(theURL,'','width=388,height=592,left=0,top=0');
  }
}


function getCookie(Name) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) { 
			offset += search.length
			end = document.cookie.indexOf(";", offset);
			if (end == -1) 
				end = document.cookie.length;
			returnvalue = unescape(document.cookie.substring(offset, end))
		}
	}	
	return returnvalue;
}



