reducing 0_inbox

This commit is contained in:
2026-03-20 14:05:02 -04:00
parent c5c23e89d1
commit 7fc52af0ec
2332 changed files with 8606 additions and 4830456 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1 +0,0 @@
rtsp://rmv8.bbc.net.uk/news/media/avdb/news/video/75000/nb/75511_16x9_nb.rm?title="BBC"&author="BBC"&copyright="(C) British Broadcasting Corporation"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 456 KiB

View File

@@ -1,23 +0,0 @@
As you may have heard by now, <a href="http://freealaa.blogspot.com">Egypt</a>ian Blogger Alaa Abdel Fatah <a href="http://www.sandmonkey.org/2006/05/09/2006/05/07/alaa-arrested/">has been arrested alongside 10 others while demonstrating</a> in support of the <a href="http://baheyya.blogspot.com">independence of the Judiciary</a> in <a href="http://freealaa.blogspot.com">Egypt</a> and the release of previous demonstrators who were detained 2 weeks earlier. The Police entrapped them, cordoning off their peaceful protest and then proceeded to handpick the demonstrators that they wanted to detain, beat them, and then arrested them.
<a href="http://manalaa.net">Alaa</a> and those arrested with him are now <a href="http://www.sandmonkey.org/2006/05/09/2006/05/08/the-situation-so-far/">arrested for 15 days "pending investigation"</a>, which could be renewed indefinitely if the state so wishes. He and the men were sent to the infamous Torah Prison and the girls to the Qanatir prison for the duration. This makes them hardly safe, because stuff that goes on in <a href="http://freealaa.blogspot.com">Egypt<a/>ian prisons on the hands of the jailors: beatings, sexual assaults, torture of all kinds.
Currently <a href="http://news.yahoo.com/s/ap/20060508/ap_on_re_mi_ea/egypt_arrests;_ylt=Am0Sury7yRJbdjiOgUoXzmQLewgF;_ylu=X3oDMTBjMHVqMTQ4BHNlYwN5bnN1YmNhdA--">there are about 48 detained</a>, 6 of them are bloggers, and 3 of them are women. The best known is Alaa, which makes him the posterboy of this campaign - but getting them out is equally as important. <a href="http://freealaa.blogspot.com">Egypt</a> has fewer than 830 bloggers all in all, 60 of whom are political and less than 30 are politically active. Now 6 of those are in jail - 20% of all politically active <a href="http://freealaa.blogspot.com">Egypt</a>ian bloggers - and amongst them one of <a href="http://freealaa.blogspot.com">Egypt</a>'s most highly profiled one.
This is by no means a co-incidence. Government agents handpicked people to arrest from amongst the protesters. They have been wanting to get Alaa for a long time now, precisely because he is high profile, and because he helps organizes the protests and spread the information through the blog aggregator he runs (www.manalaa.net). With Alaa gone, Aggregator could shut down without his maintenance and other bloggers could get too scared to be active and find no way to organize or reach one other. It's of vital importance that he gets released ASAP.
Alaa is a secular democracy activist, and a tireless advocate of freedom,
free speech and human rights. He organizes demonstrations and engages in protests against all kinds of injustices in <a href="http://freealaa.blogspot.com">Egypt</a> and is the winner of the international Best of the Blogs award from Reporters Without Borders last December.
Alaa was arrested while protesting to support <a href="http://freealaa.blogspot.com">Egypt</a>s Judges fight for independence. 2 weeks earlier he had organized a “National Unity” protest to show solidarity with <a href="http://freealaa.blogspot.com">Egypt</a>'s Christians who suffered a sectarian attack on 3 churches on Good Friday. Before that he was one of the few voices that urged calm and peaceful dialogue while the cartoon crisis was hitting its peak. He is a desperately needed voice of moderation and democracy in <a href="http://freealaa.blogspot.com">Egypt</a>, and one of the few flickers of hope in a country whose future seems mire between the crushing rule of the regime and the fanaticism of the Islamist opposition.
And now Alaa needs your help. We have started an e-mail campaign to the <a href="http://freealaa.blogspot.com">Egypt</a>ian embassies and the US State Department in order to push for his release, and have started <a href="http://www.sandmonkey.org/2006/05/09/2006/05/08/us-protests-to-free-alaa/">protests in front of the <a href="http://freealaa.blogspot.com">Egypt</a>ian embassy and consulates in the US</a> for his release. We will also hold <a href="http://www.manalaa.net/node/30347">protests in France, Italy and Gemany</a>. We could use your help in getting the word out and sending them an e-mail demanding his release.
Contacts of the the <a href="http://freealaa.blogspot.com">Egypt</a>ian embassy in the UK available <a href="http://egypt.embassyhomepage.com/">here</a>, and templates for e-mails to be sent to the embassies <a href="http://www.sandmonkey.org/2006/05/08/the-situation-so-far/">here</a>.
If you are a journalist or know one, help us spread the word by writing
about this or demanding your local newspaper write about this. If you
have a blog or a website and would like to raise awareness about this
issue, banners for the Free Alaa campaign can be found <a href="http://freealaa.blogspot.com">here</a>. We could use any help we can get, so if you have any ideas or ways to help us, please do.
http://img240.imageshack.us/img240/1834/3ala27ft.jpg

View File

@@ -1,7 +0,0 @@
Thomas Avenari
0106770345 (English and German)
ARD TV
Patrik Lu Claire
5749926-7-8
Zafer Kamal (Producer ARD)
012106805

View File

