function jump(url) {
	location.href=url;
}


function pop(url) {
	window.open(url, "Ext", "width=720, height=500, location=yes, menubar=1, resizable=1, scrollbars=1, status=1, titlebar=1, toolbar=1");
}

function changeClass(id, divclass) {
	document.getElementById(id).className= divclass; 
}

function viewE() {
	var i = 1;
	while(field = document.getElementById('eView' + i)) {

		if(field = document.getElementById('eView' + i)) {
			field.innerHTML= '<' + 'a' + ' ' + 'h' + 'r' + 'e' + 'f' + '=' + '\" ' + 'm' + 'a' + 'i' + 'l' + 't' + 'o' + ':' + 
					 'i' + 'n' + 'f' + 'o' + '@' + 't' + 'h' + 'a' + 'i' + 'r' + 'e' + 's' + 'a' + 'n' + '.' + 's' + 'e' + '\">' + 
					 'i' + 'n' + 'f' + 'o' + '@' + 't' + 'h' + 'a' + 'i' + 'r' + 'e' + 's' + 'a' + 'n' + '.' + 's' + 'e' + 
					 '<' + '/' + 'a' + '>';	
		}
		i++;
	}
}



function popShow(imgsrc, e) {
	

	
	var wrapper = document.getElementById('pop_bg');
	wrapper.innerHTML='';
	

	
	
	var documentSize = getSize();
	var documentSizeToDisplay = documentSize - 200;
	
	var documentScrolled = getScrollXY();
	var positionWrapperTop = documentScrolled + 100;
	
	
	var positionImgTop = (((documentSizeToDisplay / 2) - 165) );
	
	
	wrapper.className='pop_bg_show'; 
	wrapper.style.top= positionWrapperTop + 'px'; 
	wrapper.style.height=  documentSizeToDisplay + 'px'; 
	
	//document.getElementById('pop_img').innerHTML='<img src="' + imgsrc + '" />';
	//document.getElementById('pop_img').className='pop_img_show'; 
	//document.getElementById('pop_img').style.top= positionImgTop + 'px'; 
	
	
	var wrapper2 = document.createElement('div');
	document.body.appendChild(wrapper2);
	wrapper2.setAttribute('id','wrapper22');

	wrapper2.className = 'pop_bg_show2';
	wrapper2.style.top= positionWrapperTop + 'px'; 
	wrapper2.style.height=  documentSizeToDisplay + 'px'; 
	wrapper2.onclick = function() {
		document.getElementById('pop_bg').className='pop_bg_hide'; 
		var wrapper22 = document.getElementById('wrapper22');
		wrapper22.parentNode.removeChild(wrapper22);
		return true;		
	}
	
	var imgg = document.createElement('img');
	wrapper2.appendChild(imgg);
	imgg.src = imgsrc;
	imgg.className = 'pop_img_show';
	imgg.setAttribute('id','imgg');	
	imgg.style.top= positionImgTop + 'px'; 
	imgg.style.opacity = 100/10;
	imgg.style.filter = 'alpha(opacity=' + 100*10 + ')';
	
	//document.getElementById('pop_img').style.left= '30%'; 
}
function setOpacity(value) {
	testObj.style.opacity = value/10;
	testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
}

function popHide() {
	document.getElementById('pop_bg').className='pop_bg_hide'; 
	document.getElementById('pop_img').className='pop_img_hide'; 
	return true;
}


function getScrollXY() {
  var scrOfX = 0, scrOfY = 0;
  if( typeof( window.pageYOffset ) == 'number' ) {
    //Netscape compliant
    scrOfY = window.pageYOffset;
    scrOfX = window.pageXOffset;
  } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
    //DOM compliant
    scrOfY = document.body.scrollTop;
    scrOfX = document.body.scrollLeft;
  } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
    //IE6 standards compliant mode
    scrOfY = document.documentElement.scrollTop;
    scrOfX = document.documentElement.scrollLeft;
  }
  //return [ scrOfX, scrOfY ];
  return scrOfY;
}

function getSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  //window.alert( 'Width = ' + myWidth );
 // window.alert( 'Height = ' + myHeight );
 return myHeight;
}