﻿$(document).ready(function(){$('#FooterCopyright').corner('bottom,10px');$('#divQuesForm').corner('10px');$('#divQuesErrMsg').corner('5px');$('#divQuesSuccMsg').corner('5px');$('.statRndBorder').corner('6px');$('#divPreQuesFrmBtn').corner('6px'); $('#divAttenLnk').corner('10px');$('#Email').example('Email');$('#LoginEmail').example('Email');$('#LoginPwd').watermark('Password');$('#QuesSearch').example('Find Answers...');$('.dropdownMenu').click(function(){$('.downList',this).slideDown();});$('.dropdownMenu').hover(function(){},function(){$('.downList',this).hide();});setInterval(function(){$('#divRefreshSession').load('inc_RefreshSession.asp');},600000);$('.timestamp').cuteTime({refresh:10000});
new AjaxUpload('divUploadPhotoLnk', {
            action: 'inc_upload_handler_jx.asp',
            name: 'PhotoFile',
			data : {
				'key1' : "This data won't",
				'key2' : "be send because",
				'key3' : "we will overwrite it"
			},
			onSubmit : function(file , ext){
                // Allow only images. You should add security check on the server-side.
				if (ext && /^(jpg|png|jpeg|gif)$/.test(ext)){
					/* Setting data */
					this.setData({
						'key': 'This string will be send with the file'
					});					
					$('#example2 .text').text('Uploading ' + file);	
				} else {					
					// extension is not allowed
					$('#example2 .text').text('Error: only images are allowed');
					// cancel upload
					return false;				
				}		
			},
			onComplete : function(file,response){
				//$('#example2 .text').text('Uploaded ' + file);
				$('#divProfilePic').html(response);				
			}		
		});

});
