public static void captureScreenshot() {
			
			 Calendar cal = new GregorianCalendar();
			  int month = cal.get(Calendar.MONTH); //4
			  int year = cal.get(Calendar.YEAR); //2013
			  int sec =cal.get(Calendar.SECOND);
			  int min =cal.get(Calendar.MINUTE);
			  int date = cal.get(Calendar.DATE);
			  int day =cal.get(Calendar.HOUR_OF_DAY);
			
			
		
			File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
		    try {
		    	mailscreenshotpath = System.getProperty("user.dir")+"\\screenshots\\"+year+"_"+date+"_"+(month+1)+"_"+day+"_"+min+"_" +sec+".jpeg";
				FileUtils.copyFile(scrFile, new File(mailscreenshotpath));
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}	   
		}