function GetXmlHttpObject(handler)
{
var objXmlHttp=null;
objXmlHttp=new XMLHttpRequest();
objXmlHttp.onreadystatechange=handler;
return objXmlHttp;
}
var xmlHttp
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
try {
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")
} catch (e) {
try {
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")
} catch (E) {
xmlHttp=false
}
}
@else
xmlHttp=false
@end @*/
if (!xmlHttp) {
try {
xmlHttp = new XMLHttpRequest();
}
catch (e) {
xmlHttp=false
}
}
function toggleFaq(id) {
if(document.getElementById(id).style.display == 'none') {
document.getElementById(id).style.display = '';
} else {
document.getElementById(id).style.display = 'none';
}
}
function countdown()
{
document.write('\n');
}
function tp_popup(url) {
fenster = window.open(url, "", "width=865,height=470,status=yes,scrollbars=yes,resizable=yes");
fenster.focus();
}
function winopen(theURL, Name, popW, popH, scroll) {
var winleft = (screen.width - popW) / 2;
var winUp = (screen.height - popH) / 2;
winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+scroll
Win = window.open(theURL, Name, winProp)
}
function slidelink(){
if
(whichimage==1)
window.open('http://www.premiertiming.com')
else if
(whichimage==2)
window.open('http://www.premiertiming.com')
else if
(whichimage==3)
window.open('http://www.premiertiming.com')
}
function countdownRegTime() {
var end = new Date('November 30, 2010 23:59:00');
function toSt2(n) {
s = '';
if (n < 10) s += '0';
return (s + n).toString();
}
function toSt3(n) {
s = '';
if (n < 10) s += '00';
else if (n < 100) s += '0';
return (s + n).toString();
}
d = new Date();
count = Math.floor(end.getTime() - d.getTime());
if(count > 0) {
miliseconds = toSt3(count%1000); count = Math.floor(count/1000);
seconds = toSt2(count%60); count = Math.floor(count/60);
minutes = toSt2(count%60); count = Math.floor(count/60);
hours = toSt2(count%24); count = Math.floor(count/24);
days = count;
document.getElementById('c1').innerHTML = days;
document.getElementById('c2').innerHTML = hours;
document.getElementById('c3').innerHTML = minutes;
document.getElementById('c4').innerHTML = seconds;
setTimeout('countdownRegTime()', 100);
}
}
function initialCap(mystring) {
var sp = mystring.value.split(' ');
var wl=0;
var f ,r;
var word = new Array();
for (i = 0 ; i < sp.length ; i ++ ) {
f = sp[i].substring(0,1).toUpperCase();
r = sp[i].substring(1);
word[i] = f+r;
}
newstring = word.join(' ');
mystring.value = newstring;
}
function numericVal(obj) {
var tam = obj.value.length;
var numeric = false;
for(var i=0;i= 40 && caracter <= 57) || caracter == 32)
numeric = true;
else
{
obj.value=obj.value.substring(0,tam-1);
numericVal(obj);
}
}
}
function numericValNumbersOnly(obj) {
var tam = obj.value.length;
var numeric = false;
for(var i=0;i= 48 && caracter <= 57)
numeric = true;
else
{
obj.value=obj.value.substring(0,tam-1);
numericVal(obj);
}
}
}