@@ -1,21 +0,0 @@
In a week like this exactly one year ago, I walked in a small coffee shop in Mohandesin on the Western end of Cairo. The trendy but not-too-loud place had open WiFi, which is about the only interesting thing in Cairo's trendy coffee shops. I recognised my table right away as I first saw Alaa with his hair and laptop. Naturally. This was the a time when you could put all the Egyptian bloggers in one room. Back then, at the time of that first blogger get-together (the tradition now in Egypt is to call every blogger meeting the first), we were still commenting on the news. In just a few weeks from then, we will be the news.
<a href="http://www.manalaa.net/propaganda" title="Propaganda"><img src="http://www.manalaa.net/files/image/propaganda-169.thumbnail.png" \></a>
Manal, Alaa's wife and co-keeper of their <a href="http://manalaa.net">Bit Bucket</a>, and I spent a part of the get-together preaching the gospel: trying to talk other bloggers into moving out of Blogger to the free world of Open Source platforms like <a href="drupal.org">Drupal</a> and <a href="http://wordpress.org">WordPress</a>. I wondered then how I instantly gave Alaa my Blogger password to look into the technicalities of importing blogposts from <a href="http://blogger.com">Blogger</a>--Sorry, mate. We are <a href="http://freealaa.blogspot.com" title"Free Alaa">back to Blogger</a> to try to get you out. That is how it worked!
I thought it would end there, but it turned to be one eventful year, May to May.
A few days later, on 25.05.2005, <a href="http://manalaa.net/never_forget">Alaa got beaten</a> as he was trying to protect his mother, Dr Laila Soueif from police-guided thugs as she protested a referendum on changing the Constitution. His laptop was stolen, and it's gotten him livid. We often joked after all the headache Alaa had caused to the authorities that it was their mistake. They picked on the wrong blogger. They still are, except harder this time.
<a href="http://www.manalaa.net/im_furious_yellow" title="I'm Furious Yellow"><img src="http://www.manalaa.net/files/image/dont_mess-172.thumbnail.png" \></a>
In the summer of 2005, I witnessed Manal and Alaa chnaging from techies who get activists to publish on the web and get organized using content management systems (They host and maintain websites for the <a href="http://harakamasria.org/" title="The Egyptian Movement for Change">Kifaya</a>, the <a href="http://ageg.net/">Anti-Globalization Egypt Group - AGEG</a>, the <a href="http://e-socialists.org">Socialist Studies Center</a>, other organizations, in addition to a number of Blogs. Manal and Alaa are also founding members of the <a href="http://eglug.org">Egypt Linux User Group - EGLUG</a>--into influencial bloggers. Their posts, now in Arabic as much as in English, are only beginning of discussions that would go online, but also elsewhere, and on a great variety of topics. Alaa's intelligence lies not in his theoretical, abstract thinking or fresh ideas, rather in his capacity to synthesize, to realize meanings to whatever that is happening around him. It is simple, open, and dedicated sense of community and public life; and in many an occasion, it helped keep discussions going, and also to bring ideas to the streets. I wonder if this dedication is partly because of him, at times, being unable to refrain from saying.
One week after 25 May last year, and as we were standing on the stairs of the Journalists Syndicate, Alaa and I wondered what are we doing here: protesting in place very central in Cairo, but also not close from where people live, almost as if the protest was reassuring the 2000 activists that everything is still alright, Alaa gave me an idea: This is pathetic, we could also ask Sayyida Zainab for help, couldn't we? Sayyida Zainab is the grand daughter of the prophet of Islam, her shrine lies in one of the most densely populated places in Cairo, and she is a central figure in Egyptian popular Islam: she is the Judge of all Judges, and the last resort of anyone seeking help, exactly a second Isis. And we did: the demonstration-announcement-in-a-poem and the banner I did made its way to the papers and internet radios prior to the protest, Alaa called me to tell me the Popular Campaign for Change (Freedom Now) was inspired and will join. Through <a href="">Nora Younis</a>, we were also able to talk Ayman Nour, the later presidential candidate and current political prisoner into joining. On the day of the protest, we got as many reporters as protesters, and from as far as South Korea. Egyptian intellectuals thought it was backward. Alaa's mother thought, "yes, backward, but at least they are pro change. The circle of bloggers and young activist around "Backward for Change" would keep dragging the opposition into innovative ways of protesting down to the sit-in in front of the Judges Club.
<img src="http://img481.imageshack.us/img481/8895/dsc050141oe.jpg" title="The last photo taken for Alaa on the day of his detention. The woman at the center is his mother" alt="The last photo taken for Alaa on the day of his detention. The woman at the center is his mother" \>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +0,0 @@
Twitter message from Wael Abbas at Mon 22 Nov 2010 07:16:04 GMT
باشتغل بقالي سنين أعلم الناس إزاي تشتغل ببلاش وبأقل الإمكانيات وتستخدم الخدمات المجانية علشان ييجي واحد إبن إمبارح يقوللي التمويل هو الحل
Source: https://twitter.com/waelabbas/statuses/6606825214451713

View File

@@ -1,5 +0,0 @@
Twitter message from Zeinobia at Mon 22 Nov 2010 12:05:03 GMT
RT @maikelnabil: أغبى حاجة عملتها المخابرات ، أنهم طلعونى من الجيش من غير صفقة. أية العتة دة ؟. هو مين أبن الهبلة اللى قال للمخابرات أنه ...
Source: https://twitter.com/Zeinobia/statuses/6679551706927104

View File

@@ -1,5 +0,0 @@
Twitter message from sami ben gharbia at Tue 18 Jan 2011 00:10:18 EET
As a dear friend, I ask you @slim404 don't accept to collaborate with those who killed Tunisians, stay clean stay citizen #SidiBouzid
Source: https://twitter.com/ifikra/statuses/27125586874867712

View File

@@ -1,5 +0,0 @@
Twitter message from sami ben gharbia at Tue 18 Jan 2011 23:09:30 EET
the revolution continue and down with the collaborators and so-called-"pragmatic" #sidibouzid #tunisia
Source: https://twitter.com/ifikra/statuses/27472675374895105

View File

@@ -1,5 +0,0 @@
Twitter message from sami ben gharbia at Tue 18 Jan 2011 23:15:37 EET
nobody can represent the free Tunisian bloggers & cyber-activists, we will continue the battle, we won't be silenced ! #sidibouzid #tunisia
Source: https://twitter.com/ifikra/statuses/27474214818676736

View File

@@ -1,5 +0,0 @@
Twitter message from sami ben gharbia at Wed 19 Jan 2011 11:06:04 EET
@slim404 so it's all about making a buzz around yourself? I'm very very disappointed. People died for this1st step towards change! cc @alaa
Source: https://twitter.com/ifikra/statuses/27653002525417472

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

View File

@@ -1,17 +0,0 @@
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; utf-8">
<title>Java MSX Emulator</title>
</head>
<body>
<div>
<applet code="MsxEmu" width="256" height="192">
<script type="text/javascript">
//var requested = self.location.search.substr(1);
//document.write('<param name="rom" value="' + self.location.search.substr(1) + '">');
</script>
<param name="rom" value=".rom/nemesis.rom">
</applet>
</div>
</body>
</html>

View File

@@ -1,12 +0,0 @@
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; utf-8">
<title>محاكي إم.إس.إكس على جافا</title>
</head>
<body>
<div>
<applet code="MsxEmu" width="256" height="192"><param name="rom" value="zanac.rom"></applet>
<p>انقر داخل المربع واضغط مسافة</p>
</div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 253 KiB

View File

@@ -1,293 +0,0 @@
//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated. All rights reserved.
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
function ControlVersion()
{
var version;
var axo;
var e;
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry
try {
// version will be set for 7.X or greater players
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
version = axo.GetVariable("$version");
} catch (e) {
}
if (!version)
{
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
// so we have to be careful.
// default to the first public version
version = "WIN 6,0,21,0";
// throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 4.X or 5.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = axo.GetVariable("$version");
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 3.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
version = "WIN 3,0,18,0";
} catch (e) {
}
}
if (!version)
{
try {
// version will be set for 2.X player
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
version = "WIN 2,0,0,11";
} catch (e) {
version = -1;
}
}
return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
if (versionRevision == "") {
versionRevision = descArray[4];
}
if (versionRevision[0] == "d") {
versionRevision = versionRevision.substring(1);
} else if (versionRevision[0] == "r") {
versionRevision = versionRevision.substring(1);
if (versionRevision.indexOf("d") > 0) {
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
}
}
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
}
}
// MSN/WebTV 2.6 supports Flash 4
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
// WebTV 2.5 supports Flash 3
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
}
return flashVer;
}
// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
versionStr = GetSwfVer();
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
// Given "WIN 2,0,0,11"
tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"]
tempString = tempArray[1]; // "2,0,0,11"
versionArray = tempString.split(","); // ['2', '0', '0', '11']
} else {
versionArray = versionStr.split(".");
}
var versionMajor = versionArray[0];
var versionMinor = versionArray[1];
var versionRevision = versionArray[2];
// is the major.revision >= requested major.revision AND the minor version >= requested minor
if (versionMajor > parseFloat(reqMajorVer)) {
return true;
} else if (versionMajor == parseFloat(reqMajorVer)) {
if (versionMinor > parseFloat(reqMinorVer))
return true;
else if (versionMinor == parseFloat(reqMinorVer)) {
if (versionRevision >= parseFloat(reqRevision))
return true;
}
}
return false;
}
}
function AC_AddExtension(src, ext)
{
if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?');
else
return src + ext;
}
function AC_Generateobj(objAttrs, params, embedAttrs)
{
var str = '';
if (isIE && isWin && !isOpera)
{
str += '<object ';
for (var i in objAttrs)
{
str += i + '="' + objAttrs[i] + '" ';
}
str += '>';
for (var i in params)
{
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
}
str += '</object>';
}
else
{
str += '<embed id="egypt" ';
for (var i in embedAttrs)
{
str += i + '="' + embedAttrs[i] + '" ';
}
str += '> </embed>';
}
document.write(str);
}
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblClick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
case "id":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
}
}
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
}

View File

