﻿// JScript 文件
function openwin(width,height) 
{window.open ("/doce/notice.html", "newwindow", "height="+height+", width="+width+", top=100,left=200,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no") 
} 


function get_cookie(name) 
{
var offset;
var searchstr = name + "=" ;
var returnvalue = ""; 
if (document.cookie.length > 0) { 
offset = document.cookie.indexOf(searchstr) 
if (offset != -1) { 
offset += searchstr.length 
end = document.cookie.indexOf(";", offset); 
if (end == -1) 
end = document.cookie.length; 
returnvalue=unescape(document.cookie.substring(offset,end)) 
} 
} 
return returnvalue; 
} 


function loadpopup(width,height){ 
if (get_cookie('popped')==''){ 
openwin(width,height);
document.cookie="popped=yes" 
} 
} 
openwin("400","280");
