// JavaScript Document
function sub1()
{
// 用Form名称直接引用form对象
//form1.method = "get";
// 将form名称作为document对象的属性来引用form对象,
// 并用user作为form对象的属性来引用名为user的文本框元素对象
// document.form1.user.value = "lisi";
var s1=document.getElementById("s1");
var s2=document.getElementById("s2");
var s3=document.getElementById("s3");
var s4=document.getElementById("s4");
var s5=document.getElementById("s5");
s1.innerText= document.getElementById("text1").value;
var obj = document.getElementsByName("radio");
for(var i = 0; i < obj.length; i++)
{
if(obj[i].checked)
{
s2.innerText =obj[i].value;
}
}
var obj1 = document.getElementsByName("fuxuan");
for(var i = 0; i < obj1.length; i++)
{
if(obj1[i].checked)
{
s3.innerText+=obj1[i].value+' ';
}
}
s4.src=document.getElementById("photoFile1").value;
s5.innerText=document.getElementById("ta1").value;
}