<html>
<head>
<title>中国图片总汇-图片上传</title>
<script language="javascript">
var varCount = 4;
var picCount = 0;
var subUrl = "";
var currentID= 1;
var files = new Array(4);
var captions = new Array(4);
var shootCountries=new Array(4);
var shootPlaces=new Array(4);
var shootPersons=new Array(4);
var shootDates=new Array(4);
var shootContents=new Array(4);
var currentImg;
var submitSet=new Array(4);
var setImgs=new Array(4);
var inFile = new Array(4);
var currYear = '2008';
var currMonth = '10';
var currDay = '9';
for(i=0;i<4;i++)
{
submitSet[i]=0;
setImgs[i] = 0;
}
function onloadtemp()
{
for(o=0;o<varCount;o++)
{
captions[o]="";
shootCountries[o]="";
shootPlaces[o]="";
shootPersons[o]="";
shootContents[o]="";
shootDates[o]="";
}
}
function alerm(str)
{
alert(str);
}
function trim(str)
{
var ch;
var string="";
var min=0;
var max=str.length-1;
ch=str.charAt(min);
//计算字符串左边空格个数
while(ch==' ')
{
min++;
ch=str.charAt(min);
}
ch=str.charAt(max);
//计算字符串右边空格个数
while(ch==' ')
{
max--;
ch=str.charAt(max);
}
//将字符串两边空格去掉
if(min>max)
string="";
else
string=str.substring(min,max+1);
return string;
}
function isInt(x){
var i, y;
for (i=0; i< x.length; i++){
y = x.charCodeAt(i);
if ((y>57) || (y<48))
return false;
}
return true;
}
//判断是否日期格式
function isDate(x)
{
if ((x == "") || (x == null))
return true;
if ((x.length == 8) && isInt(x))
return true;
else
return false;
}
//判断是否日期格式YYYY-MM-DD或者YYYY-M-D
function isDate2(x)
{
if ((x == "") || (x == null))
return true;
var dateArr = x.split("-");
if (dateArr == null || dateArr.length != 3)
return false;
if((dateArr[1]=='4'||dateArr[1]=='04')&&dateArr[2]>30)
{
return false;
}
if((dateArr[1]=='6'||dateArr[1]=='04')&&dateArr[2]>30)
{
return false;
}
if((dateArr[1]=='9'||dateArr[1]=='04')&&dateArr[2]>30)
{
return false;
}
if((dateArr[1]=='11'||dateArr[1]=='04')&&dateArr[2]>30)
{
return false;
}
if(dateArr[0]%4!=0&&(dateArr[1]=='2'||dateArr[1]=='02')&&dateArr[2]>28)
{
return false;
}
//Year
var nLen = dateArr[0].length;
if ((nLen == 4) && isInt(dateArr[0]))
{
}
else
return false;
//Month
nLen = dateArr[1].length;
if (((nLen == 1) || (nLen == 2)) && isInt(dateArr[1]))
{
}
else
return false;
//Day
nLen = dateArr[2].length;
if (((nLen == 1) || (nLen == 2)) && isInt(dateArr[2]))
{
}
else
return false;
return true;
}
</script>
<script src="./wordtable/searchWordTable.js"></script>
<script src="./photo/calendar/CheckDate.js"></script>
<link rel="stylesheet" type="text/css" href="./Style/Style.css">
<Style>
TH {
BACKGROUND-COLOR: #CBDAF7;
FONT-SIZE: 11.5pt;
FONT-WEIGHT: lighter;
COLOR: black;
}
TD {
BACKGROUND-COLOR: #EAEEF1;
font-size: 11.5pt;
white-space: nowrap;
color: #051553;
}
BUTTON {
BACKGROUND-COLOR: #f8f8f8;
BORDER-BOTTOM: #888888 1px solid;
BORDER-LEFT: #888888 1px solid;
BORDER-RIGHT: #888888 1px solid;
BORDER-TOP: #888888 1px solid;
WIDTH: 80px;
HEIGHT: 22px;
FONT-SIZE: 11.5pt;
}
INPUT {
BACKGROUND-COLOR: #f8f8f8;
BORDER: #888888 1px solid;
font-size: 11.5pt;
}
.enlarge {
BACKGROUND-COLOR: #f8f8f8;
BORDER: #888888 1px solid;
font-size: 11.5pt;
}
.style1 {
color: #FF0000
}
</Style>
</head>
<body bgColor="#EAEEF1" style="overflow: auto" onLoad="onloadtemp();">
<iframe id="iFrame" name="iFrame" src="" style="display: none"></iframe>
<form name="uploadForm" action="" enctype="multipart/form-data"
method="post">
<input type="hidden" name="caption0" />
<input type="hidden" name="shootCountry0" />
<input type="hidden" name="shootPlace0" />
<input type="hidden" name="content0" />
<input type="hidden" name="shootPerson0" />
<input type="hidden" name="shootDate0" />
<input type="hidden" name="fileExt0" />
<input type="hidden" name="caption1" />
<input type="hidden" name="shootCountry1" />
<input type="hidden" name="shootPlace1" />
<input type="hidden" name="content1" />
<input type="hidden" name="shootPerson1" />
<input type="hidden" name="shootDate1" />
<input type="hidden" name="fileExt1" />
<input type="hidden" name="caption2" />
<input type="hidden" name="shootCountry2" />
<input type="hidden" name="shootPlace2" />
<input type="hidden" name="content2" />
<input type="hidden" name="shootPerson2" />
<input type="hidden" name="shootDate2" />
<input type="hidden" name="fileExt2" />
<input type="hidden" name="caption3" />
<input type="hidden" name="shootCountry3" />
<input type="hidden" name="shootPlace3" />
<input type="hidden" name="content3" />
<input type="hidden" name="shootPerson3" />
<input type="hidden" name="shootDate3" />
<input type="hidden" name="fileExt3" />
<center>
<TABLE cellSpacing=0 cellPadding=0 width="80%" border=0>
<TBODY>
<TR>
<TD width=15 height=15>
<IMG height=15 src="images/wf007.gif" width=15 border=0>
</TD>
<TD width="775" background=images/wf011.gif></TD>
<TD width=15 height=15>
<IMG height=15 src="images/wf008.gif" width=15 border=0>
</TD>
</TR>
<TR>
<TD background=images/wf012.gif></TD>
<TD bgColor=#dae8ff>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<img src="./img/phLogo.gif">
</tD>
<td colspan="3">
<font color="#999999" face="隶书, 华文新魏" size="6">图片上传...</font>
</td>
</tr>
</table>
<table align="center" width="100%" border="1">
<tr>
<td align="center">
<strong><font color="#FF0000">整体说明</font> </strong>
</td>
<td>
<table width="100%">
<tr>
<td>
<strong>总标题:</strong>
</td>
<td>
<input type="text" size="55" name="GROUP_CAPTION"
class="enlarge" />
</td>
</tr>
<tr>
<td>
<strong>总说明:</strong>
</td>
<td>
<textarea cols="60" rows="10" name="GROUP_CONTENT"></textarea>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<strong><font size="3" color="red">您要求同时<br>
上传4张图片</font> </strong>
</td>
<td>
<table width="100%">
<tr>
<td width="14%">
<img name="preview" id="image" src="./img/NoPicture.jpg"
height="170" width=170 />
<br />
</td>
<td width="86%">
[+
<a href="javascript:addNew();">添加图片</a>]
<br />
<ul id="picList"></ul>
</td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
<tr id="wait" align="center" style="display: none">
<td colspan="2">
<img width=80 src="./img/process_animation.gif">
请稍等......
</td>
</tr>
<tr>
<td colspan="2" align="center" nowrap>
<div style=""
position:absolute;
width: 100%;
top: 0px;
left: 0px;
background: #CAD1CB;
filter:
Alpha(opacity=80); display: none;"
id="div_all">
<!-- div style="
position: absolute;
width: 100%;
top: 0px;
left: 0px;
background: #cccccc;
filter: Alpha(opacity=80);
display: none;"
id="div_all" -->
<div
style="position: absolute; border: 1px solid background; background: #999999;"
id="div_top_all">
</div>
<div
style="position: absolute; width: 300px; background: #003366; padding: 1px; display: none;"
id="div_top">
<div
style="width: 100%; height: 100%; border: 1px solid #ffffff; font-size: 12px; font-family: verdane; color: #ffffff; line-height: 180%; text-align: center;">
<div
style="width: 100%; border: 1px solid #003366; background: background; cursor: default; line-height: 200%;"
οnmοusedοwn="movediv('div_top_all','div_top');">
<div style="width: 90%; float: left; text-align: left;">
<center>
<b>填写照片信息</b>
</center>
</div>
<div style="width: 10%; float: left; text-align: right">
<span onMouseOver="this.style.color='red'"
οnmοuseοut="this.style.color='#ffffff'"
οnclick="hidediv('div_all')"> × </span>
</div>
</div>
<div
style="width: 100%; height: 90px; margin: 0 1 1 1; background: #f1f1f1; color: background; padding: 10px; text-align: left;">
<table width="100%">
<tr>
<td>
作 者:
</td>
<td>
<input type="text" name="ShootPerson" />
</tr>
<tr>
<td>
国 家:
</td>
<td>
<select name="CountrySelect">
<option value="中国">
中国
</option>
<option value="美国">
美国
</option>
<option value="俄罗斯">
俄罗斯
</option>
<option value="英国">
英国
</option>
<option value="法国">
法国
</option>
<option value="德国">
德国
</option>
<option value="日本">
日本
</option>
</select>
<input type="hidden" name="Caption">
</tr>
<tr>
<td>
地 点:
</td>
<td>
<input type="text" name="ShootPlace">
</td>
</tr>
<tr>
<td>
日 期:
</td>
<td>
<select name='ShootYear' title='请填入年份'>
<option value='2008'>
2008
</option>
<option value='2007'>
2007
</option>
<option value='2006'>
2006
</option>
<option value='2005'>
2005
</option>
<option value='2004'>
2004
</option>
<option value='2003'>
2003
</option>
<option value='2002'>
2002
</option>
<option value='2001'>
2001
</option>
<option value='2000'>
2000
</option>
<option value='1999'>
1999
</option>
<option value='1998'>
1998
</option>
<option value='1997'>
1997
</option>
<option value='1996'>
1996
</option>
<option value='1995'>
1995
</option>
<option value='1994'>
1994
</option>
<option value='1993'>
1993
</option>
<option value='1992'>
1992
</option>
<option value='1991'>
1991
</option>
<option value='1990'>
1990
</option>
<option value='1989'>
1989
</option>
<option value='1988'>
1988
</option>
<option value='1987'>
1987
</option>
<option value='1986'>
1986
</option>
<option value='1985'>
1985
</option>
<option value='1984'>
1984
</option>
<option value='1983'>
1983
</option>
<option value='1982'>
1982
</option>
<option value='1981'>
1981
</option>
<option value='1980'>
1980
</option>
<option value='1979'>
1979
</option>
<option value='1978'>
1978
</option>
<option value='1977'>
1977
</option>
<option value='1976'>
1976
</option>
<option value='1975'>
1975
</option>
<option value='1974'>
1974
</option>
<option value='1973'>
1973
</option>
<option value='1972'>
1972
</option>
<option value='1971'>
1971
</option>
<option value='1970'>
1970
</option>
<option value='1969'>
1969
</option>
<option value='1968'>
1968
</option>
<option value='1967'>
1967
</option>
<option value='1966'>
1966
</option>
<option value='1965'>
1965
</option>
<option value='1964'>
1964
</option>
<option value='1963'>
1963
</option>
<option value='1962'>
1962
</option>
<option value='1961'>
1961
</option>
<option value='1960'>
1960
</option>
<option value='1959'>
1959
</option>
</select>
年
<select name='ShootMonth' title='请选择月份'>
<option value='1'>
1
</option>
<option value='2'>
2
</option>
<option value='3'>
3
</option>
<option value='4'>
4
</option>
<option value='5'>
5
</option>
<option value='6'>
6
</option>
<option value='7'>
7
</option>
<option value='8'>
8
</option>
<option value='9'>
9
</option>
<option value='10' selected>
10
</option>
<option value='11'>
11
</option>
<option value='12'>
12
</option>
</select>
月
<select name='ShootDay' title='请选择日期'>
<option value=""></option>
<option value="1">
1
</option>
<option value="2">
2
</option>
<option value="3">
3
</option>
<option value="4">
4
</option>
<option value="5">
5
</option>
<option value="6">
6
</option>
<option value="7">
7
</option>
<option value="8">
8
</option>
<option value="9">
9
</option>
<option value="10">
10
</option>
<option value="11">
11
</option>
<option value="12">
12
</option>
<option value="13">
13
</option>
<option value="14">
14
</option>
<option value="15">
15
</option>
<option value="16">
16
</option>
<option value="17">
17
</option>
<option value="18">
18
</option>
<option value="19">
19
</option>
<option value="20">
20
</option>
<option value="21">
21
</option>
<option value="22">
22
</option>
<option value="23">
23
</option>
<option value="24">
24
</option>
<option value="25">
25
</option>
<option value="26">
26
</option>
<option value="27">
27
</option>
<option value="28">
28
</option>
<option value="29">
29
</option>
<option value="30">
30
</option>
<option value="31">
31
</option>
</select>
日
<input type="hidden" name="ShootDate" />
</td>
</tr>
<script>
var newOption = new Option('中东','中东');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿富汗[AFG]','阿富汗[AFG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿拉伯联合酋长国[ARE]','阿拉伯联合酋长国[ARE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿曼[OMN]','阿曼[OMN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿塞拜疆[AZE]','阿塞拜疆[AZE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴基斯坦[PAK]','巴基斯坦[PAK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴勒斯坦[PSE]','巴勒斯坦[PSE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴林[BHR]','巴林[BHR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('不丹[BTN]','不丹[BTN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('朝鲜[PRK]','朝鲜[PRK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('东帝汶[TMP]','东帝汶[TMP]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('菲律宾[PHL]','菲律宾[PHL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('格鲁吉亚[GEO]','格鲁吉亚[GEO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('哈萨克斯坦[KAZ]','哈萨克斯坦[KAZ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('韩国[ROK]','韩国[ROK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('吉尔吉斯斯坦[KGZ]','吉尔吉斯斯坦[KGZ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('柬埔寨[KHM]','柬埔寨[KHM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('卡塔尔[QAT]','卡塔尔[QAT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('科威特[KWT]','科威特[KWT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('老挝[LAO]','老挝[LAO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('黎巴嫩[LBN]','黎巴嫩[LBN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马尔代夫[MDV]','马尔代夫[MDV]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马来西亚[MYS]','马来西亚[MYS]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('蒙古[MNG]','蒙古[MNG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('孟加拉国[BGD]','孟加拉国[BGD]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('缅甸[BUR]','缅甸[BUR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('尼泊尔[NPL]','尼泊尔[NPL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('塞浦路斯[CYP]','塞浦路斯[CYP]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('沙特阿拉伯[SAU]','沙特阿拉伯[SAU]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('斯里兰卡[LKA]','斯里兰卡[LKA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('塔吉克斯坦[TJK]','塔吉克斯坦[TJK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('泰国[THA]','泰国[THA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('土耳其[TUR]','土耳其[TUR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('土库曼斯坦[TKM]','土库曼斯坦[TKM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('文莱[BRN]','文莱[BRN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('乌兹别克斯坦[UZB]','乌兹别克斯坦[UZB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('新加坡[SGP]','新加坡[SGP]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('叙利亚[SYR]','叙利亚[SYR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('亚美尼亚[ARM]','亚美尼亚[ARM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('也门[YEM]','也门[YEM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('伊拉克[IRQ]','伊拉克[IRQ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('伊朗[IRN]','伊朗[IRN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('以色列[ISR]','以色列[ISR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('印度[IND]','印度[IND]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('印度尼西亚[IDN]','印度尼西亚[IDN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('约旦[JOR]','约旦[JOR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('越南[VNM]','越南[VNM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('其它国家地区','其它国家地区');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('北加里曼丹','北加里曼丹');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('锡金[SIK]','锡金[SIK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('锡兰','锡兰');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('拉美总类','拉美总类');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿根廷[ARG]','阿根廷[ARG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿鲁巴','阿鲁巴');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('安圭拉','安圭拉');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('安提瓜和巴布达[ATG]','安提瓜和巴布达[ATG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴巴多斯[BRB]','巴巴多斯[BRB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴哈马[BHS]','巴哈马[BHS]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴拉圭[PRY]','巴拉圭[PRY]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴拿马[PAN]','巴拿马[PAN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴西[BRA]','巴西[BRA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('百慕大[BMU]','百慕大[BMU]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('秘鲁[PER]','秘鲁[PER]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('波多黎各[PRI]','波多黎各[PRI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('玻利维亚[BOL]','玻利维亚[BOL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('伯利兹[BLZ]','伯利兹[BLZ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('多米尼加[DOM]','多米尼加[DOM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('多米尼克国[DMA]','多米尼克国[DMA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('厄瓜多尔[ECU]','厄瓜多尔[ECU]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('法属圭亚那[GUF]','法属圭亚那[GUF]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('哥伦比亚[COL]','哥伦比亚[COL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('哥斯达黎加[CRI]','哥斯达黎加[CRI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('格林纳达[GRD]','格林纳达[GRD]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('格陵兰[GRL]','格陵兰[GRL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('古巴[CUB]','古巴[CUB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('瓜德罗普岛[GLP]','瓜德罗普岛[GLP]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圭亚那[GUY]','圭亚那[GUY]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('海地[HTI]','海地[HTI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('荷属安的列斯[ANT]','荷属安的列斯[ANT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('洪都拉斯[HND]','洪都拉斯[HND]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('加拿大[CAN]','加拿大[CAN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('开曼群岛','开曼群岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马尔维纳斯群岛[FLK]','马尔维纳斯群岛[FLK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马提尼克岛[MTQ]','马提尼克岛[MTQ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('美属维尔京群岛[VIR]','美属维尔京群岛[VIR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('蒙特塞拉特[MSR]','蒙特塞拉特[MSR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('墨西哥[MEX]','墨西哥[MEX]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('南乔治亚和南桑德韦奇群岛','南乔治亚和南桑德韦奇群岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('尼加拉瓜[NIC]','尼加拉瓜[NIC]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('萨尔瓦多[SLV]','萨尔瓦多[SLV]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣基茨和尼维斯联邦[KNA]','圣基茨和尼维斯联邦[KNA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣卢西亚[LCA]','圣卢西亚[LCA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣皮埃尔和密克隆群岛[SPM]','圣皮埃尔和密克隆群岛[SPM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣文森特和格林纳丁斯[VCT]','圣文森特和格林纳丁斯[VCT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('苏里南[SUR]','苏里南[SUR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('特克斯和凯科斯群岛[TCA]','特克斯和凯科斯群岛[TCA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('特立尼达和多巴哥[TTO]','特立尼达和多巴哥[TTO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('危地马拉[GTM]','危地马拉[GTM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('委内瑞拉[VEN]','委内瑞拉[VEN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('乌拉圭[URY]','乌拉圭[URY]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('牙买加[JAM]','牙买加[JAM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('英属维尔京群岛[VGB]','英属维尔京群岛[VGB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('智利[CHL]','智利[CHL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('其它','其它');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿尔及利亚[DZA]','阿尔及利亚[DZA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('埃及[EGY]','埃及[EGY]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('埃塞俄比亚[ETH]','埃塞俄比亚[ETH]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('安哥拉[AGO]','安哥拉[AGO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('贝宁[BEN]','贝宁[BEN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('博茨瓦纳[BWA]','博茨瓦纳[BWA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('布基纳法索[BFA]','布基纳法索[BFA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('布隆迪[BDI]','布隆迪[BDI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('赤道几内亚[GNQ]','赤道几内亚[GNQ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('多哥[TGO]','多哥[TGO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('厄立特里亚[ERI]','厄立特里亚[ERI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('法属南部领地','法属南部领地');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('佛得角[CPV]','佛得角[CPV]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('冈比亚[GMB]','冈比亚[GMB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('刚果(布)[COG]','刚果(布)[COG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('刚果(金)(原扎伊尔)[COG]','刚果(金)(原扎伊尔)[COG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('吉布提共和国[DJI]','吉布提共和国[DJI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('几内亚[GIN]','几内亚[GIN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('几内亚比绍[GNB]','几内亚比绍[GNB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('加纳[GHA]','加纳[GHA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('加蓬[GAB]','加蓬[GAB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('津巴布韦[ZWE]','津巴布韦[ZWE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('喀麦隆[CMR]','喀麦隆[CMR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('科摩罗[COM]','科摩罗[COM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('科特迪瓦[CIV]','科特迪瓦[CIV]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('肯尼亚[KEN]','肯尼亚[KEN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('莱索托[LSO]','莱索托[LSO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('利比里亚[LBR]','利比里亚[LBR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('利比亚[LBY]','利比亚[LBY]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('留尼汪[REU]','留尼汪[REU]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('卢旺达[RWA]','卢旺达[RWA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马达加斯加[MDG]','马达加斯加[MDG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马拉维[MWI]','马拉维[MWI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马里[MLI]','马里[MLI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('毛里求斯[MUS]','毛里求斯[MUS]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('毛里塔尼亚[MRT]','毛里塔尼亚[MRT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('摩洛哥[MAR]','摩洛哥[MAR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('莫桑比克[MOZ]','莫桑比克[MOZ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('纳米比亚[NAM]','纳米比亚[NAM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('南非[ZAF]','南非[ZAF]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('尼日尔[NER]','尼日尔[NER]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('尼日利亚[NGA]','尼日利亚[NGA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('塞拉利昂[SLE]','塞拉利昂[SLE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('塞内加尔[SEN]','塞内加尔[SEN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('塞舌尔[SYC]','塞舌尔[SYC]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣多美和普林西比[STP]','圣多美和普林西比[STP]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣赫勒拿[SHN]','圣赫勒拿[SHN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('斯威士兰[SWZ]','斯威士兰[SWZ]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('苏丹[SDN]','苏丹[SDN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('索马里[SOM]','索马里[SOM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('坦桑尼亚[TZA]','坦桑尼亚[TZA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('突尼斯[TUN]','突尼斯[TUN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('乌干达[UGA]','乌干达[UGA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('西撒哈拉[ESH]','西撒哈拉[ESH]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('英属印度洋领地','英属印度洋领地');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('赞比亚[ZMB]','赞比亚[ZMB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('乍得[TCD]','乍得[TCD]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('中非[CAF]','中非[CAF]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('桑给巴尔','桑给巴尔');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿拉伯联合共和国(阿联)','阿拉伯联合共和国(阿联)');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('其它','其它');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('坦噶尼喀','坦噶尼喀');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('达荷美','达荷美');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('上沃尔特共和国','上沃尔特共和国');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('澳大利亚[AUS]','澳大利亚[AUS]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('巴布亚新几内亚[PNG]','巴布亚新几内亚[PNG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('北马里亚纳群岛','北马里亚纳群岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('法属波利尼西亚[PLN]','法属波利尼西亚[PLN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('斐济[FJI]','斐济[FJI]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('关岛[GUM]','关岛[GUM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('赫德岛和麦克唐纳群岛','赫德岛和麦克唐纳群岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('基里巴斯[KIR]','基里巴斯[KIR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('科科斯(基林)群岛','科科斯(基林)群岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('库克群岛[COK]','库克群岛[COK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马绍尔群岛[MHL]','马绍尔群岛[MHL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('美属萨摩亚[ASM]','美属萨摩亚[ASM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('密克罗尼西亚[FSM]','密克罗尼西亚[FSM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('瑙鲁[NRU]','瑙鲁[NRU]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('纽埃[NIU]','纽埃[NIU]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('诺福克岛[NFK]','诺福克岛[NFK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('帕劳[PLW]','帕劳[PLW]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('皮特凯恩群岛[PCN]','皮特凯恩群岛[PCN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('萨摩亚[WSM]','萨摩亚[WSM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣诞岛','圣诞岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('所罗门群岛[SLB]','所罗门群岛[SLB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('汤加[TON]','汤加[TON]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('图瓦卢[TUV]','图瓦卢[TUV]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('托克劳','托克劳');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('瓦利斯和富图纳[WLF]','瓦利斯和富图纳[WLF]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('瓦努阿图[VUT]','瓦努阿图[VUT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('新喀里多尼亚[NCL]','新喀里多尼亚[NCL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('新西兰[NZL]','新西兰[NZL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('其它','其它');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('豪兰和贝克群岛','豪兰和贝克群岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('贾维斯岛','贾维斯岛');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('威克岛[WAK]','威克岛[WAK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('约翰斯顿岛[JTN]','约翰斯顿岛[JTN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('中途岛[MID]','中途岛[MID]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('南极洲[ATA]','南极洲[ATA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('北极地区','北极地区');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('其它','其它');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('阿尔巴尼亚[ALB]','阿尔巴尼亚[ALB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('爱尔兰[IRL]','爱尔兰[IRL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('爱沙尼亚[EST]','爱沙尼亚[EST]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('安道尔[AND]','安道尔[AND]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('奥地利[AUT]','奥地利[AUT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('白俄罗斯[BYS]','白俄罗斯[BYS]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('保加利亚[BGR]','保加利亚[BGR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('比利时[BEL]','比利时[BEL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('冰岛[ISL]','冰岛[ISL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('波兰[POL]','波兰[POL]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('波斯尼亚和黑塞哥维那[BHE]','波斯尼亚和黑塞哥维那[BHE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('丹麦[DNK]','丹麦[DNK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('法罗群岛[FRO]','法罗群岛[FRO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('梵蒂冈[VAT]','梵蒂冈[VAT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('芬兰[FIN]','芬兰[FIN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('荷兰[NLD]','荷兰[NLD]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('捷克[CZE]','捷克[CZE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('克罗地亚[HRV]','克罗地亚[HRV]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('拉脱维亚[LVA]','拉脱维亚[LVA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('立陶宛[LTU]','立陶宛[LTU]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('列支敦士登[LIE]','列支敦士登[LIE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('卢森堡[LUX]','卢森堡[LUX]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('罗马尼亚[ROM]','罗马尼亚[ROM]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马耳他[MLT]','马耳他[MLT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('马其顿[MKD]','马其顿[MKD]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('摩尔多瓦[MDA]','摩尔多瓦[MDA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('摩纳哥[MCO]','摩纳哥[MCO]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('挪威[NOR]','挪威[NOR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('葡萄牙[PRT]','葡萄牙[PRT]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('瑞典[SWE]','瑞典[SWE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('瑞士[CHE]','瑞士[CHE]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('塞尔维亚和黑山(南斯拉夫)[YUG]','塞尔维亚和黑山(南斯拉夫)[YUG]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('塞尔维亚共和国[YUG1]','塞尔维亚共和国[YUG1]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('黑山共和国[YUG2]','黑山共和国[YUG2]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('圣马力诺[SMR]','圣马力诺[SMR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('斯洛伐克[SVK]','斯洛伐克[SVK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('斯洛文尼亚[SVN]','斯洛文尼亚[SVN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('乌克兰[UKR]','乌克兰[UKR]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('西班牙[ESP]','西班牙[ESP]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('希腊[GRC]','希腊[GRC]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('匈牙利[HUN]','匈牙利[HUN]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('意大利[ITA]','意大利[ITA]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('直布罗陀[GIB]','直布罗陀[GIB]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('其它','其它');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('捷克斯洛伐克社会主义共和国[CSK]','捷克斯洛伐克社会主义共和国[CSK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
var newOption = new Option('捷克和斯洛伐克联邦共和国[CSK]','捷克和斯洛伐克联邦共和国[CSK]');
var country = document.uploadForm.CountrySelect;
country.options[country.options.length]=newOption;
</script>
<tr>
<td>
分说明:
</td>
<td>
<textarea cols="30" rows="6" name="PicContent"></textarea>
</td>
</tr>
</table>
<center>
<button
style="background: background; color: #ffffff; border: 0px; height: 25px; width: 60px; margin-top: 10px; padding: 1px;"
οnclick="onSave();hidediv('div_all');">
<span
style="width: 100%; height: 15px; font-size: 12px; border: 1px solid #ffffff; cursor: default;">
保 存 </span>
</button>
</center>
</div>
</div>
</div>
</div>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<p>
<input type="button" onClick="onSubmit()" value="提交全部"
name="subAll" disabled="true">
<input value="放弃退出" type="button" name="cancle"
onClick="window.close();">
</p>
<p>
</p>
<p>
</p>
</td>
</tr>
</table>
</TD>
<TD background=images/wf013.gif>
</TD>
</TR>
<TR>
<TD width=15 height=15>
<IMG height=15 src="images/wf009.gif" width=15 border=0>
</TD>
<TD background=images/wf014.gif></TD>
<TD width=15 height=15>
<IMG height=15 src="images/wf010.gif" width=15 border=0>
</TD>
</TR>
</TBODY>
</TABLE>
</center>
<input type="hidden" name="isSubmit" value="1">
<input type="hidden" name="sTime" value="">
<input type="hidden" name="ftpPath" value="">
<input type="hidden" name="UserName" value="路璐">
<input type="hidden" name="SHOOTER_CODE" value="ll" />
</form>
<script>
document.uploadForm.ShootYear.value=currYear;
function onSelectFile(i)
{
if(i>1)
{
if(submitSet[i-2]==0)
{
return false;
}
}
return true;
}
function load(str,e,i,inf)
{
//alert('load的参数'+' str的值:='+str+' e得值:='+e+' i的值:='+i+' inf的值:='+inf);
currentID = i;
if(currentImg!=null)
{
currentImg.border=0;
}
currentImg = e;
e.border =2;
if(currentImg==null)
{
alert("请先选定上传的图像预览!");
}
currentImg.src = str;
//alert('现在请在下面填写第'+i+'副图片的信息,然后点击提交!');
}
function doInitSelection(e, strValue)
{
if ((e == null) || (strValue==""))
return;
for (var i = 0; i < e.options.length; i++)
{
if (e.options[i].value == strValue)
{
e.selectedIndex = i;
break;
}
}
}
function leaveImg(e)
{
e.border = 0;
}
var year = '2008';
var month = '10';
var datePath=""+year+"/"+month+"/";
var DirPath = 'NWKPHMALL_BFILE';
var UserName = '路璐';
var SHOOTER_CODE = 'll';
function onSubmit()
{
//alert('aa');
if(document.getElementById("image").src==null||document.getElementById("image").src=="")
{
alert('请上传上一张图片');
return;
}
if((document.uploadForm.ShootPerson.value==null||trim(document.uploadForm.ShootPerson.value)=="")&&(imgValue!=1))
{
alert(document.uploadForm.ShootPerson.value);
alert("请填写上一张作者!!!");
return;
}
if((document.uploadForm.ShootPlace.value==null||trim(document.uploadForm.ShootPlace.value)=="")&&(imgValue!=1))
{
alert("请填写上一张地点!!!");
return;
}
if((document.uploadForm.PicContent.value==null||trim(document.uploadForm.PicContent.value)=="")&&(imgValue!=1))
{
alert("请填写上一张分说明!!!");
return ;
}
if((document.uploadForm.ShootYear.value==null||trim(document.uploadForm.ShootYear.value)=="")&&(imgValue!=1))
{
alert("请填写上一张拍摄年份!!!");
return ;
}
document.getElementById("image").src = currObj.childNodes[1].value;
document.uploadForm.ShootPerson.value=currObj.info.ShootPerson;
document.uploadForm.Caption.value=currObj.info.Caption;
document.uploadForm.ShootPlace.value = currObj.info.ShootPlace;
document.uploadForm.ShootDate.value = currObj.info.ShootDate;
document.uploadForm.PicContent.value = currObj.info.PicContent;
var url1='http://10.103.2.14:7784/phmall/servlet/com.founder.photo.servlet.PhUploadNoE5New?DocLibID=6&FolderID=6&CurrentFlow=6&CurrentNode=23&datePath='+datePath+'&DirPath='+DirPath+'&DrawType=jdk&SHOOTER_CODE='+SHOOTER_CODE+'&UserName=%E8%B7%AF%E7%92%90';
document.uploadForm.subAll.disabled=true;
document.uploadForm.cancle.disabled=true;
//document.uploadForm.onsave.disabled=true;
document.uploadForm.target="iFrame";
document.uploadForm.action=url1;
document.uploadForm.submit();
document.all('wait').style.display='block';
}
function doCalendar(flag)
{
show_calendar('ShootDate', 'arrowShootDate');
}
function doRightCalendar(flag)
{
document.all("ShootDate").value = "";
}
function ensureSub()
{
//alert('进入保存方法')
/*
if(inFile[currentID-1].value=="" || inFile[currentID-1].value=="")
{
alert("您还没选定当前的图片呢!");
return;
}
*/
//files[currentID-1]=document.uploadForm.Upload.value;
captions[currentID-1]=document.uploadForm.Caption.value;
shootCountries[currentID-1]=document.uploadForm.CountrySelect.value;
shootPlaces[currentID-1]=document.uploadForm.ShootPlace.value;
shootPersons[currentID-1]=document.uploadForm.ShootPerson.value;
shootDates[currentID-1]=document.uploadForm.ShootDate.value;
shootContents[currentID-1]=document.uploadForm.PicContent.value;
submitSet[currentID-1]=1;
var isSubable=true;
if(isSubable){
document.uploadForm.subAll.disabled=false;
}
}
//div+css弹出窗口
function movediv(obj,obj1){
var _so = document.getElementById(obj1);
var _sm = document.getElementById(obj);
_sm.style.background = "";
var _sx = event.x;
var _sy = event.y;
document.onmousemove = function(){
_sm.style.top = parseInt(_sm.style.top) + (event.y - _sy) + "px";
_sm.style.left = parseInt(_sm.style.left) + (event.x - _sx) + "px";
_sx = event.x;
_sy = event.y;
}
document.onmouseup = function(){
this.onmousemove = null;
_sm.style.background = "#999999";
_so.style.top = parseInt(_sm.style.top) - 5 + "px";
_so.style.left = parseInt(_sm.style.left) - 4 + "px";
}
}
function hidediv(obj){
document.getElementById(obj).style.display = "none";
}
function showdiv(obj,obj1,obj2){
document.body.scrollTop = "0px";
var _so = document.getElementById(obj);
var _sm = document.getElementById(obj1);
var _sh = document.getElementById(obj2);
_sh.style.width = "0px";
_sh.style.height = "0px";
_sm.style.display = "none";
_so.style.display = "";
_so.style.height = document.body.scrollHeight + "px";
_sm.style.top = (document.body.clientHeight - 200) / 2 + "px";
_sm.style.left = (document.body.clientWidth - 300) / 2 + "px";
_sh.style.top = parseInt(_sm.style.top) + 5 + "px";
_sh.style.left = parseInt(_sm.style.left) + 4 + "px";
function reSizeObj(){
var w = parseInt(_sh.style.width);
var h = parseInt(_sh.style.height);
var W = parseInt(_sm.style.width);
var H = 127;
w += Math.ceil((W - w) / 2);
h += Math.ceil((H - h) / 2);
if(w > W){
w = W;
}
if(h > H){
h = H;
}
_sh.style.width = w + "px";
_sh.style.height = h + "px";
if(w != W){
setTimeout(reSizeObj, 10);
}
else{
_sm.style.display = "";
}
}
_so.oncontextmenu = function(){
window.event.returnValue = false;
}
_so.onselectstart = function(){
window.event.returnValue = false;
}
reSizeObj();
}
//王元的方法
var currObj ;
function Info(ShootPerson,CountrySelect,ShootPlace,ShootDate,PicContent)
{
this.ShootPerson = ShootPerson; //作者
this.CountrySelect = CountrySelect; //国家
this.ShootPlace = ShootPlace; //地点
this.ShootYear = ShootDate; //年月
this.PicContent = PicContent; //分说明
}
var imgValue= 0;
function addNew()
{
//currObj = this.parentNode;
imgValue++;
if(document.getElementById("image").src==null||document.getElementById("image").src=="")
{
alert('请上传上一张图片');
return;
}
if((document.uploadForm.ShootPerson.value==null||trim(document.uploadForm.ShootPerson.value)=="")&&(imgValue!=1))
{
alert("请填写上一张作者!!!");
return;
}
if((document.uploadForm.ShootPlace.value==null||trim(document.uploadForm.ShootPlace.value)=="")&&(imgValue!=1))
{
alert("请填写上一张地点!!!");
return;
}
if((document.uploadForm.PicContent.value==null||trim(document.uploadForm.PicContent.value)=="")&&(imgValue!=1))
{
alert("请填写上一张分说明!!!");
return ;
}
if((document.uploadForm.ShootYear.value==null||trim(document.uploadForm.ShootYear.value)=="")&&(imgValue!=1))
{
alert("请填写上一张拍摄年份!!!");
return ;
}
var newInfo = new Info('','','','','');
var ul = document.getElementById("picList");
var nli = document.createElement("li");
nli.info = newInfo;
var btnView = document.createElement("input");
btnView.id = 'radId';
btnView.name='radName';
btnView.type='radio';
btnView.οnclick=function onView()
{
//alert(document.getElementById("image").src);
document.getElementById("image").src = this.parentNode.childNodes[1].value;
}
nli.appendChild(btnView);
//var okRadio=document.createElement("<input type='radio' name='radName' οnclick=/"aa(this.parentNode);>");
//nli.appendChild(okRadio);
var file = document.createElement("input");
file.type='file';
file.name = 'file';
file.οnchange=function onView1()
{
document.getElementById("image").src = this.parentNode.childNodes[1].value;
viewInfo(this)
showdiv('div_all' , 'div_top' ,'div_top_all');
}
nli.appendChild(file);
var modifyInfo=document.createElement("<input type='button' value='修改信息' name='Button' οnclick=/"viewInfo(this);showdiv('div_all' , 'div_top' ,'div_top_all');>");
nli.appendChild(modifyInfo);
var btnDel = document.createElement("input");
btnDel.value='删除';
btnDel.type='button';
btnDel.οnclick=function onDel( )
{
var ul = document.getElementById("picList");
ul.removeChild(this.parentNode);
}
nli.appendChild(btnDel);
ul.appendChild(nli);
currObj = nli;
}
function aa(e)
{
alert(document.getElementById("image").src);
document.getElementById("image").src = e.childNodes[1].value;
}
function onSave()
{
currObj.info.Caption=document.uploadForm.Caption.value;
currObj.info.CountrySelec=document.uploadForm.CountrySelect.value;
currObj.info.ShootPlace=document.uploadForm.ShootPlace.value;
currObj.info.ShootPerson=document.uploadForm.ShootPerson.value;
currObj.info.ShootDate=document.uploadForm.ShootDate.value;
currObj.info.PicContent=document.uploadForm.PicContent.value;
/*
if(inFile[currentID-1].value=="" || inFile[currentID-1].value=="")
{
alert("您还没选定当前的图片呢!");
return;
}
*/
if(document.getElementById("image").src==null||document.getElementById("image").src=="")
{
alert('请上传图片');
return;
}
if(document.uploadForm.ShootDate.value==null||document.uploadForm.ShootDate.value=="")
{
alert("请填写拍摄日期!!!");
return;
}
if(document.uploadForm.Caption.value==null||document.uploadForm.Caption.value=="")
{
alert("请填写分标题!!!");
return false;
}
if(document.uploadForm.ShootPerson.value==null||trim(document.uploadForm.ShootPerson.value)=="")
{
alert("请填写作者!!!");
return false;
}
if(document.uploadForm.ShootPlace.value==null||trim(document.uploadForm.ShootPlace.value)=="")
{
alert("请填写地点!!!");
return false;
}
if(document.uploadForm.PicContent.value==null||trim(document.uploadForm.PicContent.value)=="")
{
alert("请填写分说明!!!");
return false;
}
if(document.uploadForm.ShootYear.value==null||trim(document.uploadForm.ShootYear.value)=="")
{
alert("请填写拍摄年份!!!");
return false;
}
else if(!isInt(trim(document.uploadForm.ShootYear.value)))
{
alert("年份请填写数字!!!");
return false;
}
else if(document.uploadForm.ShootYear.value<1900||document.uploadForm.ShootYear.value>currYear)
{
alert("请正确填写年份!!");
return false;
}
if(document.uploadForm.ShootMonth.value==null||document.uploadForm.ShootMonth.value=="")
{
alert("请填写拍摄月份!!!");
return false;
}
else if(!isInt(document.uploadForm.ShootMonth.value))
{
alert("月份请填写数字!!!");
return false;
}
else if(document.uploadForm.ShootMonth.value<1||document.uploadForm.ShootMonth.value>12)
{
alert("请正确填写月份!!");
return false;
}
if(document.uploadForm.ShootDay.value==null||document.uploadForm.ShootDay.value=="")
{
alert("请填写拍摄日期!!!");
return false;
}
else if(!isInt(document.uploadForm.ShootDay.value))
{
alert("日期请填写数字!!!");
return false;
}
else if(document.uploadForm.ShootDay.value<1||document.uploadForm.ShootDay.value>31)
{
alert("请正确填写日期!!");
return false;
}
var tmpDate1 = trim(document.uploadForm.ShootYear.value) + "-" + document.uploadForm.ShootMonth.value + "-" + document.uploadForm.ShootDay.value;
if(!isDate2(tmpDate1))
{
}
if(document.uploadForm.PicContent.value.length>200)
{
alert("分说明字数必须少于200字!");
return;
}
if(document.uploadForm.Caption.value.length>150)
{
alert("分标题字数必须少于150字!");
return;
}
var isSubable=true;
if(isSubable){
document.uploadForm.subAll.disabled=false;
}
}
function viewInfo(e)
{
currObj = e.parentNode;
document.getElementById("image").src = currObj.childNodes[1].value;
document.uploadForm.ShootPerson.value=currObj.info.ShootPerson;
document.uploadForm.Caption.value=currObj.info.Caption;
document.uploadForm.ShootPlace.value = currObj.info.ShootPlace;
document.uploadForm.ShootDate.value = currObj.info.ShootDate;
document.uploadForm.PicContent.value = currObj.info.PicContent;
}
</script>
</body>
</html>