@@ -1,536 +0,0 @@
function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {
this.eventTarget = eventTarget;
this.eventArgument = eventArgument;
this.validation = validation;
this.validationGroup = validationGroup;
this.actionUrl = actionUrl;
this.trackFocus = trackFocus;
this.clientSubmit = clientSubmit;
}
function WebForm_DoPostBackWithOptions(options) {
var validationResult = true;
if (options.validation) {
if (typeof(Page_ClientValidate) == 'function') {
validationResult = Page_ClientValidate(options.validationGroup);
}
}
if (validationResult) {
if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) {
theForm.action = options.actionUrl;
}
if (options.trackFocus) {
var lastFocus = theForm.elements["__LASTFOCUS"];
if ((typeof(lastFocus) != "undefined") && (lastFocus != null)) {
if (typeof(document.activeElement) == "undefined") {
lastFocus.value = options.eventTarget;
}
else {
var active = document.activeElement;
if ((typeof(active) != "undefined") && (active != null)) {
if ((typeof(active.id) != "undefined") && (active.id != null) && (active.id.length > 0)) {
lastFocus.value = active.id;
}
else if (typeof(active.name) != "undefined") {
lastFocus.value = active.name;
}
}
}
}
}
}
if (options.clientSubmit) {
__doPostBack(options.eventTarget, options.eventArgument);
}
}
var __pendingCallbacks = new Array();
var __synchronousCallBackIndex = -1;
function WebForm_DoCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync) {
var postData = __theFormPostData +
"__CALLBACKID=" + WebForm_EncodeCallback(eventTarget) +
"&__CALLBACKPARAM=" + WebForm_EncodeCallback(eventArgument);
if (theForm["__EVENTVALIDATION"]) {
postData += "&__EVENTVALIDATION=" + WebForm_EncodeCallback(theForm["__EVENTVALIDATION"].value);
}
var xmlRequest,e;
try {
xmlRequest = new XMLHttpRequest();
}
catch(e) {
try {
xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e) {
}
}
var setRequestHeaderMethodExists = true;
try {
setRequestHeaderMethodExists = (xmlRequest && xmlRequest.setRequestHeader);
}
catch(e) {}
var callback = new Object();
callback.eventCallback = eventCallback;
callback.context = context;
callback.errorCallback = errorCallback;
callback.async = useAsync;
var callbackIndex = WebForm_FillFirstAvailableSlot(__pendingCallbacks, callback);
if (!useAsync) {
if (__synchronousCallBackIndex != -1) {
__pendingCallbacks[__synchronousCallBackIndex] = null;
}
__synchronousCallBackIndex = callbackIndex;
}
if (setRequestHeaderMethodExists) {
xmlRequest.onreadystatechange = WebForm_CallbackComplete;
callback.xmlRequest = xmlRequest;
xmlRequest.open("POST", theForm.action, true);
xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlRequest.send(postData);
return;
}
callback.xmlRequest = new Object();
var callbackFrameID = "__CALLBACKFRAME" + callbackIndex;
var xmlRequestFrame = document.frames[callbackFrameID];
if (!xmlRequestFrame) {
xmlRequestFrame = document.createElement("IFRAME");
xmlRequestFrame.width = "1";
xmlRequestFrame.height = "1";
xmlRequestFrame.frameBorder = "0";
xmlRequestFrame.id = callbackFrameID;
xmlRequestFrame.name = callbackFrameID;
xmlRequestFrame.style.position = "absolute";
xmlRequestFrame.style.top = "-100px"
xmlRequestFrame.style.left = "-100px";
try {
if (callBackFrameUrl) {
xmlRequestFrame.src = callBackFrameUrl;
}
}
catch(e) {}
document.body.appendChild(xmlRequestFrame);
}
var interval = window.setInterval(function() {
xmlRequestFrame = document.frames[callbackFrameID];
if (xmlRequestFrame && xmlRequestFrame.document) {
window.clearInterval(interval);
xmlRequestFrame.document.write("");
xmlRequestFrame.document.close();
xmlRequestFrame.document.write('<html><body><form method="post"><input type="hidden" name="__CALLBACKLOADSCRIPT" value="t"></form></body></html>');
xmlRequestFrame.document.close();
xmlRequestFrame.document.forms[0].action = theForm.action;
var count = __theFormPostCollection.length;
var element;
for (var i = 0; i < count; i++) {
element = __theFormPostCollection[i];
if (element) {
var fieldElement = xmlRequestFrame.document.createElement("INPUT");
fieldElement.type = "hidden";
fieldElement.name = element.name;
fieldElement.value = element.value;
xmlRequestFrame.document.forms[0].appendChild(fieldElement);
}
}
var callbackIdFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackIdFieldElement.type = "hidden";
callbackIdFieldElement.name = "__CALLBACKID";
callbackIdFieldElement.value = eventTarget;
xmlRequestFrame.document.forms[0].appendChild(callbackIdFieldElement);
var callbackParamFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackParamFieldElement.type = "hidden";
callbackParamFieldElement.name = "__CALLBACKPARAM";
callbackParamFieldElement.value = eventArgument;
xmlRequestFrame.document.forms[0].appendChild(callbackParamFieldElement);
if (theForm["__EVENTVALIDATION"]) {
var callbackValidationFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackValidationFieldElement.type = "hidden";
callbackValidationFieldElement.name = "__EVENTVALIDATION";
callbackValidationFieldElement.value = theForm["__EVENTVALIDATION"].value;
xmlRequestFrame.document.forms[0].appendChild(callbackValidationFieldElement);
}
var callbackIndexFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackIndexFieldElement.type = "hidden";
callbackIndexFieldElement.name = "__CALLBACKINDEX";
callbackIndexFieldElement.value = callbackIndex;
xmlRequestFrame.document.forms[0].appendChild(callbackIndexFieldElement);
xmlRequestFrame.document.forms[0].submit();
}
}, 10);
}
function WebForm_CallbackComplete() {
for (i = 0; i < __pendingCallbacks.length; i++) {
callbackObject = __pendingCallbacks[i];
if (callbackObject && callbackObject.xmlRequest && (callbackObject.xmlRequest.readyState == 4)) {
WebForm_ExecuteCallback(callbackObject);
if (!__pendingCallbacks[i].async) {
__synchronousCallBackIndex = -1;
}
__pendingCallbacks[i] = null;
var callbackFrameID = "__CALLBACKFRAME" + i;
var xmlRequestFrame = document.getElementById(callbackFrameID);
if (xmlRequestFrame) {
xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);
}
}
}
}
function WebForm_ExecuteCallback(callbackObject) {
var response = callbackObject.xmlRequest.responseText;
if (response.charAt(0) == "s") {
if ((typeof(callbackObject.eventCallback) != "undefined") && (callbackObject.eventCallback != null)) {
callbackObject.eventCallback(response.substring(1), callbackObject.context);
}
}
else if (response.charAt(0) == "e") {
if ((typeof(callbackObject.errorCallback) != "undefined") && (callbackObject.errorCallback != null)) {
callbackObject.errorCallback(response.substring(1), callbackObject.context);
}
}
else {
var separatorIndex = response.indexOf("|");
if (separatorIndex != -1) {
var validationFieldLength = parseInt(response.substring(0, separatorIndex));
if (!isNaN(validationFieldLength)) {
var validationField = response.substring(separatorIndex + 1, separatorIndex + validationFieldLength + 1);
if (validationField != "") {
var validationFieldElement = theForm["__EVENTVALIDATION"];
if (!validationFieldElement) {
validationFieldElement = document.createElement("INPUT");
validationFieldElement.type = "hidden";
validationFieldElement.name = "__EVENTVALIDATION";
theForm.appendChild(validationFieldElement);
}
validationFieldElement.value = validationField;
}
if ((typeof(callbackObject.eventCallback) != "undefined") && (callbackObject.eventCallback != null)) {
callbackObject.eventCallback(response.substring(separatorIndex + validationFieldLength + 1), callbackObject.context);
}
}
}
}
}
function WebForm_FillFirstAvailableSlot(array, element) {
var i;
for (i = 0; i < array.length; i++) {
if (!array[i]) break;
}
array[i] = element;
return i;
}
var __nonMSDOMBrowser = (window.navigator.appName.toLowerCase().indexOf('explorer') == -1);
var __theFormPostData = "";
var __theFormPostCollection = new Array();
function WebForm_InitCallback() {
var count = theForm.elements.length;
var element;
for (var i = 0; i < count; i++) {
element = theForm.elements[i];
var tagName = element.tagName.toLowerCase();
if (tagName == "input") {
var type = element.type;
if ((type == "text" || type == "hidden" || type == "password" ||
((type == "checkbox" || type == "radio") && element.checked)) &&
(element.id != "__EVENTVALIDATION")) {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
else if (tagName == "select") {
var selectCount = element.options.length;
for (var j = 0; j < selectCount; j++) {
var selectChild = element.options[j];
if (selectChild.selected == true) {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
}
else if (tagName == "textarea") {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
}
function WebForm_InitCallbackAddField(name, value) {
var nameValue = new Object();
nameValue.name = name;
nameValue.value = value;
__theFormPostCollection[__theFormPostCollection.length] = nameValue;
__theFormPostData += name + "=" + WebForm_EncodeCallback(value) + "&";
}
function WebForm_EncodeCallback(parameter) {
if (encodeURIComponent) {
return encodeURIComponent(parameter);
}
else {
return escape(parameter);
}
}
var __disabledControlArray = new Array();
function WebForm_ReEnableControls() {
if (typeof(__enabledControlArray) == 'undefined') {
return false;
}
var disabledIndex = 0;
for (var i = 0; i < __enabledControlArray.length; i++) {
var c;
if (__nonMSDOMBrowser) {
c = document.getElementById(__enabledControlArray[i]);
}
else {
c = document.all[__enabledControlArray[i]];
}
if ((typeof(c) != "undefined") && (c != null) && (c.disabled == true)) {
c.disabled = false;
__disabledControlArray[disabledIndex++] = c;
}
}
setTimeout("WebForm_ReDisableControls()", 0);
return true;
}
function WebForm_ReDisableControls() {
for (var i = 0; i < __disabledControlArray.length; i++) {
__disabledControlArray[i].disabled = true;
}
}
function WebForm_FireDefaultButton(event, target) {
if (event.keyCode == 13 && !(event.srcElement && (event.srcElement.tagName.toLowerCase() == "textarea"))) {
var defaultButton;
if (__nonMSDOMBrowser) {
defaultButton = document.getElementById(target);
}
else {
defaultButton = document.all[target];
}
if (defaultButton && typeof(defaultButton.click) != "undefined") {
defaultButton.click();
event.cancelBubble = true;
if (event.stopPropagation) event.stopPropagation();
return false;
}
}
return true;
}
function WebForm_GetScrollX() {
if (__nonMSDOMBrowser) {
return window.pageXOffset;
}
else {
if (document.documentElement && document.documentElement.scrollLeft) {
return document.documentElement.scrollLeft;
}
else if (document.body) {
return document.body.scrollLeft;
}
}
return 0;
}
function WebForm_GetScrollY() {
if (__nonMSDOMBrowser) {
return window.pageYOffset;
}
else {
if (document.documentElement && document.documentElement.scrollTop) {
return document.documentElement.scrollTop;
}
else if (document.body) {
return document.body.scrollTop;
}
}
return 0;
}
function WebForm_SaveScrollPositionSubmit() {
if (__nonMSDOMBrowser) {
theForm.elements['__SCROLLPOSITIONY'].value = window.pageYOffset;
theForm.elements['__SCROLLPOSITIONX'].value = window.pageXOffset;
}
else {
theForm.__SCROLLPOSITIONX.value = WebForm_GetScrollX();
theForm.__SCROLLPOSITIONY.value = WebForm_GetScrollY();
}
if ((typeof(this.oldSubmit) != "undefined") && (this.oldSubmit != null)) {
return this.oldSubmit();
}
return true;
}
function WebForm_SaveScrollPositionOnSubmit() {
theForm.__SCROLLPOSITIONX.value = WebForm_GetScrollX();
theForm.__SCROLLPOSITIONY.value = WebForm_GetScrollY();
if ((typeof(this.oldOnSubmit) != "undefined") && (this.oldOnSubmit != null)) {
return this.oldOnSubmit();
}
return true;
}
function WebForm_RestoreScrollPosition() {
if (__nonMSDOMBrowser) {
window.scrollTo(theForm.elements['__SCROLLPOSITIONX'].value, theForm.elements['__SCROLLPOSITIONY'].value);
}
else {
window.scrollTo(theForm.__SCROLLPOSITIONX.value, theForm.__SCROLLPOSITIONY.value);
}
if ((typeof(theForm.oldOnLoad) != "undefined") && (theForm.oldOnLoad != null)) {
return theForm.oldOnLoad();
}
return true;
}
function WebForm_TextBoxKeyHandler(event) {
if (event.keyCode == 13) {
var target;
if (__nonMSDOMBrowser) {
target = event.target;
}
else {
target = event.srcElement;
}
if ((typeof(target) != "undefined") && (target != null)) {
if (typeof(target.onchange) != "undefined") {
target.onchange();
event.cancelBubble = true;
if (event.stopPropagation) event.stopPropagation();
return false;
}
}
}
return true;
}
function WebForm_AppendToClassName(element, className) {
var current = element.className;
if (current) {
if (current.charAt(current.length - 1) != ' ') {
current += ' ';
}
current += className;
}
else {
current = className;
}
element.className = current;
}
function WebForm_RemoveClassName(element, className) {
var current = element.className;
if (current) {
if (current.substring(current.length - className.length - 1, current.length) == ' ' + className) {
element.className = current.substring(0, current.length - className.length - 1);
return;
}
if (current == className) {
element.className = "";
return;
}
var index = current.indexOf(' ' + className + ' ');
if (index != -1) {
element.className = current.substring(0, index) + current.substring(index + className.length + 2, current.length);
return;
}
if (current.substring(0, className.length) == className + ' ') {
element.className = current.substring(className.length + 1, current.length);
}
}
}
function WebForm_GetElementById(elementId) {
if (document.getElementById) {
return document.getElementById(elementId);
}
else if (document.all) {
return document.all[elementId];
}
else return null;
}
function WebForm_GetElementByTagName(element, tagName) {
var elements = WebForm_GetElementsByTagName(element, tagName);
if (elements && elements.length > 0) {
return elements[0];
}
else return null;
}
function WebForm_GetElementsByTagName(element, tagName) {
if (element && tagName) {
if (element.getElementsByTagName) {
return element.getElementsByTagName(tagName);
}
if (element.all && element.all.tags) {
return element.all.tags(tagName);
}
}
return null;
}
function WebForm_GetElementDir(element) {
if (element) {
if (element.dir) {
return element.dir;
}
return WebForm_GetElementDir(element.parentNode);
}
return "ltr";
}
function WebForm_GetElementPosition(element) {
var result = new Object();
result.x = 0;
result.y = 0;
result.width = 0;
result.height = 0;
if (element.offsetParent) {
result.x = element.offsetLeft;
result.y = element.offsetTop;
var parent = element.offsetParent;
while (parent) {
result.x += parent.offsetLeft;
result.y += parent.offsetTop;
var parentTagName = parent.tagName.toLowerCase();
if (parentTagName != "table" &&
parentTagName != "body" &&
parentTagName != "html" &&
parentTagName != "div" &&
parent.clientTop &&
parent.clientLeft) {
result.x += parent.clientLeft;
result.y += parent.clientTop;
}
parent = parent.offsetParent;
}
}
else if (element.left && element.top) {
result.x = element.left;
result.y = element.top;
}
else {
if (element.x) {
result.x = element.x;
}
if (element.y) {
result.y = element.y;
}
}
if (element.offsetWidth && element.offsetHeight) {
result.width = element.offsetWidth;
result.height = element.offsetHeight;
}
else if (element.style && element.style.pixelWidth && element.style.pixelHeight) {
result.width = element.style.pixelWidth;
result.height = element.style.pixelHeight;
}
return result;
}
function WebForm_GetParentByTagName(element, tagName) {
var parent = element.parentNode;
var upperTagName = tagName.toUpperCase();
while (parent && (parent.tagName.toUpperCase() != upperTagName)) {
parent = parent.parentNode ? parent.parentNode : parent.parentElement;
}
return parent;
}
function WebForm_SetElementHeight(element, height) {
if (element && element.style) {
element.style.height = height + "px";
}
}
function WebForm_SetElementWidth(element, width) {
if (element && element.style) {
element.style.width = width + "px";
}
}
function WebForm_SetElementX(element, x) {
if (element && element.style) {
element.style.left = x + "px";
}
}
function WebForm_SetElementY(element, y) {
if (element && element.style) {
element.style.top = y + "px";
}
}

View File

@@ -1,568 +0,0 @@
var Page_ValidationVer = "125";
var Page_IsValid = true;
var Page_BlockSubmit = false;
var Page_InvalidControlToBeFocused = null;
function ValidatorUpdateDisplay(val) {
if (typeof(val.display) == "string") {
if (val.display == "None") {
return;
}
if (val.display == "Dynamic") {
val.style.display = val.isvalid ? "none" : "inline";
return;
}
}
if ((navigator.userAgent.indexOf("Mac") > -1) &&
(navigator.userAgent.indexOf("MSIE") > -1)) {
val.style.display = "inline";
}
val.style.visibility = val.isvalid ? "hidden" : "visible";
}
function ValidatorUpdateIsValid() {
Page_IsValid = AllValidatorsValid(Page_Validators);
}
function AllValidatorsValid(validators) {
if ((typeof(validators) != "undefined") && (validators != null)) {
var i;
for (i = 0; i < validators.length; i++) {
if (!validators[i].isvalid) {
return false;
}
}
}
return true;
}
function ValidatorHookupControlID(controlID, val) {
if (typeof(controlID) != "string") {
return;
}
var ctrl = document.getElementById(controlID);
if ((typeof(ctrl) != "undefined") && (ctrl != null)) {
ValidatorHookupControl(ctrl, val);
}
else {
val.isvalid = true;
val.enabled = false;
}
}
function ValidatorHookupControl(control, val) {
if (typeof(control.tagName) != "string") {
return;
}
if (control.tagName != "INPUT" && control.tagName != "TEXTAREA" && control.tagName != "SELECT") {
var i;
for (i = 0; i < control.childNodes.length; i++) {
ValidatorHookupControl(control.childNodes[i], val);
}
return;
}
else {
if (typeof(control.Validators) == "undefined") {
control.Validators = new Array;
var eventType;
if (control.type == "radio") {
eventType = "onclick";
} else {
eventType = "onchange";
if (typeof(val.focusOnError) == "string" && val.focusOnError == "t") {
ValidatorHookupEvent(control, "onblur", "ValidatedControlOnBlur(event); ");
}
}
ValidatorHookupEvent(control, eventType, "ValidatorOnChange(event); ");
if (control.type == "text" ||
control.type == "password" ||
control.type == "file") {
ValidatorHookupEvent(control, "onkeypress",
"if (!ValidatedTextBoxOnKeyPress(event)) { event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return false; } ");
}
}
control.Validators[control.Validators.length] = val;
}
}
function ValidatorHookupEvent(control, eventType, functionPrefix) {
var ev;
eval("ev = control." + eventType + ";");
if (typeof(ev) == "function") {
ev = ev.toString();
ev = ev.substring(ev.indexOf("{") + 1, ev.lastIndexOf("}"));
}
else {
ev = "";
}
var func;
if (navigator.appName.toLowerCase().indexOf('explorer') > -1) {
func = new Function(functionPrefix + " " + ev);
}
else {
func = new Function("event", functionPrefix + " " + ev);
}
eval("control." + eventType + " = func;");
}
function ValidatorGetValue(id) {
var control;
control = document.getElementById(id);
if (typeof(control.value) == "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
}
function ValidatorGetValueRecursive(control)
{
if (typeof(control.value) == "string" && (control.type != "radio" || control.checked == true)) {
return control.value;
}
var i, val;
for (i = 0; i<control.childNodes.length; i++) {
val = ValidatorGetValueRecursive(control.childNodes[i]);
if (val != "") return val;
}
return "";
}
function Page_ClientValidate(validationGroup) {
Page_InvalidControlToBeFocused = null;
if (typeof(Page_Validators) == "undefined") {
return true;
}
var i;
for (i = 0; i < Page_Validators.length; i++) {
ValidatorValidate(Page_Validators[i], validationGroup, null);
}
ValidatorUpdateIsValid();
ValidationSummaryOnSubmit(validationGroup);
Page_BlockSubmit = !Page_IsValid;
return Page_IsValid;
}
function ValidatorCommonOnSubmit() {
Page_InvalidControlToBeFocused = null;
var result = !Page_BlockSubmit;
if ((typeof(window.event) != "undefined") && (window.event != null)) {
window.event.returnValue = result;
}
Page_BlockSubmit = false;
return result;
}
function ValidatorEnable(val, enable) {
val.enabled = (enable != false);
ValidatorValidate(val);
ValidatorUpdateIsValid();
}
function ValidatorOnChange(event) {
if (!event) {
event = window.event;
}
Page_InvalidControlToBeFocused = null;
var targetedControl;
if ((typeof(event.srcElement) != "undefined") && (event.srcElement != null)) {
targetedControl = event.srcElement;
}
else {
targetedControl = event.target;
}
var vals;
if (typeof(targetedControl.Validators) != "undefined") {
vals = targetedControl.Validators;
}
else {
if (targetedControl.tagName.toLowerCase() == "label") {
targetedControl = document.getElementById(targetedControl.htmlFor);
vals = targetedControl.Validators;
}
}
var i;
for (i = 0; i < vals.length; i++) {
ValidatorValidate(vals[i], null, event);
}
ValidatorUpdateIsValid();
}
function ValidatedTextBoxOnKeyPress(event) {
if (event.keyCode == 13) {
ValidatorOnChange(event);
var vals;
if ((typeof(event.srcElement) != "undefined") && (event.srcElement != null)) {
vals = event.srcElement.Validators;
}
else {
vals = event.target.Validators;
}
return AllValidatorsValid(vals);
}
return true;
}
function ValidatedControlOnBlur(event) {
var control;
if ((typeof(event.srcElement) != "undefined") && (event.srcElement != null)) {
control = event.srcElement;
}
else {
control = event.target;
}
if ((typeof(control) != "undefined") && (control != null) && (Page_InvalidControlToBeFocused == control)) {
control.focus();
Page_InvalidControlToBeFocused = null;
}
}
function ValidatorValidate(val, validationGroup, event) {
val.isvalid = true;
if ((typeof(val.enabled) == "undefined" || val.enabled != false) && IsValidationGroupMatch(val, validationGroup)) {
if (typeof(val.evaluationfunction) == "function") {
val.isvalid = val.evaluationfunction(val);
if (!val.isvalid && Page_InvalidControlToBeFocused == null &&
typeof(val.focusOnError) == "string" && val.focusOnError == "t") {
ValidatorSetFocus(val, event);
}
}
}
ValidatorUpdateDisplay(val);
}
function ValidatorSetFocus(val, event) {
var ctrl;
if (typeof(val.controlhookup) == "string") {
var eventCtrl;
if ((typeof(event) != "undefined") && (event != null)) {
if ((typeof(event.srcElement) != "undefined") && (event.srcElement != null)) {
eventCtrl = event.srcElement;
}
else {
eventCtrl = event.target;
}
}
if ((typeof(eventCtrl) != "undefined") && (eventCtrl != null) &&
(typeof(eventCtrl.id) == "string") &&
(eventCtrl.id == val.controlhookup)) {
ctrl = eventCtrl;
}
}
if ((typeof(ctrl) == "undefined") || (ctrl == null)) {
ctrl = document.getElementById(val.controltovalidate);
}
if ((typeof(ctrl) != "undefined") && (ctrl != null) &&
(ctrl.tagName.toLowerCase() != "table" || (typeof(event) == "undefined") || (event == null)) &&
((ctrl.tagName.toLowerCase() != "input") || (ctrl.type.toLowerCase() != "hidden")) &&
(typeof(ctrl.disabled) == "undefined" || ctrl.disabled == null || ctrl.disabled == false) &&
(typeof(ctrl.visible) == "undefined" || ctrl.visible == null || ctrl.visible != false) &&
(IsInVisibleContainer(ctrl))) {
if (ctrl.tagName.toLowerCase() == "table" &&
(typeof(__nonMSDOMBrowser) == "undefined" || __nonMSDOMBrowser)) {
var inputElements = ctrl.getElementsByTagName("input");
var lastInputElement = inputElements[inputElements.length -1];
if (lastInputElement != null) {
ctrl = lastInputElement;
}
}
if (typeof(ctrl.focus) != "undefined" && ctrl.focus != null) {
ctrl.focus();
Page_InvalidControlToBeFocused = ctrl;
}
}
}
function IsInVisibleContainer(ctrl) {
if (typeof(ctrl.style) != "undefined" &&
( ( typeof(ctrl.style.display) != "undefined" &&
ctrl.style.display == "none") ||
( typeof(ctrl.style.visibility) != "undefined" &&
ctrl.style.visibility == "hidden") ) ) {
return false;
}
else if (typeof(ctrl.parentNode) != "undefined" &&
ctrl.parentNode != null &&
ctrl.parentNode != ctrl) {
return IsInVisibleContainer(ctrl.parentNode);
}
return true;
}
function IsValidationGroupMatch(control, validationGroup) {
if ((typeof(validationGroup) == "undefined") || (validationGroup == null)) {
return true;
}
var controlGroup = "";
if (typeof(control.validationGroup) == "string") {
controlGroup = control.validationGroup;
}
return (controlGroup == validationGroup);
}
function ValidatorOnLoad() {
if (typeof(Page_Validators) == "undefined")
return;
var i, val;
for (i = 0; i < Page_Validators.length; i++) {
val = Page_Validators[i];
if (typeof(val.evaluationfunction) == "string") {
eval("val.evaluationfunction = " + val.evaluationfunction + ";");
}
if (typeof(val.isvalid) == "string") {
if (val.isvalid == "False") {
val.isvalid = false;
Page_IsValid = false;
}
else {
val.isvalid = true;
}
} else {
val.isvalid = true;
}
if (typeof(val.enabled) == "string") {
val.enabled = (val.enabled != "False");
}
if (typeof(val.controltovalidate) == "string") {
ValidatorHookupControlID(val.controltovalidate, val);
}
if (typeof(val.controlhookup) == "string") {
ValidatorHookupControlID(val.controlhookup, val);
}
}
Page_ValidationActive = true;
}
function ValidatorConvert(op, dataType, val) {
function GetFullYear(year) {
var twoDigitCutoffYear = val.cutoffyear % 100;
var cutoffYearCentury = val.cutoffyear - twoDigitCutoffYear;
return ((year > twoDigitCutoffYear) ? (cutoffYearCentury - 100 + year) : (cutoffYearCentury + year));
}
var num, cleanInput, m, exp;
if (dataType == "Integer") {
exp = /^\s*[-\+]?\d+\s*$/;
if (op.match(exp) == null)
return null;
num = parseInt(op, 10);
return (isNaN(num) ? null : num);
}
else if(dataType == "Double") {
exp = new RegExp("^\\s*([-\\+])?(\\d*)\\" + val.decimalchar + "?(\\d*)\\s*$");
m = op.match(exp);
if (m == null)
return null;
if (m[2].length == 0 && m[3].length == 0)
return null;
cleanInput = (m[1] != null ? m[1] : "") + (m[2].length>0 ? m[2] : "0") + (m[3].length>0 ? "." + m[3] : "");
num = parseFloat(cleanInput);
return (isNaN(num) ? null : num);
}
else if (dataType == "Currency") {
var hasDigits = (val.digits > 0);
var beginGroupSize, subsequentGroupSize;
var groupSizeNum = parseInt(val.groupsize, 10);
if (!isNaN(groupSizeNum) && groupSizeNum > 0) {
beginGroupSize = "{1," + groupSizeNum + "}";
subsequentGroupSize = "{" + groupSizeNum + "}";
}
else {
beginGroupSize = subsequentGroupSize = "+";
}
exp = new RegExp("^\\s*([-\\+])?((\\d" + beginGroupSize + "(\\" + val.groupchar + "\\d" + subsequentGroupSize + ")+)|\\d*)"
+ (hasDigits ? "\\" + val.decimalchar + "?(\\d{0," + val.digits + "})" : "")
+ "\\s*$");
m = op.match(exp);
if (m == null)
return null;
if (m[2].length == 0 && hasDigits && m[5].length == 0)
return null;
cleanInput = (m[1] != null ? m[1] : "") + m[2].replace(new RegExp("(\\" + val.groupchar + ")", "g"), "") + ((hasDigits && m[5].length > 0) ? "." + m[5] : "");
num = parseFloat(cleanInput);
return (isNaN(num) ? null : num);
}
else if (dataType == "Date") {
var yearFirstExp = new RegExp("^\\s*((\\d{4})|(\\d{2}))([-/]|\\. ?)(\\d{1,2})\\4(\\d{1,2})\\s*$");
m = op.match(yearFirstExp);
var day, month, year;
if (m != null && (m[2].length == 4 || val.dateorder == "ymd")) {
day = m[6];
month = m[5];
year = (m[2].length == 4) ? m[2] : GetFullYear(parseInt(m[3], 10))
}
else {
if (val.dateorder == "ymd"){
return null;
}
var yearLastExp = new RegExp("^\\s*(\\d{1,2})([-/]|\\. ?)(\\d{1,2})\\2((\\d{4})|(\\d{2}))\\s*$");
m = op.match(yearLastExp);
if (m == null) {
return null;
}
if (val.dateorder == "mdy") {
day = m[3];
month = m[1];
}
else {
day = m[1];
month = m[3];
}
year = (m[5].length == 4) ? m[5] : GetFullYear(parseInt(m[6], 10))
}
month -= 1;
var date = new Date(year, month, day);
if (year < 100) {
date.setFullYear(year);
}
return (typeof(date) == "object" && year == date.getFullYear() && month == date.getMonth() && day == date.getDate()) ? date.valueOf() : null;
}
else {
return op.toString();
}
}
function ValidatorCompare(operand1, operand2, operator, val) {
var dataType = val.type;
var op1, op2;
if ((op1 = ValidatorConvert(operand1, dataType, val)) == null)
return false;
if (operator == "DataTypeCheck")
return true;
if ((op2 = ValidatorConvert(operand2, dataType, val)) == null)
return true;
switch (operator) {
case "NotEqual":
return (op1 != op2);
case "GreaterThan":
return (op1 > op2);
case "GreaterThanEqual":
return (op1 >= op2);
case "LessThan":
return (op1 < op2);
case "LessThanEqual":
return (op1 <= op2);
default:
return (op1 == op2);
}
}
function CompareValidatorEvaluateIsValid(val) {
var value = ValidatorGetValue(val.controltovalidate);
if (ValidatorTrim(value).length == 0)
return true;
var compareTo = "";
if ((typeof(val.controltocompare) != "string") ||
(typeof(document.getElementById(val.controltocompare)) == "undefined") ||
(null == document.getElementById(val.controltocompare))) {
if (typeof(val.valuetocompare) == "string") {
compareTo = val.valuetocompare;
}
}
else {
compareTo = ValidatorGetValue(val.controltocompare);
}
var operator = "Equal";
if (typeof(val.operator) == "string") {
operator = val.operator;
}
return ValidatorCompare(value, compareTo, operator, val);
}
function CustomValidatorEvaluateIsValid(val) {
var value = "";
if (typeof(val.controltovalidate) == "string") {
value = ValidatorGetValue(val.controltovalidate);
if ((ValidatorTrim(value).length == 0) &&
((typeof(val.validateemptytext) != "string") || (val.validateemptytext != "true"))) {
return true;
}
}
var args = { Value:value, IsValid:true };
if (typeof(val.clientvalidationfunction) == "string") {
eval(val.clientvalidationfunction + "(val, args) ;");
}
return args.IsValid;
}
function RegularExpressionValidatorEvaluateIsValid(val) {
var value = ValidatorGetValue(val.controltovalidate);
if (ValidatorTrim(value).length == 0)
return true;
var rx = new RegExp(val.validationexpression);
var matches = rx.exec(value);
return (matches != null && value == matches[0]);
}
function ValidatorTrim(s) {
var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);
return (m == null) ? "" : m[1];
}
function RequiredFieldValidatorEvaluateIsValid(val) {
return (ValidatorTrim(ValidatorGetValue(val.controltovalidate)) != ValidatorTrim(val.initialvalue))
}
function RangeValidatorEvaluateIsValid(val) {
var value = ValidatorGetValue(val.controltovalidate);
if (ValidatorTrim(value).length == 0)
return true;
return (ValidatorCompare(value, val.minimumvalue, "GreaterThanEqual", val) &&
ValidatorCompare(value, val.maximumvalue, "LessThanEqual", val));
}
function ValidationSummaryOnSubmit(validationGroup) {
if (typeof(Page_ValidationSummaries) == "undefined")
return;
var summary, sums, s;
for (sums = 0; sums < Page_ValidationSummaries.length; sums++) {
summary = Page_ValidationSummaries[sums];
summary.style.display = "none";
if (!Page_IsValid && IsValidationGroupMatch(summary, validationGroup)) {
var i;
if (summary.showsummary != "False") {
summary.style.display = "";
if (typeof(summary.displaymode) != "string") {
summary.displaymode = "BulletList";
}
switch (summary.displaymode) {
case "List":
headerSep = "<br>";
first = "";
pre = "";
post = "<br>";
end = "";
break;
case "BulletList":
default:
headerSep = "";
first = "<ul>";
pre = "<li>";
post = "</li>";
end = "</ul>";
break;
case "SingleParagraph":
headerSep = " ";
first = "";
pre = "";
post = " ";
end = "<br>";
break;
}
s = "";
if (typeof(summary.headertext) == "string") {
s += summary.headertext + headerSep;
}
s += first;
for (i=0; i<Page_Validators.length; i++) {
if (!Page_Validators[i].isvalid && typeof(Page_Validators[i].errormessage) == "string") {
s += pre + Page_Validators[i].errormessage + post;
}
}
s += end;
summary.innerHTML = s;
window.scrollTo(0,0);
}
if (summary.showmessagebox == "True") {
s = "";
if (typeof(summary.headertext) == "string") {
s += summary.headertext + "\r\n";
}
var lastValIndex = Page_Validators.length - 1;
for (i=0; i<=lastValIndex; i++) {
if (!Page_Validators[i].isvalid && typeof(Page_Validators[i].errormessage) == "string") {
switch (summary.displaymode) {
case "List":
s += Page_Validators[i].errormessage;
if (i < lastValIndex) {
s += "\r\n";
}
break;
case "BulletList":
default:
s += "- " + Page_Validators[i].errormessage;
if (i < lastValIndex) {
s += "\r\n";
}
break;
case "SingleParagraph":
s += Page_Validators[i].errormessage + " ";
break;
}
}
}
alert(s);
}
}
}
}

View File

@@ -1,275 +0,0 @@
/* css */
/************************** Layout **************************/
/** general style and classes **/
*,ul.userOption li a{margin:0;padding:0}
h1,h2,h3{padding:5px 10px;margin:0;}
h3{padding:10px}
.clr,.clr1{line-height:3px;height:3px;clear:both}
.clr1{line-height:0px;height:0px;}
.floatA{float:right}
.floatB{float:left}
.highlight{width:100%;height:100%;margin:10px 0}
.failed,.success{width:90%;padding:5px 0;text-align:center;margin:10px auto;display:block}
.black ,.blackor{padding:10px}
.orangelist{padding:0 10px;clear:both}
.aRight{text-align:right}
.aCenter{text-align:center}
.blackorMessage{clear:both;width:95%;margin:10px auto;display:block;text-align:center;padding:10px 0}
ul.blackor{margin:0 5px;padding:10px 0 10px 30px;width:90%}
.activate,.deactivate{width:130px;height:44px;padding:0}
.deactivate{width:145px}
/** / general style and classes **/
/** Ads **/
#leaderboard{width:728px;margin:0 auto;display:none}
/** /Ads **/
/** Structure **/
#wrapper,#container{width:750px;height:auto;margin:0 auto 5px auto;}
#container{margin:0 auto;border:1px solid #ccc;border-top:none}
#header{width:752px;height:140px;}
#ZoneA{width:556px;height:100%;float:right;border-left:1px solid #eee}
#ZoneB{width:192px;height:auto;float:left}
#FeaturedArea{width:556px;height:240px}
#registerForm{width:100%}
.mainContent{width:100%;height:auto}
.main{width:95%;margin:0 10px}
.mainB,.mainA{width:49%;float:left;padding:10px 0}
.mainA{width:49%}
.cardsImg{width:260px;height:auto}
.mainA .clip,.mainB .clip{width:100%}
.mainA ul{margin:0 30px}
.clip{width:192px}
.largeClip{width:100%}
.clip h1,.clip p,.clip a,.redMessage{margin:0 10px}
.clip ul{margin:0 0 0 10px;padding:5px 0 0 0}
/*** menu ***/
#menu{width:100%;height:22px}
#menu a{height:22px;width:100%;width:50px}
#menu ul.menuItems li{height:22px;float:left;width:50px;}
#menu ul.menuItems li.wide,#menu ul.menuItems li.wide a{width:70px}
#menu ul.menuItems li.wider,#menu ul.menuItems li.wider a{width:110px}
#menu ul.menuItems{margin:0;padding:0}
/*** /menu ***/
/*** Login ***/
#Login ul.form{width:80%;padding:0;clear:both;margin:0 15px;}
#Login ul.form li{clear:both;margin:1px 0}
#Login ul.form li.Name{width:60px;float:left;}
#Login ul.form li.Value .narrowInput{width:150px}
#Login ul.form li.button {width:98%}
#Login ul.userOption {width:120px;margin:0 0 0 30px}
/*** /Login ***/
/*** Serial ***/
#SerialLogin{margin:20px auto;width:70%;float:right}
#SerialLogin ul.form{width:90%;margin:5px 0;padding:0;clear:both}
#SerialLogin ul.form li.Name{width:100px;float:left;}
#SerialLogin ul.form li.Value .narrowInput{width:160px;}
#SerialLogin ul.form li.button {display:block;width:265px;text-align:right}
#SerialLogin ul.form li.Remember{display:none}
span.cardBack{width:143px;height:95px;display:block;float:left;margin:10px 4px}
/*** /Searial ***/
/*** Search ***/
#Search ul.form li{padding:5px 0}
#Search ul.form{width:90%;margin:5px 0;padding:0;clear:both}
#Search ul.form li.Name{width:50px;float:left;}
#Search ul.form li.Value .narrowInput{width:160px}
#Search ul.form li.button {display:block;width:90%;text-align:right}
/*** /Search ***/
/*** Helpdesk ***/
#helpdesk{width:180px;height:136px;margin:0 auto;padding:3em 0 0 0}
#helpdesk ul{width:110px;position:relative;left:80px;top:30px;margin:0;padding:0}
/*** / Helpdesk ***/
/*** Newprofile ***/
#newProfile,.error{width:98%;margin:0 auto;padding:0 3px}
#newProfile input,#newProfile select{width:100px;height:18px;float:left}
p.label,p.value,div.value{width:100px;float:left;margin:0;padding:5px 7px}
#newProfile .wideValue{width:200px}
p.value{width:130px}
div.value{width:135px}
div.value a{width:10px;float:right}
div.value input{float:left}
p.wide{width:160px}
/*** /Newprofile ***/
/*** PackageDetails ***/
#PackageDetails .largeClip,#Faq .largeClip{margin:15px 0;padding:0 0 5px 0;border-bottom:1px dashed #f60}
#PackageDetails .largeClip p img{float:right;width:152px;margin:0 5px 0 0;padding:0}
#PackageDetails .largeClip p {float:left;width:100%;padding:10px 0}
/*** /PackageDetails ***/
/*** FAQ ***/
ul.contentList{margin:5px 0 0 10px;width:90%}
ul.contentList li{padding:0 10px;width:100%;margin:5px 0}
ul#bookmarksList {width:90%}
ul#bookmarksList li{padding:0 8px;width:100%;margin:2px 0}
/*** /FAQ ***/
/*** Resend Activation ***/
#ResendActivationCode .btn{margin:0;padding:5px 10px;width:40%}
/*** /Resend Activation ***/
/*** ForgotPassword ***/
#ForgotPassword .textInput,#ForgotPassword select{width:100px;height:18px;float:left;}
#ForgotPassword p.label,#ForgotPassword p.value,#ForgotPassword p.btn{width:100px;float:left;margin:0;padding:5px 10px}
#ForgotPassword p.label{width:40px}
#ForgotPassword p.largeValue {width:200px;padding:0 10px 0 10px}
#ForgotPassword p.btn{width:30px;padding:5px 0}
#ForgotPassword input.btn{float:left}
.wideinput{width:200px}
/*** /ForgotPassword ***/
/*** Free Sites ***/
#freesites{height:70px;width:750px;clear:both}
#freesites h1{margin:0 0 0 10px}
#freesites ul{margin:0 0 10px 10px}
#freesites li{float:left;margin:0 0 0 5px}
/*** /Free Sites ***/
/*** Map ***/
#mapmenu{border:2px solid #f60;text-align:center;width:80%;margin:0 auto;background:#F1F1F1}
#mapmenu a:link,#mapmenu a:active,#mapmenu a:hover,#mapmenu a:visited{color:#000;text-decoration:none;padding:0 10px;}
/*** /Map ***/
/*** Footer ***/
#footer{height:20px;margin:5px 0 0 0;clear:both}
/*** /Footer ***/
/** /Structure **/
/************************** / Layout **************************/
/************************** Decoration **************************/
/** general style **/
body{background:#fefefe url(../images/bg_image.gif) repeat-x fixed bottom;color:#666}
h1,h2,h3{color:#f60;background:url(../images/fac_bult.gif) no-repeat left}
.clip a{color:#666}
.orange{color:#f60}
.orangelist{color:#f60;background:url(../images/fac_bult.gif) no-repeat left}
.highlight{background:#fff url(../images/menubg.gif) repeat-x bottom;border:1px solid #ccc}
.failed{border:1px solid #f00;color:#f00;background:#fff}
.success{border:1px solid green;color:Green;background:#fff}
.black{color:#fff;background:#000}
.blackor,.blackorMessage{color:#fff;background:#f60;border:2px solid #f90}
ul.blackor{list-style-type:disc;list-style-position:outside;}
ul.noBullet{list-style:none}
.activate{color:#f60;display:block;background:url(../images/true.jpg) no-repeat}
.deactivate{color:#ccc;display:block;background:url(../images/false.jpg) no-repeat}
/** / general style **/
/** Structure **/
#wrapper{background:#fff}
#header{background:url(../images/header_bgact.gif) repeat-x left top}
#ZoneA{border-left:1px solid #eee}
#mainA{list-style:none}
#mainA li{list-style-image:url(../images/facsmall_bult.gif)}
.mainContent{background:#fff url(../Images/mainContentBg.gif) repeat-x top}
/*** menu ***/
#menu{background:#fff url(../images/menubg.gif) repeat-x bottom;border-top:1px solid #F3F3F3}
#menu,#menu a{/*color:#FBEAD0*/color:#999;display:block}
ul.menuItems li{text-align:center;border:1px solid #F3F3F3}
#menu a:link{text-decoration:none}
#menu a:active{text-decoration:none}
#menu a:hover{background:#f60 url(../images/hover3.gif) repeat-x top;color:#fff;text-align:center}
#menu a:visited{text-decoration:none}
.current{background:#000}/*set the current page*/
#menu li.current a:link,#menu li.current a:visited,#menu li.current a:hover,#menu li.current a:active
{color:#fff}
ul.menuItems li,ul.userOption{list-style:none;}
/*** /menu ***/
/*** Login ***/
ul.form li,#freesites li{list-style:none}
.loginrembtn,#Login ul.form li.button {text-align:right}
.clip .narrowInput,#newProfile input{border:1px solid #a6a2a3}
input.btn{background:#f60 url(../images/loginbtn.gif) no-repeat top left;color:#fff;cursor:pointer;border:0}
.redMessage{color:#f00}
ul.userOption li{background:transparant url(../images/box.gif) no-repeat}
/*** /Login ***/
/*** serial ***/
span.cardBack{background:url(../images/cardBack.jpg) no-repeat}
/*** /serial ***/
/*** Helpdesk ***/
#helpdesk{background:url(../images/support.jpg) no-repeat bottom;}
#helpdesk ul{list-style-type:none;list-style-position:outside}
ul li.head{list-style-image:url(../images/facsmall_bult.gif);}
ul li.info{list-style-image:none;}
li.Value .narrowInput{background:#fff !important}
/*** / Helpdesk ***/
/*** Newprofile ***/
#newProfile,#newProfile input,select,#ForgotPassword .textInput,#ForgotPassword select{border:1px solid #ccc;color:#A4A2A3}
#newProfile{border:0}
div.white{background:#fff;}
div.grey{background:#F2F2F2;}
#newProfile input.btn,#ForgotPassword input.btn{border:0;color:#fff}
#newProfile input{background:#fff !important}/* fix firefox default color*/
/*** /Newprofile ***/
/*** PackageDetails ***/
#PackageDetails .largeClip{border-bottom:1px dashed #DFDFDF}
a.orangeLink:link,a.orangeLink:active{color:#f60;text-decoration:none}
a.orangeLink:hover{color:#FD8434;text-decoration:none}
a.orangeLink:visited{color:#FD8434;text-decoration:none}
/*** /PackageDetails ***/
/*** FAQ ***/
ul.contentList li{background:url(../images/box.gif) no-repeat left 15%;list-style:none}
ul#bookmarksList li{background:url(../images/box.gif) no-repeat left 50%;list-style:none}
ul#bookmarksList li a:link,ul#bookmarksList li a:visited,ul#bookmarksList li a:active,ul#bookmarksList li a:hover{color:#999}
/*** /FAQ ***/
/*** Resend Activation ***/
#ResendActivationCode{}
/*** /Resend Activation ***/
/*** Freesites ***/
#freesites{background:#fff url(../images/loginarea_bg.gif) repeat-x bottom}
/*** /Freesites ***/
/*** Footer ***/
#footer{color:#747474;text-align:center;vertical-align:middle;}
/*** / Footer ***/
/** /Structure **/
/************************** / Decoration **************************/
/************************** Typography **************************/
/** general style **/
body{font:75%/1.4 Verdana, Arial, Helvetica, sans-serif}
h1,h2,h3{font:bold 1em/1.5 verdana;}
.smalltextsize{font:normal xx-small verdana}
.activate,.deactivate{font:bold large verdana}
p.Justify{text-align:justify}
/** / general style **/
/** Structure **/
#mainA li{font:normal 1em/1.5 verdana}
/*** menu ***/
#menu{font:bold 0.9em/1.5 verdana}
/*** /menu ***/
/*** Login ***/
.btn {font:bold 12px verdana}
.redMessage{font:bold 10px verdana}
/*** /Login ***/
/*** User Status ***/
#userStatus .orange{font:bold 3em verdana}
/*** /User Status ***/
/*** Helpdesk ***/
#helpdesk ul li.conthead,#helpdesk ul li.continfo{font:bold 1em/1.5 verdana;}
#helpdesk ul li.continfo{font-weight:normal}
/*** /Helpdesk ***/
/*** Newprofile ***/
#newProfile input,select{font:bold x-small verdana}
p.label,.example{font:bold xx-small verdana;}
/*** /Newprofile ***/
/*** PackageDetails ***/
a.orangeLink:link,a.orangeLink:active,a.orangeLink:hover,a.orangeLink:visited{font:bold 0.8em/1.5 verdana;}
/*** /PackageDetails ***/
/*** FAQ ***/
#Faq h5.orangelist,#Terms h5.orangelist{font:bold 90% verdana}
ul#bookmarksList li a{font:normal 90% verdana}
/*** FAQ ***/
/*** Footer ***/
#footer{font:normal 11px/1.5 verdana;}
/*** /Footer ***/
/** /Structure **/
/************************** / Typography **************************/
/*data grid */
.datagrid{background:#fff;width:300px;border:none;margin:10px 0 0 0;}
.datagrid td{margin:0;padding:0;border-left:2px solid #fff;border-top:1px solid #d0d0d0;border-bottom:none;border-right:none}
.selecteditemstyle,.altstyle,.itemstyle{font:normal 10px verdana;background:#f60}
tr.headerstyle td {background:#fff;font:bold 9px verdana;color:#f60;padding:5px 0px;border:1px solid #f60;border-right:none;border-left:none;vertical-align:top;text-align:left}
tr.headerstyle th {background:#fff;font:bold 9px verdana;color:#f60;padding:5px 0px;border:1px solid #f60;border-right:none;border-left:none;vertical-align:top;text-align:left}
tr.altstyle td{color:#747474;background:#efefef;text-align:left;padding:5px 0px;}
tr.altstyle td a,tr.itemstyle td a{font-weight:bold;color:#747474}
tr.itemstyle td{text-align:left;color:#747474;background:#f9f9f9 ;font-weight:normal;text-align:left;padding:10px 0px}
tr.footerstyle td{color:#000066;background:#fff ) repeat-x top;border:none;height:50px;}
.pagerstyle{text-align:left;color:#006;background:#fff}
tr.selecteditemstyle td{text-align:left;color:#fff;background:#b0b0b0;border:1px solid #d0d0d0;padding:5px 0px}
/* / css */
/* tool tip */
#dhtmltooltip{position:absolute;left:-300px;width:150px;border:1px solid #000;background:#f60 url(../images/surprise.gif) no-repeat 5% 50%;visibility:hidden;z-index:100;color:#fff;font:normal 11px arial;text-align:left;padding:5px 0 5px 30px}
#dhtmlpointer{position:absolute;left:-300px;z-index:101}
/* /tool tip */

View File

@@ -1,88 +0,0 @@
var offsetfromcursorX=12 //Customize x offset of tooltip
var offsetfromcursorY=10 //Customize y offset of tooltip
var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).
document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="../images/tooltiparrow.gif">') //write out pointer image
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}
function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20
var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY
var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}
//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}
function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip

Some files were not shown because too many files have changed in this diff Show More