// JavaScript Document
function initPage() {
var i;
  for (i = 0; (i < document.forms.length); i++) {
    document.forms[i].reset();
}
 var _inputs = document.getElementsByTagName('input');
        var _textareas=document.getElementsByTagName('textarea') ;
	var _value = '';
	if (_inputs) {
		for(var i=0; i<_inputs.length; i++) {
			if (_inputs[i].type == 'text' || _inputs[i].type == 'password') {
				_inputs[i].onfocus = function(){
					_n_value = this.defaultValue;
					//alert(_value);
					if(this.value == _n_value)
					{
					_value = this.value;
					this.value = '';
					}
					else
					{
					 _value = this.defaultValue;
					}
				}
				_inputs[i].onblur = function(){
					if (this.value == '')
						this.value = _value;
					_value = '';
				}
			}
		}
	}

	if (_textareas) {
		for(var i=0; i<_textareas.length; i++) 
			{
			_textareas[i].onfocus = function()
				{
					_n_value = this.defaultValue;
					if(this.value == _n_value)
					{
					_value = this.value;
					this.value = '';
					}
					else
					{
					 _value = this.defaultValue;
					}
				}
				_textareas[i].onblur = function()
				{
					if (this.value == '')
						this.value = _value;
					_value = '';
				}
			}
		
	}
	
}
if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);

function timing(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=760,height=300,left = 40,top = 150');");
}