All Things Considered, NPR January 18, 2005 ·
China is attempting to suppress any mention of former Chinese Premier
Zhao Ziyang on the Internet. Zhao, who died over the weekend, was
toppled as China’s leader after he opposed a military crackdown on
pro-democracy demonstrators in Tiananmen Square in 1989. Robert Siegel
talks with Xiao Qiang, director of the Berkeley China Internet Project
at the University of California on the hidden and metaphoric discussion and internet blocking and who is Zhao in terms of current political situation.
http://www.npr.org/include/javascript/peekaboo.js
/**
* echeck function modified from DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
*/
function echeck(str) {
var at=”@”
var dot=”.”
var lat=str.indexOf(at)
var lstr=str.length
var ldot=str.indexOf(dot)
if (str.indexOf(at)==-1){
alert(“Please check the the format of the email addresses you entered.”)
return false
}
if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
alert(“Please check the the format of the email addresses you entered.”)
return false
}
if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
alert(“Please check the the format of the email addresses you entered.”)
return false
}
//if (str.indexOf(at,(lat+1))!=-1){
// alert(“Please check the the format of the email addresses you entered.”)
// return false
//}
if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
alert(“Please check the the format of the email addresses you entered.”)
return false
}
//if (str.indexOf(dot,(lat+2))==-1){
// alert(“Please check the the format of the email addresses you entered.”)
// return false
//}
if ((str.indexOf(” “)!=-1) && (str.indexOf(” “)!=str.length-1)){ //altered by eme — a space at the end should be ok
alert(“Please check the the format of the email addresses you entered.”)
return false
}
return true
}
function deleteSpaces(textStr)
{
// replace any spaces/linebreak characters w/ nothing
//var textStrSave = textStr.value.replace(/[\t\n\r\f\v ]+/g, “”);
var textStrSave = textStr.value.replace(/[\s]+/g, “”);
textStr.value= textStrSave;
}
function formSubmit() {
if (checkStation()==0) {
docUrl = document.URL;
document.frmSendToFriend.title.value=document.title;
poundFind = docUrl.indexOf(“#”);
if (poundFind>-1)
{
docUrl = docUrl.substring(0, poundFind);
}
if (docUrl.substring(0, 14)==”http://npr.org”)
{
docUrl = “http://www.npr.org” + docUrl.substring(14, docUrl.length);
}
document.frmSendToFriend.pageUrl.value= docUrl;
from=document.frmSendToFriend.from.value;
to=document.frmSendToFriend.recipient.value;
if ((to==null)||(to==””) || (from==null)||(from==””)){
alert(“Please enter information into the email address fields.”);
document.frmSendToFriend.recipient.focus();
return false;
} else if ((echeck(from)==false) || (echeck(to)==false)){
return false
} else {
document.frmSendToFriend.submit();
}
}
}
function checkStation() {
//alert(“hi”);
//alert(“|”+document.frmSendToFriend.callletters.value+”|”);
if ( ((document.frmSendToFriend.callletters.value== “Enter Call Letters”) || (document.frmSendToFriend.callletters.value== “”)) && (document.frmSendToFriend.localcontact[0].checked == true)) {
alert (“Please enter the call letters of your local NPR member station if you would like to receive information from them.”);
return 1;
} else {
return 0;
}
}