<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<Script Language="JavaScript">
function OpenPop(){
window.open("Default2.aspx","","width=730,height=112")
}
function GetCookie(name){
var search = name + "=";
var returnvalue = "";
var offset,end;
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;
}
function LoadPop(){
if (GetCookie("popped2") == "") {
// OpenPop();
var today = new Date()
// var aa = "Sunday,1-jan-" + (+today.getYear() + 1) + " 23:59:59 GMC";
document.cookie = "popped2=yes;expires=" + aa;
} else {
var today = new Date()
//var aa = "Sunday,1-jan-" + (+today.getYear() + 1) + " 23:59:59 GMC";
var aa = new Date(Date.parse(today)+1*365*24*60*60*1000);
document.cookie = "popped2=yes;expires=" + aa;
}
}
</Script>
</head>
<body onload="LoadPop()">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>